gemi 0.33.4 → 0.35.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,34 +1,34 @@
1
1
  // @bun
2
- import{Ba as BG,va as SG,wa as MG}from"./chunk-hpdz0h4c.js";import{Ca as IH,Da as XH,Ea as Kf,Fa as Ov,Ga as bv,Ha as qv,Ia as ZH,Ja as MW,Ka as BW,La as Vv,Ma as pG,Na as Ev,Oa as uf,Pa as wv,Qa as sG,Ra as Lv,Sa as xv,Ta as Iv,Ua as Pv,Va as Qv,Wa as Kv}from"./chunk-11yk2z9x.js";import{Xa as Xv,Ya as jv}from"./chunk-95b92a6a.js";import{Za as $v}from"./chunk-ssvnwn8n.js";import{$a as Bv,_a as b1,bb as Dv,cb as wG,db as X0,eb as hG,ib as Oc}from"./chunk-bqm0qsyv.js";import{jb as kc}from"./chunk-ap5svqgk.js";import{lb as TF,nb as K1}from"./chunk-a9pdqf5t.js";import{pb as NG}from"./chunk-ak88bhtn.js";import{qb as ny}from"./chunk-nypaxg5s.js";import{ub as wF,vb as l}from"./chunk-h9jhxz2x.js";import{yb as uF}from"./chunk-zz9bxhhv.js";import{Ab as p,Cb as Zf,zb as Y}from"./chunk-b6bzvtq4.js";var U3=p((MB,v3)=>{var BY=function(f){return XY(f)&&!QY(f)};function XY(c){return!!c&&typeof c==="object"}function QY(c){var f=Object.prototype.toString.call(c);return f==="[object RegExp]"||f==="[object Date]"||wY(c)}var DY=typeof Symbol==="function"&&Symbol.for,jY=DY?Symbol.for("react.element"):60103;function wY(c){return c.$$typeof===jY}function LY(c){return Array.isArray(c)?[]:{}}function iR(c,f){return f.clone!==!1&&f.isMergeableObject(c)?tf(LY(c),c,f):c}function xY(c,f,R){return c.concat(f).map(function(h){return iR(h,R)})}function IY(c,f){if(!f.customMerge)return tf;var R=f.customMerge(c);return typeof R==="function"?R:tf}function PY(c){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(c).filter(function(f){return Object.propertyIsEnumerable.call(c,f)}):[]}function F3(c){return Object.keys(c).concat(PY(c))}function W3(c,f){try{return f in c}catch(R){return!1}}function KY(c,f){return W3(c,f)&&!(Object.hasOwnProperty.call(c,f)&&Object.propertyIsEnumerable.call(c,f))}function OY(c,f,R){var h={};if(R.isMergeableObject(c))F3(c).forEach(function($){h[$]=iR(c[$],R)});return F3(f).forEach(function($){if(KY(c,$))return;if(W3(c,$)&&R.isMergeableObject(f[$]))h[$]=IY($,R)(c[$],f[$],R);else h[$]=iR(f[$],R)}),h}function tf(c,f,R){R=R||{},R.arrayMerge=R.arrayMerge||xY,R.isMergeableObject=R.isMergeableObject||BY,R.cloneUnlessOtherwiseSpecified=iR;var h=Array.isArray(f),$=Array.isArray(c),H=h===$;if(!H)return iR(f,R);else if(h)return R.arrayMerge(c,f,R);else return OY(c,f,R)}tf.all=function(f,R){if(!Array.isArray(f))throw Error("first argument should be an array");return f.reduce(function(h,$){return tf(h,$,R)},{})};var bY=tf;v3.exports=bY});var Th=p((wN,P3)=>{function Rc(c){this.__parent=c,this.__character_count=0,this.__indent_count=-1,this.__alignment_count=0,this.__wrap_point_index=0,this.__wrap_point_character_count=0,this.__wrap_point_indent_count=-1,this.__wrap_point_alignment_count=0,this.__items=[]}Rc.prototype.clone_empty=function(){var c=new Rc(this.__parent);return c.set_indent(this.__indent_count,this.__alignment_count),c};Rc.prototype.item=function(c){if(c<0)return this.__items[this.__items.length+c];else return this.__items[c]};Rc.prototype.has_match=function(c){for(var f=this.__items.length-1;f>=0;f--)if(this.__items[f].match(c))return!0;return!1};Rc.prototype.set_indent=function(c,f){if(this.is_empty())this.__indent_count=c||0,this.__alignment_count=f||0,this.__character_count=this.__parent.get_indent_size(this.__indent_count,this.__alignment_count)};Rc.prototype._set_wrap_point=function(){if(this.__parent.wrap_line_length)this.__wrap_point_index=this.__items.length,this.__wrap_point_character_count=this.__character_count,this.__wrap_point_indent_count=this.__parent.next_line.__indent_count,this.__wrap_point_alignment_count=this.__parent.next_line.__alignment_count};Rc.prototype._should_wrap=function(){return this.__wrap_point_index&&this.__character_count>this.__parent.wrap_line_length&&this.__wrap_point_character_count>this.__parent.next_line.__character_count};Rc.prototype._allow_wrap=function(){if(this._should_wrap()){this.__parent.add_new_line();var c=this.__parent.current_line;if(c.set_indent(this.__wrap_point_indent_count,this.__wrap_point_alignment_count),c.__items=this.__items.slice(this.__wrap_point_index),this.__items=this.__items.slice(0,this.__wrap_point_index),c.__character_count+=this.__character_count-this.__wrap_point_character_count,this.__character_count=this.__wrap_point_character_count,c.__items[0]===" ")c.__items.splice(0,1),c.__character_count-=1;return!0}return!1};Rc.prototype.is_empty=function(){return this.__items.length===0};Rc.prototype.last=function(){if(!this.is_empty())return this.__items[this.__items.length-1];else return null};Rc.prototype.push=function(c){this.__items.push(c);var f=c.lastIndexOf(`
2
+ import{Ba as BG,va as SG,wa as MG}from"./chunk-hpdz0h4c.js";import{Ca as IH,Da as XH,Ea as Kf,Fa as Ov,Ga as bv,Ha as qv,Ia as ZH,Ja as MW,Ka as BW,La as Vv,Ma as pG,Na as Ev,Oa as uf,Pa as jv,Qa as sG,Ra as Lv,Sa as xv,Ta as Iv,Ua as Pv,Va as Qv,Wa as Kv}from"./chunk-11yk2z9x.js";import{Xa as Xv,Ya as wv}from"./chunk-95b92a6a.js";import{Za as $v}from"./chunk-ssvnwn8n.js";import{$a as Bv,_a as b1,bb as Dv,cb as jG,db as X0,eb as hG,ib as Oc}from"./chunk-bqm0qsyv.js";import{jb as kc}from"./chunk-ap5svqgk.js";import{lb as TF,nb as K1}from"./chunk-a9pdqf5t.js";import{pb as NG}from"./chunk-ak88bhtn.js";import{qb as ny}from"./chunk-nypaxg5s.js";import{ub as jF,vb as l}from"./chunk-h9jhxz2x.js";import{yb as uF}from"./chunk-zz9bxhhv.js";import{Ab as p,Cb as Zf,zb as Y}from"./chunk-b6bzvtq4.js";var U3=p((MB,v3)=>{var BY=function(f){return XY(f)&&!QY(f)};function XY(c){return!!c&&typeof c==="object"}function QY(c){var f=Object.prototype.toString.call(c);return f==="[object RegExp]"||f==="[object Date]"||jY(c)}var DY=typeof Symbol==="function"&&Symbol.for,wY=DY?Symbol.for("react.element"):60103;function jY(c){return c.$$typeof===wY}function LY(c){return Array.isArray(c)?[]:{}}function iR(c,f){return f.clone!==!1&&f.isMergeableObject(c)?tf(LY(c),c,f):c}function xY(c,f,R){return c.concat(f).map(function(h){return iR(h,R)})}function IY(c,f){if(!f.customMerge)return tf;var R=f.customMerge(c);return typeof R==="function"?R:tf}function PY(c){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(c).filter(function(f){return Object.propertyIsEnumerable.call(c,f)}):[]}function F3(c){return Object.keys(c).concat(PY(c))}function W3(c,f){try{return f in c}catch(R){return!1}}function KY(c,f){return W3(c,f)&&!(Object.hasOwnProperty.call(c,f)&&Object.propertyIsEnumerable.call(c,f))}function OY(c,f,R){var h={};if(R.isMergeableObject(c))F3(c).forEach(function($){h[$]=iR(c[$],R)});return F3(f).forEach(function($){if(KY(c,$))return;if(W3(c,$)&&R.isMergeableObject(f[$]))h[$]=IY($,R)(c[$],f[$],R);else h[$]=iR(f[$],R)}),h}function tf(c,f,R){R=R||{},R.arrayMerge=R.arrayMerge||xY,R.isMergeableObject=R.isMergeableObject||BY,R.cloneUnlessOtherwiseSpecified=iR;var h=Array.isArray(f),$=Array.isArray(c),H=h===$;if(!H)return iR(f,R);else if(h)return R.arrayMerge(c,f,R);else return OY(c,f,R)}tf.all=function(f,R){if(!Array.isArray(f))throw Error("first argument should be an array");return f.reduce(function(h,$){return tf(h,$,R)},{})};var bY=tf;v3.exports=bY});var Th=p((jN,P3)=>{function Rc(c){this.__parent=c,this.__character_count=0,this.__indent_count=-1,this.__alignment_count=0,this.__wrap_point_index=0,this.__wrap_point_character_count=0,this.__wrap_point_indent_count=-1,this.__wrap_point_alignment_count=0,this.__items=[]}Rc.prototype.clone_empty=function(){var c=new Rc(this.__parent);return c.set_indent(this.__indent_count,this.__alignment_count),c};Rc.prototype.item=function(c){if(c<0)return this.__items[this.__items.length+c];else return this.__items[c]};Rc.prototype.has_match=function(c){for(var f=this.__items.length-1;f>=0;f--)if(this.__items[f].match(c))return!0;return!1};Rc.prototype.set_indent=function(c,f){if(this.is_empty())this.__indent_count=c||0,this.__alignment_count=f||0,this.__character_count=this.__parent.get_indent_size(this.__indent_count,this.__alignment_count)};Rc.prototype._set_wrap_point=function(){if(this.__parent.wrap_line_length)this.__wrap_point_index=this.__items.length,this.__wrap_point_character_count=this.__character_count,this.__wrap_point_indent_count=this.__parent.next_line.__indent_count,this.__wrap_point_alignment_count=this.__parent.next_line.__alignment_count};Rc.prototype._should_wrap=function(){return this.__wrap_point_index&&this.__character_count>this.__parent.wrap_line_length&&this.__wrap_point_character_count>this.__parent.next_line.__character_count};Rc.prototype._allow_wrap=function(){if(this._should_wrap()){this.__parent.add_new_line();var c=this.__parent.current_line;if(c.set_indent(this.__wrap_point_indent_count,this.__wrap_point_alignment_count),c.__items=this.__items.slice(this.__wrap_point_index),this.__items=this.__items.slice(0,this.__wrap_point_index),c.__character_count+=this.__character_count-this.__wrap_point_character_count,this.__character_count=this.__wrap_point_character_count,c.__items[0]===" ")c.__items.splice(0,1),c.__character_count-=1;return!0}return!1};Rc.prototype.is_empty=function(){return this.__items.length===0};Rc.prototype.last=function(){if(!this.is_empty())return this.__items[this.__items.length-1];else return null};Rc.prototype.push=function(c){this.__items.push(c);var f=c.lastIndexOf(`
3
3
  `);if(f!==-1)this.__character_count=c.length-f;else this.__character_count+=c.length};Rc.prototype.pop=function(){var c=null;if(!this.is_empty())c=this.__items.pop(),this.__character_count-=c.length;return c};Rc.prototype._remove_indent=function(){if(this.__indent_count>0)this.__indent_count-=1,this.__character_count-=this.__parent.indent_size};Rc.prototype._remove_wrap_indent=function(){if(this.__wrap_point_indent_count>0)this.__wrap_point_indent_count-=1};Rc.prototype.trim=function(){while(this.last()===" ")this.__items.pop(),this.__character_count-=1};Rc.prototype.toString=function(){var c="";if(this.is_empty()){if(this.__parent.indent_empty_lines)c=this.__parent.get_indent_string(this.__indent_count)}else c=this.__parent.get_indent_string(this.__indent_count,this.__alignment_count),c+=this.__items.join("");return c};function kR(c,f){if(this.__cache=[""],this.__indent_size=c.indent_size,this.__indent_string=c.indent_char,!c.indent_with_tabs)this.__indent_string=Array(c.indent_size+1).join(c.indent_char);if(f=f||"",c.indent_level>0)f=Array(c.indent_level+1).join(this.__indent_string);this.__base_string=f,this.__base_string_length=f.length}kR.prototype.get_indent_size=function(c,f){var R=this.__base_string_length;if(f=f||0,c<0)R=0;return R+=c*this.__indent_size,R+=f,R};kR.prototype.get_indent_string=function(c,f){var R=this.__base_string;if(f=f||0,c<0)c=0,R="";return f+=c*this.__indent_size,this.__ensure_cache(f),R+=this.__cache[f],R};kR.prototype.__ensure_cache=function(c){while(c>=this.__cache.length)this.__add_column()};kR.prototype.__add_column=function(){var c=this.__cache.length,f=0,R="";if(this.__indent_size&&c>=this.__indent_size)f=Math.floor(c/this.__indent_size),c-=f*this.__indent_size,R=Array(f+1).join(this.__indent_string);if(c)R+=Array(c+1).join(" ");this.__cache.push(R)};function hc(c,f){this.__indent_cache=new kR(c,f),this.raw=!1,this._end_with_newline=c.end_with_newline,this.indent_size=c.indent_size,this.wrap_line_length=c.wrap_line_length,this.indent_empty_lines=c.indent_empty_lines,this.__lines=[],this.previous_line=null,this.current_line=null,this.next_line=new Rc(this),this.space_before_token=!1,this.non_breaking_space=!1,this.previous_token_wrapped=!1,this.__add_outputline()}hc.prototype.__add_outputline=function(){this.previous_line=this.current_line,this.current_line=this.next_line.clone_empty(),this.__lines.push(this.current_line)};hc.prototype.get_line_number=function(){return this.__lines.length};hc.prototype.get_indent_string=function(c,f){return this.__indent_cache.get_indent_string(c,f)};hc.prototype.get_indent_size=function(c,f){return this.__indent_cache.get_indent_size(c,f)};hc.prototype.is_empty=function(){return!this.previous_line&&this.current_line.is_empty()};hc.prototype.add_new_line=function(c){if(this.is_empty()||!c&&this.just_added_newline())return!1;if(!this.raw)this.__add_outputline();return!0};hc.prototype.get_code=function(c){this.trim(!0);var f=this.current_line.pop();if(f){if(f[f.length-1]===`
4
4
  `)f=f.replace(/\n+$/g,"");this.current_line.push(f)}if(this._end_with_newline)this.__add_outputline();var R=this.__lines.join(`
5
5
  `);if(c!==`
6
- `)R=R.replace(/[\n]/g,c);return R};hc.prototype.set_wrap_point=function(){this.current_line._set_wrap_point()};hc.prototype.set_indent=function(c,f){if(c=c||0,f=f||0,this.next_line.set_indent(c,f),this.__lines.length>1)return this.current_line.set_indent(c,f),!0;return this.current_line.set_indent(),!1};hc.prototype.add_raw_token=function(c){for(var f=0;f<c.newlines;f++)this.__add_outputline();this.current_line.set_indent(-1),this.current_line.push(c.whitespace_before),this.current_line.push(c.text),this.space_before_token=!1,this.non_breaking_space=!1,this.previous_token_wrapped=!1};hc.prototype.add_token=function(c){this.__add_space_before_token(),this.current_line.push(c),this.space_before_token=!1,this.non_breaking_space=!1,this.previous_token_wrapped=this.current_line._allow_wrap()};hc.prototype.__add_space_before_token=function(){if(this.space_before_token&&!this.just_added_newline()){if(!this.non_breaking_space)this.set_wrap_point();this.current_line.push(" ")}};hc.prototype.remove_indent=function(c){var f=this.__lines.length;while(c<f)this.__lines[c]._remove_indent(),c++;this.current_line._remove_wrap_indent()};hc.prototype.trim=function(c){c=c===void 0?!1:c,this.current_line.trim();while(c&&this.__lines.length>1&&this.current_line.is_empty())this.__lines.pop(),this.current_line=this.__lines[this.__lines.length-1],this.current_line.trim();this.previous_line=this.__lines.length>1?this.__lines[this.__lines.length-2]:null};hc.prototype.just_added_newline=function(){return this.current_line.is_empty()};hc.prototype.just_added_blankline=function(){return this.is_empty()||this.current_line.is_empty()&&this.previous_line.is_empty()};hc.prototype.ensure_empty_line_above=function(c,f){var R=this.__lines.length-2;while(R>=0){var h=this.__lines[R];if(h.is_empty())break;else if(h.item(0).indexOf(c)!==0&&h.item(-1)!==f){this.__lines.splice(R+1,0,new Rc(this)),this.previous_line=this.__lines[this.__lines.length-2];break}R--}};wN.Output=hc});var h8=p((IN,K3)=>{function xN(c,f,R,h){this.type=c,this.text=f,this.comments_before=null,this.newlines=R||0,this.whitespace_before=h||"",this.parent=null,this.next=null,this.previous=null,this.opened=null,this.closed=null,this.directives=null}IN.Token=xN});var A8=p((bN)=>{var KN="\\x23\\x24\\x40\\x41-\\x5a\\x5f\\x61-\\x7a",O3="\\x24\\x30-\\x39\\x41-\\x5a\\x5f\\x61-\\x7a",$8="\\xaa\\xb5\\xba\\xc0-\\xd6\\xd8-\\xf6\\xf8-\\u02c1\\u02c6-\\u02d1\\u02e0-\\u02e4\\u02ec\\u02ee\\u0370-\\u0374\\u0376\\u0377\\u037a-\\u037d\\u0386\\u0388-\\u038a\\u038c\\u038e-\\u03a1\\u03a3-\\u03f5\\u03f7-\\u0481\\u048a-\\u0527\\u0531-\\u0556\\u0559\\u0561-\\u0587\\u05d0-\\u05ea\\u05f0-\\u05f2\\u0620-\\u064a\\u066e\\u066f\\u0671-\\u06d3\\u06d5\\u06e5\\u06e6\\u06ee\\u06ef\\u06fa-\\u06fc\\u06ff\\u0710\\u0712-\\u072f\\u074d-\\u07a5\\u07b1\\u07ca-\\u07ea\\u07f4\\u07f5\\u07fa\\u0800-\\u0815\\u081a\\u0824\\u0828\\u0840-\\u0858\\u08a0\\u08a2-\\u08ac\\u0904-\\u0939\\u093d\\u0950\\u0958-\\u0961\\u0971-\\u0977\\u0979-\\u097f\\u0985-\\u098c\\u098f\\u0990\\u0993-\\u09a8\\u09aa-\\u09b0\\u09b2\\u09b6-\\u09b9\\u09bd\\u09ce\\u09dc\\u09dd\\u09df-\\u09e1\\u09f0\\u09f1\\u0a05-\\u0a0a\\u0a0f\\u0a10\\u0a13-\\u0a28\\u0a2a-\\u0a30\\u0a32\\u0a33\\u0a35\\u0a36\\u0a38\\u0a39\\u0a59-\\u0a5c\\u0a5e\\u0a72-\\u0a74\\u0a85-\\u0a8d\\u0a8f-\\u0a91\\u0a93-\\u0aa8\\u0aaa-\\u0ab0\\u0ab2\\u0ab3\\u0ab5-\\u0ab9\\u0abd\\u0ad0\\u0ae0\\u0ae1\\u0b05-\\u0b0c\\u0b0f\\u0b10\\u0b13-\\u0b28\\u0b2a-\\u0b30\\u0b32\\u0b33\\u0b35-\\u0b39\\u0b3d\\u0b5c\\u0b5d\\u0b5f-\\u0b61\\u0b71\\u0b83\\u0b85-\\u0b8a\\u0b8e-\\u0b90\\u0b92-\\u0b95\\u0b99\\u0b9a\\u0b9c\\u0b9e\\u0b9f\\u0ba3\\u0ba4\\u0ba8-\\u0baa\\u0bae-\\u0bb9\\u0bd0\\u0c05-\\u0c0c\\u0c0e-\\u0c10\\u0c12-\\u0c28\\u0c2a-\\u0c33\\u0c35-\\u0c39\\u0c3d\\u0c58\\u0c59\\u0c60\\u0c61\\u0c85-\\u0c8c\\u0c8e-\\u0c90\\u0c92-\\u0ca8\\u0caa-\\u0cb3\\u0cb5-\\u0cb9\\u0cbd\\u0cde\\u0ce0\\u0ce1\\u0cf1\\u0cf2\\u0d05-\\u0d0c\\u0d0e-\\u0d10\\u0d12-\\u0d3a\\u0d3d\\u0d4e\\u0d60\\u0d61\\u0d7a-\\u0d7f\\u0d85-\\u0d96\\u0d9a-\\u0db1\\u0db3-\\u0dbb\\u0dbd\\u0dc0-\\u0dc6\\u0e01-\\u0e30\\u0e32\\u0e33\\u0e40-\\u0e46\\u0e81\\u0e82\\u0e84\\u0e87\\u0e88\\u0e8a\\u0e8d\\u0e94-\\u0e97\\u0e99-\\u0e9f\\u0ea1-\\u0ea3\\u0ea5\\u0ea7\\u0eaa\\u0eab\\u0ead-\\u0eb0\\u0eb2\\u0eb3\\u0ebd\\u0ec0-\\u0ec4\\u0ec6\\u0edc-\\u0edf\\u0f00\\u0f40-\\u0f47\\u0f49-\\u0f6c\\u0f88-\\u0f8c\\u1000-\\u102a\\u103f\\u1050-\\u1055\\u105a-\\u105d\\u1061\\u1065\\u1066\\u106e-\\u1070\\u1075-\\u1081\\u108e\\u10a0-\\u10c5\\u10c7\\u10cd\\u10d0-\\u10fa\\u10fc-\\u1248\\u124a-\\u124d\\u1250-\\u1256\\u1258\\u125a-\\u125d\\u1260-\\u1288\\u128a-\\u128d\\u1290-\\u12b0\\u12b2-\\u12b5\\u12b8-\\u12be\\u12c0\\u12c2-\\u12c5\\u12c8-\\u12d6\\u12d8-\\u1310\\u1312-\\u1315\\u1318-\\u135a\\u1380-\\u138f\\u13a0-\\u13f4\\u1401-\\u166c\\u166f-\\u167f\\u1681-\\u169a\\u16a0-\\u16ea\\u16ee-\\u16f0\\u1700-\\u170c\\u170e-\\u1711\\u1720-\\u1731\\u1740-\\u1751\\u1760-\\u176c\\u176e-\\u1770\\u1780-\\u17b3\\u17d7\\u17dc\\u1820-\\u1877\\u1880-\\u18a8\\u18aa\\u18b0-\\u18f5\\u1900-\\u191c\\u1950-\\u196d\\u1970-\\u1974\\u1980-\\u19ab\\u19c1-\\u19c7\\u1a00-\\u1a16\\u1a20-\\u1a54\\u1aa7\\u1b05-\\u1b33\\u1b45-\\u1b4b\\u1b83-\\u1ba0\\u1bae\\u1baf\\u1bba-\\u1be5\\u1c00-\\u1c23\\u1c4d-\\u1c4f\\u1c5a-\\u1c7d\\u1ce9-\\u1cec\\u1cee-\\u1cf1\\u1cf5\\u1cf6\\u1d00-\\u1dbf\\u1e00-\\u1f15\\u1f18-\\u1f1d\\u1f20-\\u1f45\\u1f48-\\u1f4d\\u1f50-\\u1f57\\u1f59\\u1f5b\\u1f5d\\u1f5f-\\u1f7d\\u1f80-\\u1fb4\\u1fb6-\\u1fbc\\u1fbe\\u1fc2-\\u1fc4\\u1fc6-\\u1fcc\\u1fd0-\\u1fd3\\u1fd6-\\u1fdb\\u1fe0-\\u1fec\\u1ff2-\\u1ff4\\u1ff6-\\u1ffc\\u2071\\u207f\\u2090-\\u209c\\u2102\\u2107\\u210a-\\u2113\\u2115\\u2119-\\u211d\\u2124\\u2126\\u2128\\u212a-\\u212d\\u212f-\\u2139\\u213c-\\u213f\\u2145-\\u2149\\u214e\\u2160-\\u2188\\u2c00-\\u2c2e\\u2c30-\\u2c5e\\u2c60-\\u2ce4\\u2ceb-\\u2cee\\u2cf2\\u2cf3\\u2d00-\\u2d25\\u2d27\\u2d2d\\u2d30-\\u2d67\\u2d6f\\u2d80-\\u2d96\\u2da0-\\u2da6\\u2da8-\\u2dae\\u2db0-\\u2db6\\u2db8-\\u2dbe\\u2dc0-\\u2dc6\\u2dc8-\\u2dce\\u2dd0-\\u2dd6\\u2dd8-\\u2dde\\u2e2f\\u3005-\\u3007\\u3021-\\u3029\\u3031-\\u3035\\u3038-\\u303c\\u3041-\\u3096\\u309d-\\u309f\\u30a1-\\u30fa\\u30fc-\\u30ff\\u3105-\\u312d\\u3131-\\u318e\\u31a0-\\u31ba\\u31f0-\\u31ff\\u3400-\\u4db5\\u4e00-\\u9fcc\\ua000-\\ua48c\\ua4d0-\\ua4fd\\ua500-\\ua60c\\ua610-\\ua61f\\ua62a\\ua62b\\ua640-\\ua66e\\ua67f-\\ua697\\ua6a0-\\ua6ef\\ua717-\\ua71f\\ua722-\\ua788\\ua78b-\\ua78e\\ua790-\\ua793\\ua7a0-\\ua7aa\\ua7f8-\\ua801\\ua803-\\ua805\\ua807-\\ua80a\\ua80c-\\ua822\\ua840-\\ua873\\ua882-\\ua8b3\\ua8f2-\\ua8f7\\ua8fb\\ua90a-\\ua925\\ua930-\\ua946\\ua960-\\ua97c\\ua984-\\ua9b2\\ua9cf\\uaa00-\\uaa28\\uaa40-\\uaa42\\uaa44-\\uaa4b\\uaa60-\\uaa76\\uaa7a\\uaa80-\\uaaaf\\uaab1\\uaab5\\uaab6\\uaab9-\\uaabd\\uaac0\\uaac2\\uaadb-\\uaadd\\uaae0-\\uaaea\\uaaf2-\\uaaf4\\uab01-\\uab06\\uab09-\\uab0e\\uab11-\\uab16\\uab20-\\uab26\\uab28-\\uab2e\\uabc0-\\uabe2\\uac00-\\ud7a3\\ud7b0-\\ud7c6\\ud7cb-\\ud7fb\\uf900-\\ufa6d\\ufa70-\\ufad9\\ufb00-\\ufb06\\ufb13-\\ufb17\\ufb1d\\ufb1f-\\ufb28\\ufb2a-\\ufb36\\ufb38-\\ufb3c\\ufb3e\\ufb40\\ufb41\\ufb43\\ufb44\\ufb46-\\ufbb1\\ufbd3-\\ufd3d\\ufd50-\\ufd8f\\ufd92-\\ufdc7\\ufdf0-\\ufdfb\\ufe70-\\ufe74\\ufe76-\\ufefc\\uff21-\\uff3a\\uff41-\\uff5a\\uff66-\\uffbe\\uffc2-\\uffc7\\uffca-\\uffcf\\uffd2-\\uffd7\\uffda-\\uffdc",b3="\\u0300-\\u036f\\u0483-\\u0487\\u0591-\\u05bd\\u05bf\\u05c1\\u05c2\\u05c4\\u05c5\\u05c7\\u0610-\\u061a\\u0620-\\u0649\\u0672-\\u06d3\\u06e7-\\u06e8\\u06fb-\\u06fc\\u0730-\\u074a\\u0800-\\u0814\\u081b-\\u0823\\u0825-\\u0827\\u0829-\\u082d\\u0840-\\u0857\\u08e4-\\u08fe\\u0900-\\u0903\\u093a-\\u093c\\u093e-\\u094f\\u0951-\\u0957\\u0962-\\u0963\\u0966-\\u096f\\u0981-\\u0983\\u09bc\\u09be-\\u09c4\\u09c7\\u09c8\\u09d7\\u09df-\\u09e0\\u0a01-\\u0a03\\u0a3c\\u0a3e-\\u0a42\\u0a47\\u0a48\\u0a4b-\\u0a4d\\u0a51\\u0a66-\\u0a71\\u0a75\\u0a81-\\u0a83\\u0abc\\u0abe-\\u0ac5\\u0ac7-\\u0ac9\\u0acb-\\u0acd\\u0ae2-\\u0ae3\\u0ae6-\\u0aef\\u0b01-\\u0b03\\u0b3c\\u0b3e-\\u0b44\\u0b47\\u0b48\\u0b4b-\\u0b4d\\u0b56\\u0b57\\u0b5f-\\u0b60\\u0b66-\\u0b6f\\u0b82\\u0bbe-\\u0bc2\\u0bc6-\\u0bc8\\u0bca-\\u0bcd\\u0bd7\\u0be6-\\u0bef\\u0c01-\\u0c03\\u0c46-\\u0c48\\u0c4a-\\u0c4d\\u0c55\\u0c56\\u0c62-\\u0c63\\u0c66-\\u0c6f\\u0c82\\u0c83\\u0cbc\\u0cbe-\\u0cc4\\u0cc6-\\u0cc8\\u0cca-\\u0ccd\\u0cd5\\u0cd6\\u0ce2-\\u0ce3\\u0ce6-\\u0cef\\u0d02\\u0d03\\u0d46-\\u0d48\\u0d57\\u0d62-\\u0d63\\u0d66-\\u0d6f\\u0d82\\u0d83\\u0dca\\u0dcf-\\u0dd4\\u0dd6\\u0dd8-\\u0ddf\\u0df2\\u0df3\\u0e34-\\u0e3a\\u0e40-\\u0e45\\u0e50-\\u0e59\\u0eb4-\\u0eb9\\u0ec8-\\u0ecd\\u0ed0-\\u0ed9\\u0f18\\u0f19\\u0f20-\\u0f29\\u0f35\\u0f37\\u0f39\\u0f41-\\u0f47\\u0f71-\\u0f84\\u0f86-\\u0f87\\u0f8d-\\u0f97\\u0f99-\\u0fbc\\u0fc6\\u1000-\\u1029\\u1040-\\u1049\\u1067-\\u106d\\u1071-\\u1074\\u1082-\\u108d\\u108f-\\u109d\\u135d-\\u135f\\u170e-\\u1710\\u1720-\\u1730\\u1740-\\u1750\\u1772\\u1773\\u1780-\\u17b2\\u17dd\\u17e0-\\u17e9\\u180b-\\u180d\\u1810-\\u1819\\u1920-\\u192b\\u1930-\\u193b\\u1951-\\u196d\\u19b0-\\u19c0\\u19c8-\\u19c9\\u19d0-\\u19d9\\u1a00-\\u1a15\\u1a20-\\u1a53\\u1a60-\\u1a7c\\u1a7f-\\u1a89\\u1a90-\\u1a99\\u1b46-\\u1b4b\\u1b50-\\u1b59\\u1b6b-\\u1b73\\u1bb0-\\u1bb9\\u1be6-\\u1bf3\\u1c00-\\u1c22\\u1c40-\\u1c49\\u1c5b-\\u1c7d\\u1cd0-\\u1cd2\\u1d00-\\u1dbe\\u1e01-\\u1f15\\u200c\\u200d\\u203f\\u2040\\u2054\\u20d0-\\u20dc\\u20e1\\u20e5-\\u20f0\\u2d81-\\u2d96\\u2de0-\\u2dff\\u3021-\\u3028\\u3099\\u309a\\ua640-\\ua66d\\ua674-\\ua67d\\ua69f\\ua6f0-\\ua6f1\\ua7f8-\\ua800\\ua806\\ua80b\\ua823-\\ua827\\ua880-\\ua881\\ua8b4-\\ua8c4\\ua8d0-\\ua8d9\\ua8f3-\\ua8f7\\ua900-\\ua909\\ua926-\\ua92d\\ua930-\\ua945\\ua980-\\ua983\\ua9b3-\\ua9c0\\uaa00-\\uaa27\\uaa40-\\uaa41\\uaa4c-\\uaa4d\\uaa50-\\uaa59\\uaa7b\\uaae0-\\uaae9\\uaaf2-\\uaaf3\\uabc0-\\uabe1\\uabec\\uabed\\uabf0-\\uabf9\\ufb20-\\ufb28\\ufe00-\\ufe0f\\ufe20-\\ufe26\\ufe33\\ufe34\\ufe4d-\\ufe4f\\uff10-\\uff19\\uff3f",H8="\\\\u[0-9a-fA-F]{4}|\\\\u\\{[0-9a-fA-F]+\\}",q3="(?:"+H8+"|["+KN+$8+"])",ON="(?:"+H8+"|["+O3+$8+b3+"])*";bN.identifier=new RegExp(q3+ON,"g");bN.identifierStart=new RegExp(q3);bN.identifierMatch=new RegExp("(?:"+H8+"|["+O3+$8+b3+"])+");bN.newline=/[\n\r\u2028\u2029]/;bN.lineBreak=new RegExp(`\r
6
+ `)R=R.replace(/[\n]/g,c);return R};hc.prototype.set_wrap_point=function(){this.current_line._set_wrap_point()};hc.prototype.set_indent=function(c,f){if(c=c||0,f=f||0,this.next_line.set_indent(c,f),this.__lines.length>1)return this.current_line.set_indent(c,f),!0;return this.current_line.set_indent(),!1};hc.prototype.add_raw_token=function(c){for(var f=0;f<c.newlines;f++)this.__add_outputline();this.current_line.set_indent(-1),this.current_line.push(c.whitespace_before),this.current_line.push(c.text),this.space_before_token=!1,this.non_breaking_space=!1,this.previous_token_wrapped=!1};hc.prototype.add_token=function(c){this.__add_space_before_token(),this.current_line.push(c),this.space_before_token=!1,this.non_breaking_space=!1,this.previous_token_wrapped=this.current_line._allow_wrap()};hc.prototype.__add_space_before_token=function(){if(this.space_before_token&&!this.just_added_newline()){if(!this.non_breaking_space)this.set_wrap_point();this.current_line.push(" ")}};hc.prototype.remove_indent=function(c){var f=this.__lines.length;while(c<f)this.__lines[c]._remove_indent(),c++;this.current_line._remove_wrap_indent()};hc.prototype.trim=function(c){c=c===void 0?!1:c,this.current_line.trim();while(c&&this.__lines.length>1&&this.current_line.is_empty())this.__lines.pop(),this.current_line=this.__lines[this.__lines.length-1],this.current_line.trim();this.previous_line=this.__lines.length>1?this.__lines[this.__lines.length-2]:null};hc.prototype.just_added_newline=function(){return this.current_line.is_empty()};hc.prototype.just_added_blankline=function(){return this.is_empty()||this.current_line.is_empty()&&this.previous_line.is_empty()};hc.prototype.ensure_empty_line_above=function(c,f){var R=this.__lines.length-2;while(R>=0){var h=this.__lines[R];if(h.is_empty())break;else if(h.item(0).indexOf(c)!==0&&h.item(-1)!==f){this.__lines.splice(R+1,0,new Rc(this)),this.previous_line=this.__lines[this.__lines.length-2];break}R--}};jN.Output=hc});var h8=p((IN,K3)=>{function xN(c,f,R,h){this.type=c,this.text=f,this.comments_before=null,this.newlines=R||0,this.whitespace_before=h||"",this.parent=null,this.next=null,this.previous=null,this.opened=null,this.closed=null,this.directives=null}IN.Token=xN});var A8=p((bN)=>{var KN="\\x23\\x24\\x40\\x41-\\x5a\\x5f\\x61-\\x7a",O3="\\x24\\x30-\\x39\\x41-\\x5a\\x5f\\x61-\\x7a",$8="\\xaa\\xb5\\xba\\xc0-\\xd6\\xd8-\\xf6\\xf8-\\u02c1\\u02c6-\\u02d1\\u02e0-\\u02e4\\u02ec\\u02ee\\u0370-\\u0374\\u0376\\u0377\\u037a-\\u037d\\u0386\\u0388-\\u038a\\u038c\\u038e-\\u03a1\\u03a3-\\u03f5\\u03f7-\\u0481\\u048a-\\u0527\\u0531-\\u0556\\u0559\\u0561-\\u0587\\u05d0-\\u05ea\\u05f0-\\u05f2\\u0620-\\u064a\\u066e\\u066f\\u0671-\\u06d3\\u06d5\\u06e5\\u06e6\\u06ee\\u06ef\\u06fa-\\u06fc\\u06ff\\u0710\\u0712-\\u072f\\u074d-\\u07a5\\u07b1\\u07ca-\\u07ea\\u07f4\\u07f5\\u07fa\\u0800-\\u0815\\u081a\\u0824\\u0828\\u0840-\\u0858\\u08a0\\u08a2-\\u08ac\\u0904-\\u0939\\u093d\\u0950\\u0958-\\u0961\\u0971-\\u0977\\u0979-\\u097f\\u0985-\\u098c\\u098f\\u0990\\u0993-\\u09a8\\u09aa-\\u09b0\\u09b2\\u09b6-\\u09b9\\u09bd\\u09ce\\u09dc\\u09dd\\u09df-\\u09e1\\u09f0\\u09f1\\u0a05-\\u0a0a\\u0a0f\\u0a10\\u0a13-\\u0a28\\u0a2a-\\u0a30\\u0a32\\u0a33\\u0a35\\u0a36\\u0a38\\u0a39\\u0a59-\\u0a5c\\u0a5e\\u0a72-\\u0a74\\u0a85-\\u0a8d\\u0a8f-\\u0a91\\u0a93-\\u0aa8\\u0aaa-\\u0ab0\\u0ab2\\u0ab3\\u0ab5-\\u0ab9\\u0abd\\u0ad0\\u0ae0\\u0ae1\\u0b05-\\u0b0c\\u0b0f\\u0b10\\u0b13-\\u0b28\\u0b2a-\\u0b30\\u0b32\\u0b33\\u0b35-\\u0b39\\u0b3d\\u0b5c\\u0b5d\\u0b5f-\\u0b61\\u0b71\\u0b83\\u0b85-\\u0b8a\\u0b8e-\\u0b90\\u0b92-\\u0b95\\u0b99\\u0b9a\\u0b9c\\u0b9e\\u0b9f\\u0ba3\\u0ba4\\u0ba8-\\u0baa\\u0bae-\\u0bb9\\u0bd0\\u0c05-\\u0c0c\\u0c0e-\\u0c10\\u0c12-\\u0c28\\u0c2a-\\u0c33\\u0c35-\\u0c39\\u0c3d\\u0c58\\u0c59\\u0c60\\u0c61\\u0c85-\\u0c8c\\u0c8e-\\u0c90\\u0c92-\\u0ca8\\u0caa-\\u0cb3\\u0cb5-\\u0cb9\\u0cbd\\u0cde\\u0ce0\\u0ce1\\u0cf1\\u0cf2\\u0d05-\\u0d0c\\u0d0e-\\u0d10\\u0d12-\\u0d3a\\u0d3d\\u0d4e\\u0d60\\u0d61\\u0d7a-\\u0d7f\\u0d85-\\u0d96\\u0d9a-\\u0db1\\u0db3-\\u0dbb\\u0dbd\\u0dc0-\\u0dc6\\u0e01-\\u0e30\\u0e32\\u0e33\\u0e40-\\u0e46\\u0e81\\u0e82\\u0e84\\u0e87\\u0e88\\u0e8a\\u0e8d\\u0e94-\\u0e97\\u0e99-\\u0e9f\\u0ea1-\\u0ea3\\u0ea5\\u0ea7\\u0eaa\\u0eab\\u0ead-\\u0eb0\\u0eb2\\u0eb3\\u0ebd\\u0ec0-\\u0ec4\\u0ec6\\u0edc-\\u0edf\\u0f00\\u0f40-\\u0f47\\u0f49-\\u0f6c\\u0f88-\\u0f8c\\u1000-\\u102a\\u103f\\u1050-\\u1055\\u105a-\\u105d\\u1061\\u1065\\u1066\\u106e-\\u1070\\u1075-\\u1081\\u108e\\u10a0-\\u10c5\\u10c7\\u10cd\\u10d0-\\u10fa\\u10fc-\\u1248\\u124a-\\u124d\\u1250-\\u1256\\u1258\\u125a-\\u125d\\u1260-\\u1288\\u128a-\\u128d\\u1290-\\u12b0\\u12b2-\\u12b5\\u12b8-\\u12be\\u12c0\\u12c2-\\u12c5\\u12c8-\\u12d6\\u12d8-\\u1310\\u1312-\\u1315\\u1318-\\u135a\\u1380-\\u138f\\u13a0-\\u13f4\\u1401-\\u166c\\u166f-\\u167f\\u1681-\\u169a\\u16a0-\\u16ea\\u16ee-\\u16f0\\u1700-\\u170c\\u170e-\\u1711\\u1720-\\u1731\\u1740-\\u1751\\u1760-\\u176c\\u176e-\\u1770\\u1780-\\u17b3\\u17d7\\u17dc\\u1820-\\u1877\\u1880-\\u18a8\\u18aa\\u18b0-\\u18f5\\u1900-\\u191c\\u1950-\\u196d\\u1970-\\u1974\\u1980-\\u19ab\\u19c1-\\u19c7\\u1a00-\\u1a16\\u1a20-\\u1a54\\u1aa7\\u1b05-\\u1b33\\u1b45-\\u1b4b\\u1b83-\\u1ba0\\u1bae\\u1baf\\u1bba-\\u1be5\\u1c00-\\u1c23\\u1c4d-\\u1c4f\\u1c5a-\\u1c7d\\u1ce9-\\u1cec\\u1cee-\\u1cf1\\u1cf5\\u1cf6\\u1d00-\\u1dbf\\u1e00-\\u1f15\\u1f18-\\u1f1d\\u1f20-\\u1f45\\u1f48-\\u1f4d\\u1f50-\\u1f57\\u1f59\\u1f5b\\u1f5d\\u1f5f-\\u1f7d\\u1f80-\\u1fb4\\u1fb6-\\u1fbc\\u1fbe\\u1fc2-\\u1fc4\\u1fc6-\\u1fcc\\u1fd0-\\u1fd3\\u1fd6-\\u1fdb\\u1fe0-\\u1fec\\u1ff2-\\u1ff4\\u1ff6-\\u1ffc\\u2071\\u207f\\u2090-\\u209c\\u2102\\u2107\\u210a-\\u2113\\u2115\\u2119-\\u211d\\u2124\\u2126\\u2128\\u212a-\\u212d\\u212f-\\u2139\\u213c-\\u213f\\u2145-\\u2149\\u214e\\u2160-\\u2188\\u2c00-\\u2c2e\\u2c30-\\u2c5e\\u2c60-\\u2ce4\\u2ceb-\\u2cee\\u2cf2\\u2cf3\\u2d00-\\u2d25\\u2d27\\u2d2d\\u2d30-\\u2d67\\u2d6f\\u2d80-\\u2d96\\u2da0-\\u2da6\\u2da8-\\u2dae\\u2db0-\\u2db6\\u2db8-\\u2dbe\\u2dc0-\\u2dc6\\u2dc8-\\u2dce\\u2dd0-\\u2dd6\\u2dd8-\\u2dde\\u2e2f\\u3005-\\u3007\\u3021-\\u3029\\u3031-\\u3035\\u3038-\\u303c\\u3041-\\u3096\\u309d-\\u309f\\u30a1-\\u30fa\\u30fc-\\u30ff\\u3105-\\u312d\\u3131-\\u318e\\u31a0-\\u31ba\\u31f0-\\u31ff\\u3400-\\u4db5\\u4e00-\\u9fcc\\ua000-\\ua48c\\ua4d0-\\ua4fd\\ua500-\\ua60c\\ua610-\\ua61f\\ua62a\\ua62b\\ua640-\\ua66e\\ua67f-\\ua697\\ua6a0-\\ua6ef\\ua717-\\ua71f\\ua722-\\ua788\\ua78b-\\ua78e\\ua790-\\ua793\\ua7a0-\\ua7aa\\ua7f8-\\ua801\\ua803-\\ua805\\ua807-\\ua80a\\ua80c-\\ua822\\ua840-\\ua873\\ua882-\\ua8b3\\ua8f2-\\ua8f7\\ua8fb\\ua90a-\\ua925\\ua930-\\ua946\\ua960-\\ua97c\\ua984-\\ua9b2\\ua9cf\\uaa00-\\uaa28\\uaa40-\\uaa42\\uaa44-\\uaa4b\\uaa60-\\uaa76\\uaa7a\\uaa80-\\uaaaf\\uaab1\\uaab5\\uaab6\\uaab9-\\uaabd\\uaac0\\uaac2\\uaadb-\\uaadd\\uaae0-\\uaaea\\uaaf2-\\uaaf4\\uab01-\\uab06\\uab09-\\uab0e\\uab11-\\uab16\\uab20-\\uab26\\uab28-\\uab2e\\uabc0-\\uabe2\\uac00-\\ud7a3\\ud7b0-\\ud7c6\\ud7cb-\\ud7fb\\uf900-\\ufa6d\\ufa70-\\ufad9\\ufb00-\\ufb06\\ufb13-\\ufb17\\ufb1d\\ufb1f-\\ufb28\\ufb2a-\\ufb36\\ufb38-\\ufb3c\\ufb3e\\ufb40\\ufb41\\ufb43\\ufb44\\ufb46-\\ufbb1\\ufbd3-\\ufd3d\\ufd50-\\ufd8f\\ufd92-\\ufdc7\\ufdf0-\\ufdfb\\ufe70-\\ufe74\\ufe76-\\ufefc\\uff21-\\uff3a\\uff41-\\uff5a\\uff66-\\uffbe\\uffc2-\\uffc7\\uffca-\\uffcf\\uffd2-\\uffd7\\uffda-\\uffdc",b3="\\u0300-\\u036f\\u0483-\\u0487\\u0591-\\u05bd\\u05bf\\u05c1\\u05c2\\u05c4\\u05c5\\u05c7\\u0610-\\u061a\\u0620-\\u0649\\u0672-\\u06d3\\u06e7-\\u06e8\\u06fb-\\u06fc\\u0730-\\u074a\\u0800-\\u0814\\u081b-\\u0823\\u0825-\\u0827\\u0829-\\u082d\\u0840-\\u0857\\u08e4-\\u08fe\\u0900-\\u0903\\u093a-\\u093c\\u093e-\\u094f\\u0951-\\u0957\\u0962-\\u0963\\u0966-\\u096f\\u0981-\\u0983\\u09bc\\u09be-\\u09c4\\u09c7\\u09c8\\u09d7\\u09df-\\u09e0\\u0a01-\\u0a03\\u0a3c\\u0a3e-\\u0a42\\u0a47\\u0a48\\u0a4b-\\u0a4d\\u0a51\\u0a66-\\u0a71\\u0a75\\u0a81-\\u0a83\\u0abc\\u0abe-\\u0ac5\\u0ac7-\\u0ac9\\u0acb-\\u0acd\\u0ae2-\\u0ae3\\u0ae6-\\u0aef\\u0b01-\\u0b03\\u0b3c\\u0b3e-\\u0b44\\u0b47\\u0b48\\u0b4b-\\u0b4d\\u0b56\\u0b57\\u0b5f-\\u0b60\\u0b66-\\u0b6f\\u0b82\\u0bbe-\\u0bc2\\u0bc6-\\u0bc8\\u0bca-\\u0bcd\\u0bd7\\u0be6-\\u0bef\\u0c01-\\u0c03\\u0c46-\\u0c48\\u0c4a-\\u0c4d\\u0c55\\u0c56\\u0c62-\\u0c63\\u0c66-\\u0c6f\\u0c82\\u0c83\\u0cbc\\u0cbe-\\u0cc4\\u0cc6-\\u0cc8\\u0cca-\\u0ccd\\u0cd5\\u0cd6\\u0ce2-\\u0ce3\\u0ce6-\\u0cef\\u0d02\\u0d03\\u0d46-\\u0d48\\u0d57\\u0d62-\\u0d63\\u0d66-\\u0d6f\\u0d82\\u0d83\\u0dca\\u0dcf-\\u0dd4\\u0dd6\\u0dd8-\\u0ddf\\u0df2\\u0df3\\u0e34-\\u0e3a\\u0e40-\\u0e45\\u0e50-\\u0e59\\u0eb4-\\u0eb9\\u0ec8-\\u0ecd\\u0ed0-\\u0ed9\\u0f18\\u0f19\\u0f20-\\u0f29\\u0f35\\u0f37\\u0f39\\u0f41-\\u0f47\\u0f71-\\u0f84\\u0f86-\\u0f87\\u0f8d-\\u0f97\\u0f99-\\u0fbc\\u0fc6\\u1000-\\u1029\\u1040-\\u1049\\u1067-\\u106d\\u1071-\\u1074\\u1082-\\u108d\\u108f-\\u109d\\u135d-\\u135f\\u170e-\\u1710\\u1720-\\u1730\\u1740-\\u1750\\u1772\\u1773\\u1780-\\u17b2\\u17dd\\u17e0-\\u17e9\\u180b-\\u180d\\u1810-\\u1819\\u1920-\\u192b\\u1930-\\u193b\\u1951-\\u196d\\u19b0-\\u19c0\\u19c8-\\u19c9\\u19d0-\\u19d9\\u1a00-\\u1a15\\u1a20-\\u1a53\\u1a60-\\u1a7c\\u1a7f-\\u1a89\\u1a90-\\u1a99\\u1b46-\\u1b4b\\u1b50-\\u1b59\\u1b6b-\\u1b73\\u1bb0-\\u1bb9\\u1be6-\\u1bf3\\u1c00-\\u1c22\\u1c40-\\u1c49\\u1c5b-\\u1c7d\\u1cd0-\\u1cd2\\u1d00-\\u1dbe\\u1e01-\\u1f15\\u200c\\u200d\\u203f\\u2040\\u2054\\u20d0-\\u20dc\\u20e1\\u20e5-\\u20f0\\u2d81-\\u2d96\\u2de0-\\u2dff\\u3021-\\u3028\\u3099\\u309a\\ua640-\\ua66d\\ua674-\\ua67d\\ua69f\\ua6f0-\\ua6f1\\ua7f8-\\ua800\\ua806\\ua80b\\ua823-\\ua827\\ua880-\\ua881\\ua8b4-\\ua8c4\\ua8d0-\\ua8d9\\ua8f3-\\ua8f7\\ua900-\\ua909\\ua926-\\ua92d\\ua930-\\ua945\\ua980-\\ua983\\ua9b3-\\ua9c0\\uaa00-\\uaa27\\uaa40-\\uaa41\\uaa4c-\\uaa4d\\uaa50-\\uaa59\\uaa7b\\uaae0-\\uaae9\\uaaf2-\\uaaf3\\uabc0-\\uabe1\\uabec\\uabed\\uabf0-\\uabf9\\ufb20-\\ufb28\\ufe00-\\ufe0f\\ufe20-\\ufe26\\ufe33\\ufe34\\ufe4d-\\ufe4f\\uff10-\\uff19\\uff3f",H8="\\\\u[0-9a-fA-F]{4}|\\\\u\\{[0-9a-fA-F]+\\}",q3="(?:"+H8+"|["+KN+$8+"])",ON="(?:"+H8+"|["+O3+$8+b3+"])*";bN.identifier=new RegExp(q3+ON,"g");bN.identifierStart=new RegExp(q3);bN.identifierMatch=new RegExp("(?:"+H8+"|["+O3+$8+b3+"])+");bN.newline=/[\n\r\u2028\u2029]/;bN.lineBreak=new RegExp(`\r
7
7
  |`+bN.newline.source);bN.allLineBreaks=new RegExp(bN.lineBreak.source,"g")});var gh=p((uN,uh)=>{function $f(c,f){if(this.raw_options=T3(c,f),this.disabled=this._get_boolean("disabled"),this.eol=this._get_characters("eol","auto"),this.end_with_newline=this._get_boolean("end_with_newline"),this.indent_size=this._get_number("indent_size",4),this.indent_char=this._get_characters("indent_char"," "),this.indent_level=this._get_number("indent_level"),this.preserve_newlines=this._get_boolean("preserve_newlines",!0),this.max_preserve_newlines=this._get_number("max_preserve_newlines",32786),!this.preserve_newlines)this.max_preserve_newlines=0;if(this.indent_with_tabs=this._get_boolean("indent_with_tabs",this.indent_char==="\t"),this.indent_with_tabs){if(this.indent_char="\t",this.indent_size===1)this.indent_size=4}this.wrap_line_length=this._get_number("wrap_line_length",this._get_number("max_char")),this.indent_empty_lines=this._get_boolean("indent_empty_lines"),this.templating=this._get_selection_list("templating",["auto","none","angular","django","erb","handlebars","php","smarty"],["auto"])}$f.prototype._get_array=function(c,f){var R=this.raw_options[c],h=f||[];if(typeof R==="object"){if(R!==null&&typeof R.concat==="function")h=R.concat()}else if(typeof R==="string")h=R.split(/[^a-zA-Z0-9_\/\-]+/);return h};$f.prototype._get_boolean=function(c,f){var R=this.raw_options[c],h=R===void 0?!!f:!!R;return h};$f.prototype._get_characters=function(c,f){var R=this.raw_options[c],h=f||"";if(typeof R==="string")h=R.replace(/\\r/,"\r").replace(/\\n/,`
8
8
  `).replace(/\\t/,"\t");return h};$f.prototype._get_number=function(c,f){var R=this.raw_options[c];if(f=parseInt(f,10),isNaN(f))f=0;var h=parseInt(R,10);if(isNaN(h))h=f;return h};$f.prototype._get_selection=function(c,f,R){var h=this._get_selection_list(c,f,R);if(h.length!==1)throw Error("Invalid Option Value: The option '"+c+`' can only be one of the following values:
9
9
  `+f+`
10
10
  You passed in: '`+this.raw_options[c]+"'");return h[0]};$f.prototype._get_selection_list=function(c,f,R){if(!f||f.length===0)throw Error("Selection list cannot be empty.");if(R=R||[f[0]],!this._is_valid_selection(R,f))throw Error("Invalid Default Value!");var h=this._get_array(c,R);if(!this._is_valid_selection(h,f))throw Error("Invalid Option Value: The option '"+c+`' can contain only the following values:
11
11
  `+f+`
12
- You passed in: '`+this.raw_options[c]+"'");return h};$f.prototype._is_valid_selection=function(c,f){return c.length&&f.length&&!c.some(function(R){return f.indexOf(R)===-1})};function T3(c,f){var R={};c=u3(c);var h;for(h in c)if(h!==f)R[h]=c[h];if(f&&c[f])for(h in c[f])R[h]=c[f][h];return R}function u3(c){var f={},R;for(R in c){var h=R.replace(/-/g,"_");f[h]=c[R]}return f}uN.Options=$f;uN.normalizeOpts=u3;uN.mergeOpts=T3});var G8=p((sN,m3)=>{var g3=gh().Options,pN=["before-newline","after-newline","preserve-newline"];function C3(c){g3.call(this,c,"js");var f=this.raw_options.brace_style||null;if(f==="expand-strict")this.raw_options.brace_style="expand";else if(f==="collapse-preserve-inline")this.raw_options.brace_style="collapse,preserve-inline";else if(this.raw_options.braces_on_own_line!==void 0)this.raw_options.brace_style=this.raw_options.braces_on_own_line?"expand":"collapse";var R=this._get_selection_list("brace_style",["collapse","expand","end-expand","none","preserve-inline"]);this.brace_preserve_inline=!1,this.brace_style="collapse";for(var h=0;h<R.length;h++)if(R[h]==="preserve-inline")this.brace_preserve_inline=!0;else this.brace_style=R[h];if(this.unindent_chained_methods=this._get_boolean("unindent_chained_methods"),this.break_chained_methods=this._get_boolean("break_chained_methods"),this.space_in_paren=this._get_boolean("space_in_paren"),this.space_in_empty_paren=this._get_boolean("space_in_empty_paren"),this.jslint_happy=this._get_boolean("jslint_happy"),this.space_after_anon_function=this._get_boolean("space_after_anon_function"),this.space_after_named_function=this._get_boolean("space_after_named_function"),this.keep_array_indentation=this._get_boolean("keep_array_indentation"),this.space_before_conditional=this._get_boolean("space_before_conditional",!0),this.unescape_strings=this._get_boolean("unescape_strings"),this.e4x=this._get_boolean("e4x"),this.comma_first=this._get_boolean("comma_first"),this.operator_position=this._get_selection("operator_position",pN),this.test_output_raw=this._get_boolean("test_output_raw"),this.jslint_happy)this.space_after_anon_function=!0}C3.prototype=new g3;sN.Options=C3});var Ch=p((kN,s3)=>{var p3=RegExp.prototype.hasOwnProperty("sticky");function yc(c){this.__input=c||"",this.__input_length=this.__input.length,this.__position=0}yc.prototype.restart=function(){this.__position=0};yc.prototype.back=function(){if(this.__position>0)this.__position-=1};yc.prototype.hasNext=function(){return this.__position<this.__input_length};yc.prototype.next=function(){var c=null;if(this.hasNext())c=this.__input.charAt(this.__position),this.__position+=1;return c};yc.prototype.peek=function(c){var f=null;if(c=c||0,c+=this.__position,c>=0&&c<this.__input_length)f=this.__input.charAt(c);return f};yc.prototype.__match=function(c,f){c.lastIndex=f;var R=c.exec(this.__input);if(R&&!(p3&&c.sticky)){if(R.index!==f)R=null}return R};yc.prototype.test=function(c,f){if(f=f||0,f+=this.__position,f>=0&&f<this.__input_length)return!!this.__match(c,f);else return!1};yc.prototype.testChar=function(c,f){var R=this.peek(f);return c.lastIndex=0,R!==null&&c.test(R)};yc.prototype.match=function(c){var f=this.__match(c,this.__position);if(f)this.__position+=f[0].length;else f=null;return f};yc.prototype.read=function(c,f,R){var h="",$;if(c){if($=this.match(c),$)h+=$[0]}if(f&&($||!c))h+=this.readUntil(f,R);return h};yc.prototype.readUntil=function(c,f){var R="",h=this.__position;c.lastIndex=this.__position;var $=c.exec(this.__input);if($){if(h=$.index,f)h+=$[0].length}else h=this.__input_length;return R=this.__input.substring(this.__position,h),this.__position=h,R};yc.prototype.readUntilAfter=function(c){return this.readUntil(c,!0)};yc.prototype.get_regexp=function(c,f){var R=null,h="g";if(f&&p3)h="y";if(typeof c==="string"&&c!=="")R=new RegExp(c,h);else if(c)R=new RegExp(c.source,h);return R};yc.prototype.get_literal_regexp=function(c){return RegExp(c.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&"))};yc.prototype.peekUntilAfter=function(c){var f=this.__position,R=this.readUntilAfter(c);return this.__position=f,R};yc.prototype.lookBack=function(c){var f=this.__position-1;return f>=c.length&&this.__input.substring(f-c.length,f).toLowerCase()===c};kN.InputScanner=yc});var k3=p((dN,i3)=>{function Mf(c){this.__tokens=[],this.__tokens_length=this.__tokens.length,this.__position=0,this.__parent_token=c}Mf.prototype.restart=function(){this.__position=0};Mf.prototype.isEmpty=function(){return this.__tokens_length===0};Mf.prototype.hasNext=function(){return this.__position<this.__tokens_length};Mf.prototype.next=function(){var c=null;if(this.hasNext())c=this.__tokens[this.__position],this.__position+=1;return c};Mf.prototype.peek=function(c){var f=null;if(c=c||0,c+=this.__position,c>=0&&c<this.__tokens_length)f=this.__tokens[c];return f};Mf.prototype.add=function(c){if(this.__parent_token)c.parent=this.__parent_token;this.__tokens.push(c),this.__tokens_length+=1};dN.TokenStream=Mf});var lR=p((nN,l3)=>{function pc(c,f){if(this._input=c,this._starting_pattern=null,this._match_pattern=null,this._until_pattern=null,this._until_after=!1,f)this._starting_pattern=this._input.get_regexp(f._starting_pattern,!0),this._match_pattern=this._input.get_regexp(f._match_pattern,!0),this._until_pattern=this._input.get_regexp(f._until_pattern),this._until_after=f._until_after}pc.prototype.read=function(){var c=this._input.read(this._starting_pattern);if(!this._starting_pattern||c)c+=this._input.read(this._match_pattern,this._until_pattern,this._until_after);return c};pc.prototype.read_match=function(){return this._input.match(this._match_pattern)};pc.prototype.until_after=function(c){var f=this._create();return f._until_after=!0,f._until_pattern=this._input.get_regexp(c),f._update(),f};pc.prototype.until=function(c){var f=this._create();return f._until_after=!1,f._until_pattern=this._input.get_regexp(c),f._update(),f};pc.prototype.starting_with=function(c){var f=this._create();return f._starting_pattern=this._input.get_regexp(c,!0),f._update(),f};pc.prototype.matching=function(c){var f=this._create();return f._match_pattern=this._input.get_regexp(c,!0),f._update(),f};pc.prototype._create=function(){return new pc(this._input,this)};pc.prototype._update=function(){};nN.Pattern=pc});var n3=p((aN,_3)=>{var d3=lR().Pattern;function Hf(c,f){if(d3.call(this,c,f),f)this._line_regexp=this._input.get_regexp(f._line_regexp);else this.__set_whitespace_patterns("","");this.newline_count=0,this.whitespace_before_token=""}Hf.prototype=new d3;Hf.prototype.__set_whitespace_patterns=function(c,f){c+="\\t ",f+="\\n\\r",this._match_pattern=this._input.get_regexp("["+c+f+"]+",!0),this._newline_regexp=this._input.get_regexp("\\r\\n|["+f+"]")};Hf.prototype.read=function(){this.newline_count=0,this.whitespace_before_token="";var c=this._input.read(this._match_pattern);if(c===" ")this.whitespace_before_token=" ";else if(c){var f=this.__split(this._newline_regexp,c);this.newline_count=f.length-1,this.whitespace_before_token=f[this.newline_count]}return c};Hf.prototype.matching=function(c,f){var R=this._create();return R.__set_whitespace_patterns(c,f),R._update(),R};Hf.prototype._create=function(){return new Hf(this._input,this)};Hf.prototype.__split=function(c,f){c.lastIndex=0;var R=0,h=[],$=c.exec(f);while($)h.push(f.substring(R,$.index)),R=$.index+$[0].length,$=c.exec(f);if(R<f.length)h.push(f.substring(R,f.length));else h.push("");return h};aN.WhitespacePattern=Hf});var _R=p((cZ,F8)=>{var rN=Ch().InputScanner,o3=h8().Token,y8=k3().TokenStream,eN=n3().WhitespacePattern,dR={START:"TK_START",RAW:"TK_RAW",EOF:"TK_EOF"},sc=function(c,f){this._input=new rN(c),this._options=f||{},this.__tokens=null,this._patterns={},this._patterns.whitespace=new eN(this._input)};sc.prototype.tokenize=function(){this._input.restart(),this.__tokens=new y8,this._reset();var c,f=new o3(dR.START,""),R=null,h=[],$=new y8;while(f.type!==dR.EOF){c=this._get_next_token(f,R);while(this._is_comment(c))$.add(c),c=this._get_next_token(f,R);if(!$.isEmpty())c.comments_before=$,$=new y8;if(c.parent=R,this._is_opening(c))h.push(R),R=c;else if(R&&this._is_closing(c,R))c.opened=R,R.closed=c,R=h.pop(),c.parent=R;c.previous=f,f.next=c,this.__tokens.add(c),f=c}return this.__tokens};sc.prototype._is_first_token=function(){return this.__tokens.isEmpty()};sc.prototype._reset=function(){};sc.prototype._get_next_token=function(c,f){this._readWhitespace();var R=this._input.read(/.+/g);if(R)return this._create_token(dR.RAW,R);else return this._create_token(dR.EOF,"")};sc.prototype._is_comment=function(c){return!1};sc.prototype._is_opening=function(c){return!1};sc.prototype._is_closing=function(c,f){return!1};sc.prototype._create_token=function(c,f){var R=new o3(c,f,this._patterns.whitespace.newline_count,this._patterns.whitespace.whitespace_before_token);return R};sc.prototype._readWhitespace=function(){return this._patterns.whitespace.read()};cZ.Tokenizer=sc;cZ.TOKEN=dR});var mh=p((hZ,a3)=>{function W8(c,f){c=typeof c==="string"?c:c.source,f=typeof f==="string"?f:f.source,this.__directives_block_pattern=new RegExp(c+/ beautify( \w+[:]\w+)+ /.source+f,"g"),this.__directive_pattern=/ (\w+)[:](\w+)/g,this.__directives_end_ignore_pattern=new RegExp(c+/\sbeautify\signore:end\s/.source+f,"g")}W8.prototype.get_directives=function(c){if(!c.match(this.__directives_block_pattern))return null;var f={};this.__directive_pattern.lastIndex=0;var R=this.__directive_pattern.exec(c);while(R)f[R[1]]=R[2],R=this.__directive_pattern.exec(c);return f};W8.prototype.readIgnored=function(c){return c.readUntilAfter(this.__directives_end_ignore_pattern)};hZ.Directives=W8});var Y8=p((HZ,t3)=>{var v8=lR().Pattern,U8={django:!1,erb:!1,handlebars:!1,php:!1,smarty:!1,angular:!1};function Ec(c,f){if(v8.call(this,c,f),this.__template_pattern=null,this._disabled=Object.assign({},U8),this._excluded=Object.assign({},U8),f)this.__template_pattern=this._input.get_regexp(f.__template_pattern),this._excluded=Object.assign(this._excluded,f._excluded),this._disabled=Object.assign(this._disabled,f._disabled);var R=new v8(c);this.__patterns={handlebars_comment:R.starting_with(/{{!--/).until_after(/--}}/),handlebars_unescaped:R.starting_with(/{{{/).until_after(/}}}/),handlebars:R.starting_with(/{{/).until_after(/}}/),php:R.starting_with(/<\?(?:[= ]|php)/).until_after(/\?>/),erb:R.starting_with(/<%[^%]/).until_after(/[^%]%>/),django:R.starting_with(/{%/).until_after(/%}/),django_value:R.starting_with(/{{/).until_after(/}}/),django_comment:R.starting_with(/{#/).until_after(/#}/),smarty:R.starting_with(/{(?=[^}{\s\n])/).until_after(/[^\s\n]}/),smarty_comment:R.starting_with(/{\*/).until_after(/\*}/),smarty_literal:R.starting_with(/{literal}/).until_after(/{\/literal}/)}}Ec.prototype=new v8;Ec.prototype._create=function(){return new Ec(this._input,this)};Ec.prototype._update=function(){this.__set_templated_pattern()};Ec.prototype.disable=function(c){var f=this._create();return f._disabled[c]=!0,f._update(),f};Ec.prototype.read_options=function(c){var f=this._create();for(var R in U8)f._disabled[R]=c.templating.indexOf(R)===-1;return f._update(),f};Ec.prototype.exclude=function(c){var f=this._create();return f._excluded[c]=!0,f._update(),f};Ec.prototype.read=function(){var c="";if(this._match_pattern)c=this._input.read(this._starting_pattern);else c=this._input.read(this._starting_pattern,this.__template_pattern);var f=this._read_template();while(f){if(this._match_pattern)f+=this._input.read(this._match_pattern);else f+=this._input.readUntil(this.__template_pattern);c+=f,f=this._read_template()}if(this._until_after)c+=this._input.readUntilAfter(this._until_pattern);return c};Ec.prototype.__set_templated_pattern=function(){var c=[];if(!this._disabled.php)c.push(this.__patterns.php._starting_pattern.source);if(!this._disabled.handlebars)c.push(this.__patterns.handlebars._starting_pattern.source);if(!this._disabled.angular)c.push(this.__patterns.handlebars._starting_pattern.source);if(!this._disabled.erb)c.push(this.__patterns.erb._starting_pattern.source);if(!this._disabled.django)c.push(this.__patterns.django._starting_pattern.source),c.push(this.__patterns.django_value._starting_pattern.source),c.push(this.__patterns.django_comment._starting_pattern.source);if(!this._disabled.smarty)c.push(this.__patterns.smarty._starting_pattern.source);if(this._until_pattern)c.push(this._until_pattern.source);this.__template_pattern=this._input.get_regexp("(?:"+c.join("|")+")")};Ec.prototype._read_template=function(){var c="",f=this._input.peek();if(f==="<"){var R=this._input.peek(1);if(!this._disabled.php&&!this._excluded.php&&R==="?")c=c||this.__patterns.php.read();if(!this._disabled.erb&&!this._excluded.erb&&R==="%")c=c||this.__patterns.erb.read()}else if(f==="{"){if(!this._disabled.handlebars&&!this._excluded.handlebars)c=c||this.__patterns.handlebars_comment.read(),c=c||this.__patterns.handlebars_unescaped.read(),c=c||this.__patterns.handlebars.read();if(!this._disabled.django){if(!this._excluded.django&&!this._excluded.handlebars)c=c||this.__patterns.django_value.read();if(!this._excluded.django)c=c||this.__patterns.django_comment.read(),c=c||this.__patterns.django.read()}if(!this._disabled.smarty){if(this._disabled.django&&this._disabled.handlebars)c=c||this.__patterns.smarty_comment.read(),c=c||this.__patterns.smarty_literal.read(),c=c||this.__patterns.smarty.read()}}return c};HZ.TemplatablePattern=Ec});var oR=p((MZ,nR)=>{var GZ=Ch().InputScanner,e3=_R().Tokenizer,N8=_R().TOKEN,yZ=mh().Directives,wc=A8(),FZ=lR().Pattern,WZ=Y8().TemplatablePattern;function Z8(c,f){return f.indexOf(c)!==-1}var S={START_EXPR:"TK_START_EXPR",END_EXPR:"TK_END_EXPR",START_BLOCK:"TK_START_BLOCK",END_BLOCK:"TK_END_BLOCK",WORD:"TK_WORD",RESERVED:"TK_RESERVED",SEMICOLON:"TK_SEMICOLON",STRING:"TK_STRING",EQUALS:"TK_EQUALS",OPERATOR:"TK_OPERATOR",COMMA:"TK_COMMA",BLOCK_COMMENT:"TK_BLOCK_COMMENT",COMMENT:"TK_COMMENT",DOT:"TK_DOT",UNKNOWN:"TK_UNKNOWN",START:N8.START,RAW:N8.RAW,EOF:N8.EOF},r3=new yZ(/\/\*/,/\*\//),vZ=/0[xX][0123456789abcdefABCDEF_]*n?|0[oO][01234567_]*n?|0[bB][01_]*n?|\d[\d_]*n|(?:\.\d[\d_]*|\d[\d_]*\.?[\d_]*)(?:[eE][+-]?[\d_]+)?/,UZ=/[0-9]/,YZ=/[^\d\.]/,NZ=">>> === !== &&= ??= ||= << && >= ** != == <= >> || ?? |> < / - + > : & % ? ^ | *".split(" "),Bf=">>>= ... >>= <<= === >>> !== **= &&= ??= ||= => ^= :: /= << <= == && -= >= >> != -- += ** || ?? ++ %= &= *= |= |> = ! ? > < : / ^ - + * & % ~ |";Bf=Bf.replace(/[-[\]{}()*+?.,\\^$|#]/g,"\\$&");Bf="\\?\\.(?!\\d) "+Bf;Bf=Bf.replace(/ /g,"|");var ZZ=new RegExp(Bf),cy="continue,try,throw,return,var,let,const,if,switch,case,default,for,while,break,function,import,export".split(","),JZ=cy.concat(["do","in","of","else","get","set","new","catch","finally","typeof","yield","async","await","from","as","class","extends"]),zZ=new RegExp("^(?:"+JZ.join("|")+")$"),ph,$c=function(c,f){e3.call(this,c,f),this._patterns.whitespace=this._patterns.whitespace.matching(/\u00A0\u1680\u180e\u2000-\u200a\u202f\u205f\u3000\ufeff/.source,/\u2028\u2029/.source);var R=new FZ(this._input),h=new WZ(this._input).read_options(this._options);this.__patterns={template:h,identifier:h.starting_with(wc.identifier).matching(wc.identifierMatch),number:R.matching(vZ),punct:R.matching(ZZ),comment:R.starting_with(/\/\//).until(/[\n\r\u2028\u2029]/),block_comment:R.starting_with(/\/\*/).until_after(/\*\//),html_comment_start:R.matching(/<!--/),html_comment_end:R.matching(/-->/),include:R.starting_with(/#include/).until_after(wc.lineBreak),shebang:R.starting_with(/#!/).until_after(wc.lineBreak),xml:R.matching(/[\s\S]*?<(\/?)([-a-zA-Z:0-9_.]+|{[^}]+?}|!\[CDATA\[[^\]]*?\]\]|)(\s*{[^}]+?}|\s+[-a-zA-Z:0-9_.]+|\s+[-a-zA-Z:0-9_.]+\s*=\s*('[^']*'|"[^"]*"|{([^{}]|{[^}]+?})+?}))*\s*(\/?)\s*>/),single_quote:h.until(/['\\\n\r\u2028\u2029]/),double_quote:h.until(/["\\\n\r\u2028\u2029]/),template_text:h.until(/[`\\$]/),template_expression:h.until(/[`}\\]/)}};$c.prototype=new e3;$c.prototype._is_comment=function(c){return c.type===S.COMMENT||c.type===S.BLOCK_COMMENT||c.type===S.UNKNOWN};$c.prototype._is_opening=function(c){return c.type===S.START_BLOCK||c.type===S.START_EXPR};$c.prototype._is_closing=function(c,f){return(c.type===S.END_BLOCK||c.type===S.END_EXPR)&&(f&&(c.text==="]"&&f.text==="["||c.text===")"&&f.text==="("||c.text==="}"&&f.text==="{"))};$c.prototype._reset=function(){ph=!1};$c.prototype._get_next_token=function(c,f){var R=null;this._readWhitespace();var h=this._input.peek();if(h===null)return this._create_token(S.EOF,"");return R=R||this._read_non_javascript(h),R=R||this._read_string(h),R=R||this._read_pair(h,this._input.peek(1)),R=R||this._read_word(c),R=R||this._read_singles(h),R=R||this._read_comment(h),R=R||this._read_regexp(h,c),R=R||this._read_xml(h,c),R=R||this._read_punctuation(),R=R||this._create_token(S.UNKNOWN,this._input.next()),R};$c.prototype._read_word=function(c){var f=this.__patterns.identifier.read();if(f!==""){if(f=f.replace(wc.allLineBreaks,`
12
+ You passed in: '`+this.raw_options[c]+"'");return h};$f.prototype._is_valid_selection=function(c,f){return c.length&&f.length&&!c.some(function(R){return f.indexOf(R)===-1})};function T3(c,f){var R={};c=u3(c);var h;for(h in c)if(h!==f)R[h]=c[h];if(f&&c[f])for(h in c[f])R[h]=c[f][h];return R}function u3(c){var f={},R;for(R in c){var h=R.replace(/-/g,"_");f[h]=c[R]}return f}uN.Options=$f;uN.normalizeOpts=u3;uN.mergeOpts=T3});var G8=p((sN,m3)=>{var g3=gh().Options,pN=["before-newline","after-newline","preserve-newline"];function C3(c){g3.call(this,c,"js");var f=this.raw_options.brace_style||null;if(f==="expand-strict")this.raw_options.brace_style="expand";else if(f==="collapse-preserve-inline")this.raw_options.brace_style="collapse,preserve-inline";else if(this.raw_options.braces_on_own_line!==void 0)this.raw_options.brace_style=this.raw_options.braces_on_own_line?"expand":"collapse";var R=this._get_selection_list("brace_style",["collapse","expand","end-expand","none","preserve-inline"]);this.brace_preserve_inline=!1,this.brace_style="collapse";for(var h=0;h<R.length;h++)if(R[h]==="preserve-inline")this.brace_preserve_inline=!0;else this.brace_style=R[h];if(this.unindent_chained_methods=this._get_boolean("unindent_chained_methods"),this.break_chained_methods=this._get_boolean("break_chained_methods"),this.space_in_paren=this._get_boolean("space_in_paren"),this.space_in_empty_paren=this._get_boolean("space_in_empty_paren"),this.jslint_happy=this._get_boolean("jslint_happy"),this.space_after_anon_function=this._get_boolean("space_after_anon_function"),this.space_after_named_function=this._get_boolean("space_after_named_function"),this.keep_array_indentation=this._get_boolean("keep_array_indentation"),this.space_before_conditional=this._get_boolean("space_before_conditional",!0),this.unescape_strings=this._get_boolean("unescape_strings"),this.e4x=this._get_boolean("e4x"),this.comma_first=this._get_boolean("comma_first"),this.operator_position=this._get_selection("operator_position",pN),this.test_output_raw=this._get_boolean("test_output_raw"),this.jslint_happy)this.space_after_anon_function=!0}C3.prototype=new g3;sN.Options=C3});var Ch=p((kN,s3)=>{var p3=RegExp.prototype.hasOwnProperty("sticky");function yc(c){this.__input=c||"",this.__input_length=this.__input.length,this.__position=0}yc.prototype.restart=function(){this.__position=0};yc.prototype.back=function(){if(this.__position>0)this.__position-=1};yc.prototype.hasNext=function(){return this.__position<this.__input_length};yc.prototype.next=function(){var c=null;if(this.hasNext())c=this.__input.charAt(this.__position),this.__position+=1;return c};yc.prototype.peek=function(c){var f=null;if(c=c||0,c+=this.__position,c>=0&&c<this.__input_length)f=this.__input.charAt(c);return f};yc.prototype.__match=function(c,f){c.lastIndex=f;var R=c.exec(this.__input);if(R&&!(p3&&c.sticky)){if(R.index!==f)R=null}return R};yc.prototype.test=function(c,f){if(f=f||0,f+=this.__position,f>=0&&f<this.__input_length)return!!this.__match(c,f);else return!1};yc.prototype.testChar=function(c,f){var R=this.peek(f);return c.lastIndex=0,R!==null&&c.test(R)};yc.prototype.match=function(c){var f=this.__match(c,this.__position);if(f)this.__position+=f[0].length;else f=null;return f};yc.prototype.read=function(c,f,R){var h="",$;if(c){if($=this.match(c),$)h+=$[0]}if(f&&($||!c))h+=this.readUntil(f,R);return h};yc.prototype.readUntil=function(c,f){var R="",h=this.__position;c.lastIndex=this.__position;var $=c.exec(this.__input);if($){if(h=$.index,f)h+=$[0].length}else h=this.__input_length;return R=this.__input.substring(this.__position,h),this.__position=h,R};yc.prototype.readUntilAfter=function(c){return this.readUntil(c,!0)};yc.prototype.get_regexp=function(c,f){var R=null,h="g";if(f&&p3)h="y";if(typeof c==="string"&&c!=="")R=new RegExp(c,h);else if(c)R=new RegExp(c.source,h);return R};yc.prototype.get_literal_regexp=function(c){return RegExp(c.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&"))};yc.prototype.peekUntilAfter=function(c){var f=this.__position,R=this.readUntilAfter(c);return this.__position=f,R};yc.prototype.lookBack=function(c){var f=this.__position-1;return f>=c.length&&this.__input.substring(f-c.length,f).toLowerCase()===c};kN.InputScanner=yc});var k3=p((dN,i3)=>{function Mf(c){this.__tokens=[],this.__tokens_length=this.__tokens.length,this.__position=0,this.__parent_token=c}Mf.prototype.restart=function(){this.__position=0};Mf.prototype.isEmpty=function(){return this.__tokens_length===0};Mf.prototype.hasNext=function(){return this.__position<this.__tokens_length};Mf.prototype.next=function(){var c=null;if(this.hasNext())c=this.__tokens[this.__position],this.__position+=1;return c};Mf.prototype.peek=function(c){var f=null;if(c=c||0,c+=this.__position,c>=0&&c<this.__tokens_length)f=this.__tokens[c];return f};Mf.prototype.add=function(c){if(this.__parent_token)c.parent=this.__parent_token;this.__tokens.push(c),this.__tokens_length+=1};dN.TokenStream=Mf});var lR=p((nN,l3)=>{function pc(c,f){if(this._input=c,this._starting_pattern=null,this._match_pattern=null,this._until_pattern=null,this._until_after=!1,f)this._starting_pattern=this._input.get_regexp(f._starting_pattern,!0),this._match_pattern=this._input.get_regexp(f._match_pattern,!0),this._until_pattern=this._input.get_regexp(f._until_pattern),this._until_after=f._until_after}pc.prototype.read=function(){var c=this._input.read(this._starting_pattern);if(!this._starting_pattern||c)c+=this._input.read(this._match_pattern,this._until_pattern,this._until_after);return c};pc.prototype.read_match=function(){return this._input.match(this._match_pattern)};pc.prototype.until_after=function(c){var f=this._create();return f._until_after=!0,f._until_pattern=this._input.get_regexp(c),f._update(),f};pc.prototype.until=function(c){var f=this._create();return f._until_after=!1,f._until_pattern=this._input.get_regexp(c),f._update(),f};pc.prototype.starting_with=function(c){var f=this._create();return f._starting_pattern=this._input.get_regexp(c,!0),f._update(),f};pc.prototype.matching=function(c){var f=this._create();return f._match_pattern=this._input.get_regexp(c,!0),f._update(),f};pc.prototype._create=function(){return new pc(this._input,this)};pc.prototype._update=function(){};nN.Pattern=pc});var n3=p((aN,_3)=>{var d3=lR().Pattern;function Hf(c,f){if(d3.call(this,c,f),f)this._line_regexp=this._input.get_regexp(f._line_regexp);else this.__set_whitespace_patterns("","");this.newline_count=0,this.whitespace_before_token=""}Hf.prototype=new d3;Hf.prototype.__set_whitespace_patterns=function(c,f){c+="\\t ",f+="\\n\\r",this._match_pattern=this._input.get_regexp("["+c+f+"]+",!0),this._newline_regexp=this._input.get_regexp("\\r\\n|["+f+"]")};Hf.prototype.read=function(){this.newline_count=0,this.whitespace_before_token="";var c=this._input.read(this._match_pattern);if(c===" ")this.whitespace_before_token=" ";else if(c){var f=this.__split(this._newline_regexp,c);this.newline_count=f.length-1,this.whitespace_before_token=f[this.newline_count]}return c};Hf.prototype.matching=function(c,f){var R=this._create();return R.__set_whitespace_patterns(c,f),R._update(),R};Hf.prototype._create=function(){return new Hf(this._input,this)};Hf.prototype.__split=function(c,f){c.lastIndex=0;var R=0,h=[],$=c.exec(f);while($)h.push(f.substring(R,$.index)),R=$.index+$[0].length,$=c.exec(f);if(R<f.length)h.push(f.substring(R,f.length));else h.push("");return h};aN.WhitespacePattern=Hf});var _R=p((cZ,F8)=>{var rN=Ch().InputScanner,o3=h8().Token,y8=k3().TokenStream,eN=n3().WhitespacePattern,dR={START:"TK_START",RAW:"TK_RAW",EOF:"TK_EOF"},sc=function(c,f){this._input=new rN(c),this._options=f||{},this.__tokens=null,this._patterns={},this._patterns.whitespace=new eN(this._input)};sc.prototype.tokenize=function(){this._input.restart(),this.__tokens=new y8,this._reset();var c,f=new o3(dR.START,""),R=null,h=[],$=new y8;while(f.type!==dR.EOF){c=this._get_next_token(f,R);while(this._is_comment(c))$.add(c),c=this._get_next_token(f,R);if(!$.isEmpty())c.comments_before=$,$=new y8;if(c.parent=R,this._is_opening(c))h.push(R),R=c;else if(R&&this._is_closing(c,R))c.opened=R,R.closed=c,R=h.pop(),c.parent=R;c.previous=f,f.next=c,this.__tokens.add(c),f=c}return this.__tokens};sc.prototype._is_first_token=function(){return this.__tokens.isEmpty()};sc.prototype._reset=function(){};sc.prototype._get_next_token=function(c,f){this._readWhitespace();var R=this._input.read(/.+/g);if(R)return this._create_token(dR.RAW,R);else return this._create_token(dR.EOF,"")};sc.prototype._is_comment=function(c){return!1};sc.prototype._is_opening=function(c){return!1};sc.prototype._is_closing=function(c,f){return!1};sc.prototype._create_token=function(c,f){var R=new o3(c,f,this._patterns.whitespace.newline_count,this._patterns.whitespace.whitespace_before_token);return R};sc.prototype._readWhitespace=function(){return this._patterns.whitespace.read()};cZ.Tokenizer=sc;cZ.TOKEN=dR});var mh=p((hZ,a3)=>{function W8(c,f){c=typeof c==="string"?c:c.source,f=typeof f==="string"?f:f.source,this.__directives_block_pattern=new RegExp(c+/ beautify( \w+[:]\w+)+ /.source+f,"g"),this.__directive_pattern=/ (\w+)[:](\w+)/g,this.__directives_end_ignore_pattern=new RegExp(c+/\sbeautify\signore:end\s/.source+f,"g")}W8.prototype.get_directives=function(c){if(!c.match(this.__directives_block_pattern))return null;var f={};this.__directive_pattern.lastIndex=0;var R=this.__directive_pattern.exec(c);while(R)f[R[1]]=R[2],R=this.__directive_pattern.exec(c);return f};W8.prototype.readIgnored=function(c){return c.readUntilAfter(this.__directives_end_ignore_pattern)};hZ.Directives=W8});var Y8=p((HZ,t3)=>{var v8=lR().Pattern,U8={django:!1,erb:!1,handlebars:!1,php:!1,smarty:!1,angular:!1};function Ec(c,f){if(v8.call(this,c,f),this.__template_pattern=null,this._disabled=Object.assign({},U8),this._excluded=Object.assign({},U8),f)this.__template_pattern=this._input.get_regexp(f.__template_pattern),this._excluded=Object.assign(this._excluded,f._excluded),this._disabled=Object.assign(this._disabled,f._disabled);var R=new v8(c);this.__patterns={handlebars_comment:R.starting_with(/{{!--/).until_after(/--}}/),handlebars_unescaped:R.starting_with(/{{{/).until_after(/}}}/),handlebars:R.starting_with(/{{/).until_after(/}}/),php:R.starting_with(/<\?(?:[= ]|php)/).until_after(/\?>/),erb:R.starting_with(/<%[^%]/).until_after(/[^%]%>/),django:R.starting_with(/{%/).until_after(/%}/),django_value:R.starting_with(/{{/).until_after(/}}/),django_comment:R.starting_with(/{#/).until_after(/#}/),smarty:R.starting_with(/{(?=[^}{\s\n])/).until_after(/[^\s\n]}/),smarty_comment:R.starting_with(/{\*/).until_after(/\*}/),smarty_literal:R.starting_with(/{literal}/).until_after(/{\/literal}/)}}Ec.prototype=new v8;Ec.prototype._create=function(){return new Ec(this._input,this)};Ec.prototype._update=function(){this.__set_templated_pattern()};Ec.prototype.disable=function(c){var f=this._create();return f._disabled[c]=!0,f._update(),f};Ec.prototype.read_options=function(c){var f=this._create();for(var R in U8)f._disabled[R]=c.templating.indexOf(R)===-1;return f._update(),f};Ec.prototype.exclude=function(c){var f=this._create();return f._excluded[c]=!0,f._update(),f};Ec.prototype.read=function(){var c="";if(this._match_pattern)c=this._input.read(this._starting_pattern);else c=this._input.read(this._starting_pattern,this.__template_pattern);var f=this._read_template();while(f){if(this._match_pattern)f+=this._input.read(this._match_pattern);else f+=this._input.readUntil(this.__template_pattern);c+=f,f=this._read_template()}if(this._until_after)c+=this._input.readUntilAfter(this._until_pattern);return c};Ec.prototype.__set_templated_pattern=function(){var c=[];if(!this._disabled.php)c.push(this.__patterns.php._starting_pattern.source);if(!this._disabled.handlebars)c.push(this.__patterns.handlebars._starting_pattern.source);if(!this._disabled.angular)c.push(this.__patterns.handlebars._starting_pattern.source);if(!this._disabled.erb)c.push(this.__patterns.erb._starting_pattern.source);if(!this._disabled.django)c.push(this.__patterns.django._starting_pattern.source),c.push(this.__patterns.django_value._starting_pattern.source),c.push(this.__patterns.django_comment._starting_pattern.source);if(!this._disabled.smarty)c.push(this.__patterns.smarty._starting_pattern.source);if(this._until_pattern)c.push(this._until_pattern.source);this.__template_pattern=this._input.get_regexp("(?:"+c.join("|")+")")};Ec.prototype._read_template=function(){var c="",f=this._input.peek();if(f==="<"){var R=this._input.peek(1);if(!this._disabled.php&&!this._excluded.php&&R==="?")c=c||this.__patterns.php.read();if(!this._disabled.erb&&!this._excluded.erb&&R==="%")c=c||this.__patterns.erb.read()}else if(f==="{"){if(!this._disabled.handlebars&&!this._excluded.handlebars)c=c||this.__patterns.handlebars_comment.read(),c=c||this.__patterns.handlebars_unescaped.read(),c=c||this.__patterns.handlebars.read();if(!this._disabled.django){if(!this._excluded.django&&!this._excluded.handlebars)c=c||this.__patterns.django_value.read();if(!this._excluded.django)c=c||this.__patterns.django_comment.read(),c=c||this.__patterns.django.read()}if(!this._disabled.smarty){if(this._disabled.django&&this._disabled.handlebars)c=c||this.__patterns.smarty_comment.read(),c=c||this.__patterns.smarty_literal.read(),c=c||this.__patterns.smarty.read()}}return c};HZ.TemplatablePattern=Ec});var oR=p((MZ,nR)=>{var GZ=Ch().InputScanner,e3=_R().Tokenizer,N8=_R().TOKEN,yZ=mh().Directives,jc=A8(),FZ=lR().Pattern,WZ=Y8().TemplatablePattern;function Z8(c,f){return f.indexOf(c)!==-1}var S={START_EXPR:"TK_START_EXPR",END_EXPR:"TK_END_EXPR",START_BLOCK:"TK_START_BLOCK",END_BLOCK:"TK_END_BLOCK",WORD:"TK_WORD",RESERVED:"TK_RESERVED",SEMICOLON:"TK_SEMICOLON",STRING:"TK_STRING",EQUALS:"TK_EQUALS",OPERATOR:"TK_OPERATOR",COMMA:"TK_COMMA",BLOCK_COMMENT:"TK_BLOCK_COMMENT",COMMENT:"TK_COMMENT",DOT:"TK_DOT",UNKNOWN:"TK_UNKNOWN",START:N8.START,RAW:N8.RAW,EOF:N8.EOF},r3=new yZ(/\/\*/,/\*\//),vZ=/0[xX][0123456789abcdefABCDEF_]*n?|0[oO][01234567_]*n?|0[bB][01_]*n?|\d[\d_]*n|(?:\.\d[\d_]*|\d[\d_]*\.?[\d_]*)(?:[eE][+-]?[\d_]+)?/,UZ=/[0-9]/,YZ=/[^\d\.]/,NZ=">>> === !== &&= ??= ||= << && >= ** != == <= >> || ?? |> < / - + > : & % ? ^ | *".split(" "),Bf=">>>= ... >>= <<= === >>> !== **= &&= ??= ||= => ^= :: /= << <= == && -= >= >> != -- += ** || ?? ++ %= &= *= |= |> = ! ? > < : / ^ - + * & % ~ |";Bf=Bf.replace(/[-[\]{}()*+?.,\\^$|#]/g,"\\$&");Bf="\\?\\.(?!\\d) "+Bf;Bf=Bf.replace(/ /g,"|");var ZZ=new RegExp(Bf),cy="continue,try,throw,return,var,let,const,if,switch,case,default,for,while,break,function,import,export".split(","),JZ=cy.concat(["do","in","of","else","get","set","new","catch","finally","typeof","yield","async","await","from","as","class","extends"]),zZ=new RegExp("^(?:"+JZ.join("|")+")$"),ph,$c=function(c,f){e3.call(this,c,f),this._patterns.whitespace=this._patterns.whitespace.matching(/\u00A0\u1680\u180e\u2000-\u200a\u202f\u205f\u3000\ufeff/.source,/\u2028\u2029/.source);var R=new FZ(this._input),h=new WZ(this._input).read_options(this._options);this.__patterns={template:h,identifier:h.starting_with(jc.identifier).matching(jc.identifierMatch),number:R.matching(vZ),punct:R.matching(ZZ),comment:R.starting_with(/\/\//).until(/[\n\r\u2028\u2029]/),block_comment:R.starting_with(/\/\*/).until_after(/\*\//),html_comment_start:R.matching(/<!--/),html_comment_end:R.matching(/-->/),include:R.starting_with(/#include/).until_after(jc.lineBreak),shebang:R.starting_with(/#!/).until_after(jc.lineBreak),xml:R.matching(/[\s\S]*?<(\/?)([-a-zA-Z:0-9_.]+|{[^}]+?}|!\[CDATA\[[^\]]*?\]\]|)(\s*{[^}]+?}|\s+[-a-zA-Z:0-9_.]+|\s+[-a-zA-Z:0-9_.]+\s*=\s*('[^']*'|"[^"]*"|{([^{}]|{[^}]+?})+?}))*\s*(\/?)\s*>/),single_quote:h.until(/['\\\n\r\u2028\u2029]/),double_quote:h.until(/["\\\n\r\u2028\u2029]/),template_text:h.until(/[`\\$]/),template_expression:h.until(/[`}\\]/)}};$c.prototype=new e3;$c.prototype._is_comment=function(c){return c.type===S.COMMENT||c.type===S.BLOCK_COMMENT||c.type===S.UNKNOWN};$c.prototype._is_opening=function(c){return c.type===S.START_BLOCK||c.type===S.START_EXPR};$c.prototype._is_closing=function(c,f){return(c.type===S.END_BLOCK||c.type===S.END_EXPR)&&(f&&(c.text==="]"&&f.text==="["||c.text===")"&&f.text==="("||c.text==="}"&&f.text==="{"))};$c.prototype._reset=function(){ph=!1};$c.prototype._get_next_token=function(c,f){var R=null;this._readWhitespace();var h=this._input.peek();if(h===null)return this._create_token(S.EOF,"");return R=R||this._read_non_javascript(h),R=R||this._read_string(h),R=R||this._read_pair(h,this._input.peek(1)),R=R||this._read_word(c),R=R||this._read_singles(h),R=R||this._read_comment(h),R=R||this._read_regexp(h,c),R=R||this._read_xml(h,c),R=R||this._read_punctuation(),R=R||this._create_token(S.UNKNOWN,this._input.next()),R};$c.prototype._read_word=function(c){var f=this.__patterns.identifier.read();if(f!==""){if(f=f.replace(jc.allLineBreaks,`
13
13
  `),!(c.type===S.DOT||c.type===S.RESERVED&&(c.text==="set"||c.text==="get"))&&zZ.test(f)){if((f==="in"||f==="of")&&(c.type===S.WORD||c.type===S.STRING))return this._create_token(S.OPERATOR,f);return this._create_token(S.RESERVED,f)}return this._create_token(S.WORD,f)}if(f=this.__patterns.number.read(),f!=="")return this._create_token(S.WORD,f)};$c.prototype._read_singles=function(c){var f=null;if(c==="("||c==="[")f=this._create_token(S.START_EXPR,c);else if(c===")"||c==="]")f=this._create_token(S.END_EXPR,c);else if(c==="{")f=this._create_token(S.START_BLOCK,c);else if(c==="}")f=this._create_token(S.END_BLOCK,c);else if(c===";")f=this._create_token(S.SEMICOLON,c);else if(c==="."&&YZ.test(this._input.peek(1)))f=this._create_token(S.DOT,c);else if(c===",")f=this._create_token(S.COMMA,c);if(f)this._input.next();return f};$c.prototype._read_pair=function(c,f){var R=null;if(c==="#"&&f==="{")R=this._create_token(S.START_BLOCK,c+f);if(R)this._input.next(),this._input.next();return R};$c.prototype._read_punctuation=function(){var c=this.__patterns.punct.read();if(c!=="")if(c==="=")return this._create_token(S.EQUALS,c);else if(c==="?.")return this._create_token(S.DOT,c);else return this._create_token(S.OPERATOR,c)};$c.prototype._read_non_javascript=function(c){var f="";if(c==="#"){if(this._is_first_token()){if(f=this.__patterns.shebang.read(),f)return this._create_token(S.UNKNOWN,f.trim()+`
14
14
  `)}if(f=this.__patterns.include.read(),f)return this._create_token(S.UNKNOWN,f.trim()+`
15
- `);c=this._input.next();var R="#";if(this._input.hasNext()&&this._input.testChar(UZ)){do c=this._input.next(),R+=c;while(this._input.hasNext()&&c!=="#"&&c!=="=");if(c==="#");else if(this._input.peek()==="["&&this._input.peek(1)==="]")R+="[]",this._input.next(),this._input.next();else if(this._input.peek()==="{"&&this._input.peek(1)==="}")R+="{}",this._input.next(),this._input.next();return this._create_token(S.WORD,R)}this._input.back()}else if(c==="<"&&this._is_first_token()){if(f=this.__patterns.html_comment_start.read(),f){while(this._input.hasNext()&&!this._input.testChar(wc.newline))f+=this._input.next();return ph=!0,this._create_token(S.COMMENT,f)}}else if(ph&&c==="-"){if(f=this.__patterns.html_comment_end.read(),f)return ph=!1,this._create_token(S.COMMENT,f)}return null};$c.prototype._read_comment=function(c){var f=null;if(c==="/"){var R="";if(this._input.peek(1)==="*"){R=this.__patterns.block_comment.read();var h=r3.get_directives(R);if(h&&h.ignore==="start")R+=r3.readIgnored(this._input);R=R.replace(wc.allLineBreaks,`
16
- `),f=this._create_token(S.BLOCK_COMMENT,R),f.directives=h}else if(this._input.peek(1)==="/")R=this.__patterns.comment.read(),f=this._create_token(S.COMMENT,R)}return f};$c.prototype._read_string=function(c){if(c==="`"||c==="'"||c==='"'){var f=this._input.next();if(this.has_char_escapes=!1,c==="`")f+=this._read_string_recursive("`",!0,"${");else f+=this._read_string_recursive(c);if(this.has_char_escapes&&this._options.unescape_strings)f=SZ(f);if(this._input.peek()===c)f+=this._input.next();return f=f.replace(wc.allLineBreaks,`
17
- `),this._create_token(S.STRING,f)}return null};$c.prototype._allow_regexp_or_xml=function(c){return c.type===S.RESERVED&&Z8(c.text,["return","case","throw","else","do","typeof","yield"])||c.type===S.END_EXPR&&c.text===")"&&c.opened.previous.type===S.RESERVED&&Z8(c.opened.previous.text,["if","while","for"])||Z8(c.type,[S.COMMENT,S.START_EXPR,S.START_BLOCK,S.START,S.END_BLOCK,S.OPERATOR,S.EQUALS,S.EOF,S.SEMICOLON,S.COMMA])};$c.prototype._read_regexp=function(c,f){if(c==="/"&&this._allow_regexp_or_xml(f)){var R=this._input.next(),h=!1,$=!1;while(this._input.hasNext()&&((h||$||this._input.peek()!==c)&&!this._input.testChar(wc.newline))){if(R+=this._input.peek(),!h){if(h=this._input.peek()==="\\",this._input.peek()==="[")$=!0;else if(this._input.peek()==="]")$=!1}else h=!1;this._input.next()}if(this._input.peek()===c)R+=this._input.next(),R+=this._input.read(wc.identifier);return this._create_token(S.STRING,R)}return null};$c.prototype._read_xml=function(c,f){if(this._options.e4x&&c==="<"&&this._allow_regexp_or_xml(f)){var R="",h=this.__patterns.xml.read_match();if(h){var $=h[2].replace(/^{\s+/,"{").replace(/\s+}$/,"}"),H=$.indexOf("{")===0,A=0;while(h){var G=!!h[1],y=h[2],F=!!h[h.length-1]||y.slice(0,8)==="![CDATA[";if(!F&&(y===$||H&&y.replace(/^{\s+/,"{").replace(/\s+}$/,"}")))if(G)--A;else++A;if(R+=h[0],A<=0)break;h=this.__patterns.xml.read_match()}if(!h)R+=this._input.match(/[\s\S]*/g)[0];return R=R.replace(wc.allLineBreaks,`
18
- `),this._create_token(S.STRING,R)}}return null};function SZ(c){var f="",R=0,h=new GZ(c),$=null;while(h.hasNext()){if($=h.match(/([\s]|[^\\]|\\\\)+/g),$)f+=$[0];if(h.peek()==="\\"){if(h.next(),h.peek()==="x")$=h.match(/x([0-9A-Fa-f]{2})/g);else if(h.peek()==="u"){if($=h.match(/u([0-9A-Fa-f]{4})/g),!$)$=h.match(/u\{([0-9A-Fa-f]+)\}/g)}else{if(f+="\\",h.hasNext())f+=h.next();continue}if(!$)return c;if(R=parseInt($[1],16),R>126&&R<=255&&$[0].indexOf("x")===0)return c;else if(R>=0&&R<32)f+="\\"+$[0];else if(R>1114111)f+="\\"+$[0];else if(R===34||R===39||R===92)f+="\\"+String.fromCharCode(R);else f+=String.fromCharCode(R)}}return f}$c.prototype._read_string_recursive=function(c,f,R){var h,$;if(c==="'")$=this.__patterns.single_quote;else if(c==='"')$=this.__patterns.double_quote;else if(c==="`")$=this.__patterns.template_text;else if(c==="}")$=this.__patterns.template_expression;var H=$.read(),A="";while(this._input.hasNext()){if(A=this._input.next(),A===c||!f&&wc.newline.test(A)){this._input.back();break}else if(A==="\\"&&this._input.hasNext()){if(h=this._input.peek(),h==="x"||h==="u")this.has_char_escapes=!0;else if(h==="\r"&&this._input.peek(1)===`
19
- `)this._input.next();A+=this._input.next()}else if(R){if(R==="${"&&A==="$"&&this._input.peek()==="{")A+=this._input.next();if(R===A){if(c==="`")A+=this._read_string_recursive("}",f,"`");else A+=this._read_string_recursive("`",f,"${");if(this._input.hasNext())A+=this._input.next()}}A+=$.read(),H+=A}return H};MZ.Tokenizer=$c;MZ.TOKEN=S;MZ.positionable_operators=NZ.slice();MZ.line_starters=cy.slice()});var $y=p((VZ,hy)=>{var jZ=Th().Output,wZ=h8().Token,sh=A8(),LZ=G8().Options,xZ=oR().Tokenizer,eR=oR().line_starters,aR=oR().positionable_operators,W=oR().TOKEN;function Q(c,f){return f.indexOf(c)!==-1}function IZ(c){return c.replace(/^\s+/g,"")}function PZ(c){var f={};for(var R=0;R<c.length;R++)f[c[R].replace(/-/g,"_")]=c[R];return f}function Lc(c,f){return c&&c.type===W.RESERVED&&c.text===f}function g(c,f){return c&&c.type===W.RESERVED&&Q(c.text,f)}var ih=["case","return","do","if","throw","else","await","break","continue","async"],KZ=["before-newline","after-newline","preserve-newline"],tR=PZ(KZ),fy=[tR.before_newline,tR.preserve_newline],M={BlockStatement:"BlockStatement",Statement:"Statement",ObjectLiteral:"ObjectLiteral",ArrayLiteral:"ArrayLiteral",ForInitializer:"ForInitializer",Conditional:"Conditional",Expression:"Expression"};function Ry(c,f){if(f.multiline_frame||f.mode===M.ForInitializer||f.mode===M.Conditional)return;c.remove_indent(f.start_line_index)}function OZ(c){c=c.replace(sh.allLineBreaks,`
15
+ `);c=this._input.next();var R="#";if(this._input.hasNext()&&this._input.testChar(UZ)){do c=this._input.next(),R+=c;while(this._input.hasNext()&&c!=="#"&&c!=="=");if(c==="#");else if(this._input.peek()==="["&&this._input.peek(1)==="]")R+="[]",this._input.next(),this._input.next();else if(this._input.peek()==="{"&&this._input.peek(1)==="}")R+="{}",this._input.next(),this._input.next();return this._create_token(S.WORD,R)}this._input.back()}else if(c==="<"&&this._is_first_token()){if(f=this.__patterns.html_comment_start.read(),f){while(this._input.hasNext()&&!this._input.testChar(jc.newline))f+=this._input.next();return ph=!0,this._create_token(S.COMMENT,f)}}else if(ph&&c==="-"){if(f=this.__patterns.html_comment_end.read(),f)return ph=!1,this._create_token(S.COMMENT,f)}return null};$c.prototype._read_comment=function(c){var f=null;if(c==="/"){var R="";if(this._input.peek(1)==="*"){R=this.__patterns.block_comment.read();var h=r3.get_directives(R);if(h&&h.ignore==="start")R+=r3.readIgnored(this._input);R=R.replace(jc.allLineBreaks,`
16
+ `),f=this._create_token(S.BLOCK_COMMENT,R),f.directives=h}else if(this._input.peek(1)==="/")R=this.__patterns.comment.read(),f=this._create_token(S.COMMENT,R)}return f};$c.prototype._read_string=function(c){if(c==="`"||c==="'"||c==='"'){var f=this._input.next();if(this.has_char_escapes=!1,c==="`")f+=this._read_string_recursive("`",!0,"${");else f+=this._read_string_recursive(c);if(this.has_char_escapes&&this._options.unescape_strings)f=SZ(f);if(this._input.peek()===c)f+=this._input.next();return f=f.replace(jc.allLineBreaks,`
17
+ `),this._create_token(S.STRING,f)}return null};$c.prototype._allow_regexp_or_xml=function(c){return c.type===S.RESERVED&&Z8(c.text,["return","case","throw","else","do","typeof","yield"])||c.type===S.END_EXPR&&c.text===")"&&c.opened.previous.type===S.RESERVED&&Z8(c.opened.previous.text,["if","while","for"])||Z8(c.type,[S.COMMENT,S.START_EXPR,S.START_BLOCK,S.START,S.END_BLOCK,S.OPERATOR,S.EQUALS,S.EOF,S.SEMICOLON,S.COMMA])};$c.prototype._read_regexp=function(c,f){if(c==="/"&&this._allow_regexp_or_xml(f)){var R=this._input.next(),h=!1,$=!1;while(this._input.hasNext()&&((h||$||this._input.peek()!==c)&&!this._input.testChar(jc.newline))){if(R+=this._input.peek(),!h){if(h=this._input.peek()==="\\",this._input.peek()==="[")$=!0;else if(this._input.peek()==="]")$=!1}else h=!1;this._input.next()}if(this._input.peek()===c)R+=this._input.next(),R+=this._input.read(jc.identifier);return this._create_token(S.STRING,R)}return null};$c.prototype._read_xml=function(c,f){if(this._options.e4x&&c==="<"&&this._allow_regexp_or_xml(f)){var R="",h=this.__patterns.xml.read_match();if(h){var $=h[2].replace(/^{\s+/,"{").replace(/\s+}$/,"}"),H=$.indexOf("{")===0,A=0;while(h){var G=!!h[1],y=h[2],F=!!h[h.length-1]||y.slice(0,8)==="![CDATA[";if(!F&&(y===$||H&&y.replace(/^{\s+/,"{").replace(/\s+}$/,"}")))if(G)--A;else++A;if(R+=h[0],A<=0)break;h=this.__patterns.xml.read_match()}if(!h)R+=this._input.match(/[\s\S]*/g)[0];return R=R.replace(jc.allLineBreaks,`
18
+ `),this._create_token(S.STRING,R)}}return null};function SZ(c){var f="",R=0,h=new GZ(c),$=null;while(h.hasNext()){if($=h.match(/([\s]|[^\\]|\\\\)+/g),$)f+=$[0];if(h.peek()==="\\"){if(h.next(),h.peek()==="x")$=h.match(/x([0-9A-Fa-f]{2})/g);else if(h.peek()==="u"){if($=h.match(/u([0-9A-Fa-f]{4})/g),!$)$=h.match(/u\{([0-9A-Fa-f]+)\}/g)}else{if(f+="\\",h.hasNext())f+=h.next();continue}if(!$)return c;if(R=parseInt($[1],16),R>126&&R<=255&&$[0].indexOf("x")===0)return c;else if(R>=0&&R<32)f+="\\"+$[0];else if(R>1114111)f+="\\"+$[0];else if(R===34||R===39||R===92)f+="\\"+String.fromCharCode(R);else f+=String.fromCharCode(R)}}return f}$c.prototype._read_string_recursive=function(c,f,R){var h,$;if(c==="'")$=this.__patterns.single_quote;else if(c==='"')$=this.__patterns.double_quote;else if(c==="`")$=this.__patterns.template_text;else if(c==="}")$=this.__patterns.template_expression;var H=$.read(),A="";while(this._input.hasNext()){if(A=this._input.next(),A===c||!f&&jc.newline.test(A)){this._input.back();break}else if(A==="\\"&&this._input.hasNext()){if(h=this._input.peek(),h==="x"||h==="u")this.has_char_escapes=!0;else if(h==="\r"&&this._input.peek(1)===`
19
+ `)this._input.next();A+=this._input.next()}else if(R){if(R==="${"&&A==="$"&&this._input.peek()==="{")A+=this._input.next();if(R===A){if(c==="`")A+=this._read_string_recursive("}",f,"`");else A+=this._read_string_recursive("`",f,"${");if(this._input.hasNext())A+=this._input.next()}}A+=$.read(),H+=A}return H};MZ.Tokenizer=$c;MZ.TOKEN=S;MZ.positionable_operators=NZ.slice();MZ.line_starters=cy.slice()});var $y=p((VZ,hy)=>{var wZ=Th().Output,jZ=h8().Token,sh=A8(),LZ=G8().Options,xZ=oR().Tokenizer,eR=oR().line_starters,aR=oR().positionable_operators,W=oR().TOKEN;function Q(c,f){return f.indexOf(c)!==-1}function IZ(c){return c.replace(/^\s+/g,"")}function PZ(c){var f={};for(var R=0;R<c.length;R++)f[c[R].replace(/-/g,"_")]=c[R];return f}function Lc(c,f){return c&&c.type===W.RESERVED&&c.text===f}function g(c,f){return c&&c.type===W.RESERVED&&Q(c.text,f)}var ih=["case","return","do","if","throw","else","await","break","continue","async"],KZ=["before-newline","after-newline","preserve-newline"],tR=PZ(KZ),fy=[tR.before_newline,tR.preserve_newline],M={BlockStatement:"BlockStatement",Statement:"Statement",ObjectLiteral:"ObjectLiteral",ArrayLiteral:"ArrayLiteral",ForInitializer:"ForInitializer",Conditional:"Conditional",Expression:"Expression"};function Ry(c,f){if(f.multiline_frame||f.mode===M.ForInitializer||f.mode===M.Conditional)return;c.remove_indent(f.start_line_index)}function OZ(c){c=c.replace(sh.allLineBreaks,`
20
20
  `);var f=[],R=c.indexOf(`
21
21
  `);while(R!==-1)f.push(c.substring(0,R)),c=c.substring(R+1),R=c.indexOf(`
22
- `);if(c.length)f.push(c);return f}function Af(c){return c===M.ArrayLiteral}function rR(c){return Q(c,[M.Expression,M.ForInitializer,M.Conditional])}function bZ(c,f){for(var R=0;R<c.length;R++){var h=c[R].trim();if(h.charAt(0)!==f)return!1}return!0}function qZ(c,f){var R=0,h=c.length,$;for(;R<h;R++)if($=c[R],$&&$.indexOf(f)!==0)return!1;return!0}function O(c,f){f=f||{},this._source_text=c||"",this._output=null,this._tokens=null,this._last_last_text=null,this._flags=null,this._previous_flags=null,this._flag_store=null,this._options=new LZ(f)}O.prototype.create_flags=function(c,f){var R=0;if(c){if(R=c.indentation_level,!this._output.just_added_newline()&&c.line_indent_level>R)R=c.line_indent_level}var h={mode:f,parent:c,last_token:c?c.last_token:new wZ(W.START_BLOCK,""),last_word:c?c.last_word:"",declaration_statement:!1,declaration_assignment:!1,multiline_frame:!1,inline_frame:!1,if_block:!1,else_block:!1,class_start_block:!1,do_block:!1,do_while:!1,import_block:!1,in_case_statement:!1,in_case:!1,case_body:!1,case_block:!1,indentation_level:R,alignment:0,line_indent_level:c?c.line_indent_level:R,start_line_index:this._output.get_line_number(),ternary_depth:0};return h};O.prototype._reset=function(c){var f=c.match(/^[\t ]*/)[0];this._last_last_text="",this._output=new jZ(this._options,f),this._output.raw=this._options.test_output_raw,this._flag_store=[],this.set_mode(M.BlockStatement);var R=new xZ(c,this._options);return this._tokens=R.tokenize(),c};O.prototype.beautify=function(){if(this._options.disabled)return this._source_text;var c,f=this._reset(this._source_text),R=this._options.eol;if(this._options.eol==="auto"){if(R=`
22
+ `);if(c.length)f.push(c);return f}function Af(c){return c===M.ArrayLiteral}function rR(c){return Q(c,[M.Expression,M.ForInitializer,M.Conditional])}function bZ(c,f){for(var R=0;R<c.length;R++){var h=c[R].trim();if(h.charAt(0)!==f)return!1}return!0}function qZ(c,f){var R=0,h=c.length,$;for(;R<h;R++)if($=c[R],$&&$.indexOf(f)!==0)return!1;return!0}function O(c,f){f=f||{},this._source_text=c||"",this._output=null,this._tokens=null,this._last_last_text=null,this._flags=null,this._previous_flags=null,this._flag_store=null,this._options=new LZ(f)}O.prototype.create_flags=function(c,f){var R=0;if(c){if(R=c.indentation_level,!this._output.just_added_newline()&&c.line_indent_level>R)R=c.line_indent_level}var h={mode:f,parent:c,last_token:c?c.last_token:new jZ(W.START_BLOCK,""),last_word:c?c.last_word:"",declaration_statement:!1,declaration_assignment:!1,multiline_frame:!1,inline_frame:!1,if_block:!1,else_block:!1,class_start_block:!1,do_block:!1,do_while:!1,import_block:!1,in_case_statement:!1,in_case:!1,case_body:!1,case_block:!1,indentation_level:R,alignment:0,line_indent_level:c?c.line_indent_level:R,start_line_index:this._output.get_line_number(),ternary_depth:0};return h};O.prototype._reset=function(c){var f=c.match(/^[\t ]*/)[0];this._last_last_text="",this._output=new wZ(this._options,f),this._output.raw=this._options.test_output_raw,this._flag_store=[],this.set_mode(M.BlockStatement);var R=new xZ(c,this._options);return this._tokens=R.tokenize(),c};O.prototype.beautify=function(){if(this._options.disabled)return this._source_text;var c,f=this._reset(this._source_text),R=this._options.eol;if(this._options.eol==="auto"){if(R=`
23
23
  `,f&&sh.lineBreak.test(f||""))R=f.match(sh.lineBreak)[0]}var h=this._tokens.next();while(h)this.handle_token(h),this._last_last_text=this._flags.last_token.text,this._flags.last_token=h,h=this._tokens.next();return c=this._output.get_code(R),c};O.prototype.handle_token=function(c,f){if(c.type===W.START_EXPR)this.handle_start_expr(c);else if(c.type===W.END_EXPR)this.handle_end_expr(c);else if(c.type===W.START_BLOCK)this.handle_start_block(c);else if(c.type===W.END_BLOCK)this.handle_end_block(c);else if(c.type===W.WORD)this.handle_word(c);else if(c.type===W.RESERVED)this.handle_word(c);else if(c.type===W.SEMICOLON)this.handle_semicolon(c);else if(c.type===W.STRING)this.handle_string(c);else if(c.type===W.EQUALS)this.handle_equals(c);else if(c.type===W.OPERATOR)this.handle_operator(c);else if(c.type===W.COMMA)this.handle_comma(c);else if(c.type===W.BLOCK_COMMENT)this.handle_block_comment(c,f);else if(c.type===W.COMMENT)this.handle_comment(c,f);else if(c.type===W.DOT)this.handle_dot(c);else if(c.type===W.EOF)this.handle_eof(c);else if(c.type===W.UNKNOWN)this.handle_unknown(c,f);else this.handle_unknown(c,f)};O.prototype.handle_whitespace_and_comments=function(c,f){var R=c.newlines,h=this._options.keep_array_indentation&&Af(this._flags.mode);if(c.comments_before){var $=c.comments_before.next();while($)this.handle_whitespace_and_comments($,f),this.handle_token($,f),$=c.comments_before.next()}if(h)for(var H=0;H<R;H+=1)this.print_newline(H>0,f);else{if(this._options.max_preserve_newlines&&R>this._options.max_preserve_newlines)R=this._options.max_preserve_newlines;if(this._options.preserve_newlines){if(R>1){this.print_newline(!1,f);for(var A=1;A<R;A+=1)this.print_newline(!0,f)}}}};var J8=["async","break","continue","return","throw","yield"];O.prototype.allow_wrap_or_preserved_newline=function(c,f){if(f=f===void 0?!1:f,this._output.just_added_newline())return;var R=this._options.preserve_newlines&&c.newlines||f,h=Q(this._flags.last_token.text,aR)||Q(c.text,aR);if(h){var $=Q(this._flags.last_token.text,aR)&&Q(this._options.operator_position,fy)||Q(c.text,aR);R=R&&$}if(R)this.print_newline(!1,!0);else if(this._options.wrap_line_length){if(g(this._flags.last_token,J8))return;this._output.set_wrap_point()}};O.prototype.print_newline=function(c,f){if(!f){if(this._flags.last_token.text!==";"&&this._flags.last_token.text!==","&&this._flags.last_token.text!=="="&&(this._flags.last_token.type!==W.OPERATOR||this._flags.last_token.text==="--"||this._flags.last_token.text==="++")){var R=this._tokens.peek();while(this._flags.mode===M.Statement&&!(this._flags.if_block&&Lc(R,"else"))&&!this._flags.do_block)this.restore_mode()}}if(this._output.add_new_line(c))this._flags.multiline_frame=!0};O.prototype.print_token_line_indentation=function(c){if(this._output.just_added_newline()){if(this._options.keep_array_indentation&&c.newlines&&(c.text==="["||Af(this._flags.mode)))this._output.current_line.set_indent(-1),this._output.current_line.push(c.whitespace_before),this._output.space_before_token=!1;else if(this._output.set_indent(this._flags.indentation_level,this._flags.alignment))this._flags.line_indent_level=this._flags.indentation_level}};O.prototype.print_token=function(c){if(this._output.raw){this._output.add_raw_token(c);return}if(this._options.comma_first&&c.previous&&c.previous.type===W.COMMA&&this._output.just_added_newline()){if(this._output.previous_line.last()===","){var f=this._output.previous_line.pop();if(this._output.previous_line.is_empty())this._output.previous_line.push(f),this._output.trim(!0),this._output.current_line.pop(),this._output.trim();this.print_token_line_indentation(c),this._output.add_token(","),this._output.space_before_token=!0}}if(this.print_token_line_indentation(c),this._output.non_breaking_space=!0,this._output.add_token(c.text),this._output.previous_token_wrapped)this._flags.multiline_frame=!0};O.prototype.indent=function(){this._flags.indentation_level+=1,this._output.set_indent(this._flags.indentation_level,this._flags.alignment)};O.prototype.deindent=function(){if(this._flags.indentation_level>0&&(!this._flags.parent||this._flags.indentation_level>this._flags.parent.indentation_level))this._flags.indentation_level-=1,this._output.set_indent(this._flags.indentation_level,this._flags.alignment)};O.prototype.set_mode=function(c){if(this._flags)this._flag_store.push(this._flags),this._previous_flags=this._flags;else this._previous_flags=this.create_flags(null,c);this._flags=this.create_flags(this._previous_flags,c),this._output.set_indent(this._flags.indentation_level,this._flags.alignment)};O.prototype.restore_mode=function(){if(this._flag_store.length>0){if(this._previous_flags=this._flags,this._flags=this._flag_store.pop(),this._previous_flags.mode===M.Statement)Ry(this._output,this._previous_flags);this._output.set_indent(this._flags.indentation_level,this._flags.alignment)}};O.prototype.start_of_object_property=function(){return this._flags.parent.mode===M.ObjectLiteral&&this._flags.mode===M.Statement&&(this._flags.last_token.text===":"&&this._flags.ternary_depth===0||g(this._flags.last_token,["get","set"]))};O.prototype.start_of_statement=function(c){var f=!1;if(f=f||g(this._flags.last_token,["var","let","const"])&&c.type===W.WORD,f=f||Lc(this._flags.last_token,"do"),f=f||!(this._flags.parent.mode===M.ObjectLiteral&&this._flags.mode===M.Statement)&&g(this._flags.last_token,J8)&&!c.newlines,f=f||Lc(this._flags.last_token,"else")&&!(Lc(c,"if")&&!c.comments_before),f=f||this._flags.last_token.type===W.END_EXPR&&(this._previous_flags.mode===M.ForInitializer||this._previous_flags.mode===M.Conditional),f=f||this._flags.last_token.type===W.WORD&&this._flags.mode===M.BlockStatement&&!this._flags.in_case&&!(c.text==="--"||c.text==="++")&&this._last_last_text!=="function"&&c.type!==W.WORD&&c.type!==W.RESERVED,f=f||this._flags.mode===M.ObjectLiteral&&(this._flags.last_token.text===":"&&this._flags.ternary_depth===0||g(this._flags.last_token,["get","set"])),f){if(this.set_mode(M.Statement),this.indent(),this.handle_whitespace_and_comments(c,!0),!this.start_of_object_property())this.allow_wrap_or_preserved_newline(c,g(c,["do","for","if","while"]));return!0}return!1};O.prototype.handle_start_expr=function(c){if(!this.start_of_statement(c))this.handle_whitespace_and_comments(c);var f=M.Expression;if(c.text==="["){if(this._flags.last_token.type===W.WORD||this._flags.last_token.text===")"){if(g(this._flags.last_token,eR))this._output.space_before_token=!0;if(this.print_token(c),this.set_mode(f),this.indent(),this._options.space_in_paren)this._output.space_before_token=!0;return}if(f=M.ArrayLiteral,Af(this._flags.mode)){if(this._flags.last_token.text==="["||this._flags.last_token.text===","&&(this._last_last_text==="]"||this._last_last_text==="}")){if(!this._options.keep_array_indentation)this.print_newline()}}if(!Q(this._flags.last_token.type,[W.START_EXPR,W.END_EXPR,W.WORD,W.OPERATOR,W.DOT]))this._output.space_before_token=!0}else{if(this._flags.last_token.type===W.RESERVED){if(this._flags.last_token.text==="for")this._output.space_before_token=this._options.space_before_conditional,f=M.ForInitializer;else if(Q(this._flags.last_token.text,["if","while","switch"]))this._output.space_before_token=this._options.space_before_conditional,f=M.Conditional;else if(Q(this._flags.last_word,["await","async"]))this._output.space_before_token=!0;else if(this._flags.last_token.text==="import"&&c.whitespace_before==="")this._output.space_before_token=!1;else if(Q(this._flags.last_token.text,eR)||this._flags.last_token.text==="catch")this._output.space_before_token=!0}else if(this._flags.last_token.type===W.EQUALS||this._flags.last_token.type===W.OPERATOR){if(!this.start_of_object_property())this.allow_wrap_or_preserved_newline(c)}else if(this._flags.last_token.type===W.WORD){this._output.space_before_token=!1;var R=this._tokens.peek(-3);if(this._options.space_after_named_function&&R){var h=this._tokens.peek(-4);if(g(R,["async","function"])||R.text==="*"&&g(h,["async","function"]))this._output.space_before_token=!0;else if(this._flags.mode===M.ObjectLiteral){if(R.text==="{"||R.text===","||R.text==="*"&&(h.text==="{"||h.text===","))this._output.space_before_token=!0}else if(this._flags.parent&&this._flags.parent.class_start_block)this._output.space_before_token=!0}}else this.allow_wrap_or_preserved_newline(c);if(this._flags.last_token.type===W.RESERVED&&(this._flags.last_word==="function"||this._flags.last_word==="typeof")||this._flags.last_token.text==="*"&&(Q(this._last_last_text,["function","yield"])||this._flags.mode===M.ObjectLiteral&&Q(this._last_last_text,["{",","])))this._output.space_before_token=this._options.space_after_anon_function}if(this._flags.last_token.text===";"||this._flags.last_token.type===W.START_BLOCK)this.print_newline();else if(this._flags.last_token.type===W.END_EXPR||this._flags.last_token.type===W.START_EXPR||this._flags.last_token.type===W.END_BLOCK||this._flags.last_token.text==="."||this._flags.last_token.type===W.COMMA)this.allow_wrap_or_preserved_newline(c,c.newlines);if(this.print_token(c),this.set_mode(f),this._options.space_in_paren)this._output.space_before_token=!0;this.indent()};O.prototype.handle_end_expr=function(c){while(this._flags.mode===M.Statement)this.restore_mode();if(this.handle_whitespace_and_comments(c),this._flags.multiline_frame)this.allow_wrap_or_preserved_newline(c,c.text==="]"&&Af(this._flags.mode)&&!this._options.keep_array_indentation);if(this._options.space_in_paren)if(this._flags.last_token.type===W.START_EXPR&&!this._options.space_in_empty_paren)this._output.trim(),this._output.space_before_token=!1;else this._output.space_before_token=!0;if(this.deindent(),this.print_token(c),this.restore_mode(),Ry(this._output,this._previous_flags),this._flags.do_while&&this._previous_flags.mode===M.Conditional)this._previous_flags.mode=M.Expression,this._flags.do_block=!1,this._flags.do_while=!1};O.prototype.handle_start_block=function(c){this.handle_whitespace_and_comments(c);var f=this._tokens.peek(),R=this._tokens.peek(1);if(this._flags.last_word==="switch"&&this._flags.last_token.type===W.END_EXPR)this.set_mode(M.BlockStatement),this._flags.in_case_statement=!0;else if(this._flags.case_body)this.set_mode(M.BlockStatement);else if(R&&(Q(R.text,[":",","])&&Q(f.type,[W.STRING,W.WORD,W.RESERVED])||Q(f.text,["get","set","..."])&&Q(R.type,[W.WORD,W.RESERVED])))if(Q(this._last_last_text,["class","interface"])&&!Q(R.text,[":",","]))this.set_mode(M.BlockStatement);else this.set_mode(M.ObjectLiteral);else if(this._flags.last_token.type===W.OPERATOR&&this._flags.last_token.text==="=>")this.set_mode(M.BlockStatement);else if(Q(this._flags.last_token.type,[W.EQUALS,W.START_EXPR,W.COMMA,W.OPERATOR])||g(this._flags.last_token,["return","throw","import","default"]))this.set_mode(M.ObjectLiteral);else this.set_mode(M.BlockStatement);if(this._flags.last_token){if(g(this._flags.last_token.previous,["class","extends"]))this._flags.class_start_block=!0}var h=!f.comments_before&&f.text==="}",$=h&&this._flags.last_word==="function"&&this._flags.last_token.type===W.END_EXPR;if(this._options.brace_preserve_inline){var H=0,A=null;this._flags.inline_frame=!0;do if(H+=1,A=this._tokens.peek(H-1),A.newlines){this._flags.inline_frame=!1;break}while(A.type!==W.EOF&&!(A.type===W.END_BLOCK&&A.opened===c))}if((this._options.brace_style==="expand"||this._options.brace_style==="none"&&c.newlines)&&!this._flags.inline_frame)if(this._flags.last_token.type!==W.OPERATOR&&($||this._flags.last_token.type===W.EQUALS||g(this._flags.last_token,ih)&&this._flags.last_token.text!=="else"))this._output.space_before_token=!0;else this.print_newline(!1,!0);else{if(Af(this._previous_flags.mode)&&(this._flags.last_token.type===W.START_EXPR||this._flags.last_token.type===W.COMMA)){if(this._flags.last_token.type===W.COMMA||this._options.space_in_paren)this._output.space_before_token=!0;if(this._flags.last_token.type===W.COMMA||this._flags.last_token.type===W.START_EXPR&&this._flags.inline_frame)this.allow_wrap_or_preserved_newline(c),this._previous_flags.multiline_frame=this._previous_flags.multiline_frame||this._flags.multiline_frame,this._flags.multiline_frame=!1}if(this._flags.last_token.type!==W.OPERATOR&&this._flags.last_token.type!==W.START_EXPR)if(Q(this._flags.last_token.type,[W.START_BLOCK,W.SEMICOLON])&&!this._flags.inline_frame)this.print_newline();else this._output.space_before_token=!0}if(this.print_token(c),this.indent(),!h&&!(this._options.brace_preserve_inline&&this._flags.inline_frame))this.print_newline()};O.prototype.handle_end_block=function(c){this.handle_whitespace_and_comments(c);while(this._flags.mode===M.Statement)this.restore_mode();var f=this._flags.last_token.type===W.START_BLOCK;if(this._flags.inline_frame&&!f)this._output.space_before_token=!0;else if(this._options.brace_style==="expand"){if(!f)this.print_newline()}else if(!f)if(Af(this._flags.mode)&&this._options.keep_array_indentation)this._options.keep_array_indentation=!1,this.print_newline(),this._options.keep_array_indentation=!0;else this.print_newline();this.restore_mode(),this.print_token(c)};O.prototype.handle_word=function(c){if(c.type===W.RESERVED){if(Q(c.text,["set","get"])&&this._flags.mode!==M.ObjectLiteral)c.type=W.WORD;else if(c.text==="import"&&Q(this._tokens.peek().text,["(","."]))c.type=W.WORD;else if(Q(c.text,["as","from"])&&!this._flags.import_block)c.type=W.WORD;else if(this._flags.mode===M.ObjectLiteral){var f=this._tokens.peek();if(f.text===":")c.type=W.WORD}}if(this.start_of_statement(c)){if(g(this._flags.last_token,["var","let","const"])&&c.type===W.WORD)this._flags.declaration_statement=!0}else if(c.newlines&&!rR(this._flags.mode)&&(this._flags.last_token.type!==W.OPERATOR||(this._flags.last_token.text==="--"||this._flags.last_token.text==="++"))&&this._flags.last_token.type!==W.EQUALS&&(this._options.preserve_newlines||!g(this._flags.last_token,["var","let","const","set","get"])))this.handle_whitespace_and_comments(c),this.print_newline();else this.handle_whitespace_and_comments(c);if(this._flags.do_block&&!this._flags.do_while)if(Lc(c,"while")){this._output.space_before_token=!0,this.print_token(c),this._output.space_before_token=!0,this._flags.do_while=!0;return}else this.print_newline(),this._flags.do_block=!1;if(this._flags.if_block)if(!this._flags.else_block&&Lc(c,"else"))this._flags.else_block=!0;else{while(this._flags.mode===M.Statement)this.restore_mode();this._flags.if_block=!1,this._flags.else_block=!1}if(this._flags.in_case_statement&&g(c,["case","default"])){if(this.print_newline(),!this._flags.case_block&&(this._flags.case_body||this._options.jslint_happy))this.deindent();this._flags.case_body=!1,this.print_token(c),this._flags.in_case=!0;return}if(this._flags.last_token.type===W.COMMA||this._flags.last_token.type===W.START_EXPR||this._flags.last_token.type===W.EQUALS||this._flags.last_token.type===W.OPERATOR){if(!this.start_of_object_property()&&!(Q(this._flags.last_token.text,["+","-"])&&this._last_last_text===":"&&this._flags.parent.mode===M.ObjectLiteral))this.allow_wrap_or_preserved_newline(c)}if(Lc(c,"function")){if(Q(this._flags.last_token.text,["}",";"])||this._output.just_added_newline()&&!(Q(this._flags.last_token.text,["(","[","{",":","=",","])||this._flags.last_token.type===W.OPERATOR)){if(!this._output.just_added_blankline()&&!c.comments_before)this.print_newline(),this.print_newline(!0)}if(this._flags.last_token.type===W.RESERVED||this._flags.last_token.type===W.WORD)if(g(this._flags.last_token,["get","set","new","export"])||g(this._flags.last_token,J8))this._output.space_before_token=!0;else if(Lc(this._flags.last_token,"default")&&this._last_last_text==="export")this._output.space_before_token=!0;else if(this._flags.last_token.text==="declare")this._output.space_before_token=!0;else this.print_newline();else if(this._flags.last_token.type===W.OPERATOR||this._flags.last_token.text==="=")this._output.space_before_token=!0;else if(!this._flags.multiline_frame&&(rR(this._flags.mode)||Af(this._flags.mode)));else this.print_newline();this.print_token(c),this._flags.last_word=c.text;return}var R="NONE";if(this._flags.last_token.type===W.END_BLOCK)if(this._previous_flags.inline_frame)R="SPACE";else if(!g(c,["else","catch","finally","from"]))R="NEWLINE";else if(this._options.brace_style==="expand"||this._options.brace_style==="end-expand"||this._options.brace_style==="none"&&c.newlines)R="NEWLINE";else R="SPACE",this._output.space_before_token=!0;else if(this._flags.last_token.type===W.SEMICOLON&&this._flags.mode===M.BlockStatement)R="NEWLINE";else if(this._flags.last_token.type===W.SEMICOLON&&rR(this._flags.mode))R="SPACE";else if(this._flags.last_token.type===W.STRING)R="NEWLINE";else if(this._flags.last_token.type===W.RESERVED||this._flags.last_token.type===W.WORD||this._flags.last_token.text==="*"&&(Q(this._last_last_text,["function","yield"])||this._flags.mode===M.ObjectLiteral&&Q(this._last_last_text,["{",","])))R="SPACE";else if(this._flags.last_token.type===W.START_BLOCK)if(this._flags.inline_frame)R="SPACE";else R="NEWLINE";else if(this._flags.last_token.type===W.END_EXPR)this._output.space_before_token=!0,R="NEWLINE";if(g(c,eR)&&this._flags.last_token.text!==")")if(this._flags.inline_frame||this._flags.last_token.text==="else"||this._flags.last_token.text==="export")R="SPACE";else R="NEWLINE";if(g(c,["else","catch","finally"]))if((!(this._flags.last_token.type===W.END_BLOCK&&this._previous_flags.mode===M.BlockStatement)||this._options.brace_style==="expand"||this._options.brace_style==="end-expand"||this._options.brace_style==="none"&&c.newlines)&&!this._flags.inline_frame)this.print_newline();else{this._output.trim(!0);var h=this._output.current_line;if(h.last()!=="}")this.print_newline();this._output.space_before_token=!0}else if(R==="NEWLINE"){if(g(this._flags.last_token,ih))this._output.space_before_token=!0;else if(this._flags.last_token.text==="declare"&&g(c,["var","let","const"]))this._output.space_before_token=!0;else if(this._flags.last_token.type!==W.END_EXPR){if((this._flags.last_token.type!==W.START_EXPR||!g(c,["var","let","const"]))&&this._flags.last_token.text!==":")if(Lc(c,"if")&&Lc(c.previous,"else"))this._output.space_before_token=!0;else this.print_newline()}else if(g(c,eR)&&this._flags.last_token.text!==")")this.print_newline()}else if(this._flags.multiline_frame&&Af(this._flags.mode)&&this._flags.last_token.text===","&&this._last_last_text==="}")this.print_newline();else if(R==="SPACE")this._output.space_before_token=!0;if(c.previous&&(c.previous.type===W.WORD||c.previous.type===W.RESERVED))this._output.space_before_token=!0;if(this.print_token(c),this._flags.last_word=c.text,c.type===W.RESERVED){if(c.text==="do")this._flags.do_block=!0;else if(c.text==="if")this._flags.if_block=!0;else if(c.text==="import")this._flags.import_block=!0;else if(this._flags.import_block&&Lc(c,"from"))this._flags.import_block=!1}};O.prototype.handle_semicolon=function(c){if(this.start_of_statement(c))this._output.space_before_token=!1;else this.handle_whitespace_and_comments(c);var f=this._tokens.peek();while(this._flags.mode===M.Statement&&!(this._flags.if_block&&Lc(f,"else"))&&!this._flags.do_block)this.restore_mode();if(this._flags.import_block)this._flags.import_block=!1;this.print_token(c)};O.prototype.handle_string=function(c){if(c.text.startsWith("`")&&c.newlines===0&&c.whitespace_before===""&&(c.previous.text===")"||this._flags.last_token.type===W.WORD));else if(this.start_of_statement(c))this._output.space_before_token=!0;else if(this.handle_whitespace_and_comments(c),this._flags.last_token.type===W.RESERVED||this._flags.last_token.type===W.WORD||this._flags.inline_frame)this._output.space_before_token=!0;else if(this._flags.last_token.type===W.COMMA||this._flags.last_token.type===W.START_EXPR||this._flags.last_token.type===W.EQUALS||this._flags.last_token.type===W.OPERATOR){if(!this.start_of_object_property())this.allow_wrap_or_preserved_newline(c)}else if(c.text.startsWith("`")&&this._flags.last_token.type===W.END_EXPR&&(c.previous.text==="]"||c.previous.text===")")&&c.newlines===0)this._output.space_before_token=!0;else this.print_newline();this.print_token(c)};O.prototype.handle_equals=function(c){if(this.start_of_statement(c));else this.handle_whitespace_and_comments(c);if(this._flags.declaration_statement)this._flags.declaration_assignment=!0;this._output.space_before_token=!0,this.print_token(c),this._output.space_before_token=!0};O.prototype.handle_comma=function(c){if(this.handle_whitespace_and_comments(c,!0),this.print_token(c),this._output.space_before_token=!0,this._flags.declaration_statement){if(rR(this._flags.parent.mode))this._flags.declaration_assignment=!1;if(this._flags.declaration_assignment)this._flags.declaration_assignment=!1,this.print_newline(!1,!0);else if(this._options.comma_first)this.allow_wrap_or_preserved_newline(c)}else if(this._flags.mode===M.ObjectLiteral||this._flags.mode===M.Statement&&this._flags.parent.mode===M.ObjectLiteral){if(this._flags.mode===M.Statement)this.restore_mode();if(!this._flags.inline_frame)this.print_newline()}else if(this._options.comma_first)this.allow_wrap_or_preserved_newline(c)};O.prototype.handle_operator=function(c){var f=c.text==="*"&&(g(this._flags.last_token,["function","yield"])||Q(this._flags.last_token.type,[W.START_BLOCK,W.COMMA,W.END_BLOCK,W.SEMICOLON])),R=Q(c.text,["-","+"])&&(Q(this._flags.last_token.type,[W.START_BLOCK,W.START_EXPR,W.EQUALS,W.OPERATOR])||Q(this._flags.last_token.text,eR)||this._flags.last_token.text===",");if(this.start_of_statement(c));else{var h=!f;this.handle_whitespace_and_comments(c,h)}if(c.text==="*"&&this._flags.last_token.type===W.DOT){this.print_token(c);return}if(c.text==="::"){this.print_token(c);return}if(Q(c.text,["-","+"])&&this.start_of_object_property()){this.print_token(c);return}if(this._flags.last_token.type===W.OPERATOR&&Q(this._options.operator_position,fy))this.allow_wrap_or_preserved_newline(c);if(c.text===":"&&this._flags.in_case){if(this.print_token(c),this._flags.in_case=!1,this._flags.case_body=!0,this._tokens.peek().type!==W.START_BLOCK)this.indent(),this.print_newline(),this._flags.case_block=!1;else this._flags.case_block=!0,this._output.space_before_token=!0;return}var $=!0,H=!0,A=!1;if(c.text===":")if(this._flags.ternary_depth===0)$=!1;else this._flags.ternary_depth-=1,A=!0;else if(c.text==="?")this._flags.ternary_depth+=1;if(!R&&!f&&this._options.preserve_newlines&&Q(c.text,aR)){var G=c.text===":",y=G&&A,F=G&&!A;switch(this._options.operator_position){case tR.before_newline:if(this._output.space_before_token=!F,this.print_token(c),!G||y)this.allow_wrap_or_preserved_newline(c);this._output.space_before_token=!0;return;case tR.after_newline:if(this._output.space_before_token=!0,!G||y)if(this._tokens.peek().newlines)this.print_newline(!1,!0);else this.allow_wrap_or_preserved_newline(c);else this._output.space_before_token=!1;this.print_token(c),this._output.space_before_token=!0;return;case tR.preserve_newline:if(!F)this.allow_wrap_or_preserved_newline(c);$=!(this._output.just_added_newline()||F),this._output.space_before_token=$,this.print_token(c),this._output.space_before_token=!0;return}}if(f){this.allow_wrap_or_preserved_newline(c),$=!1;var U=this._tokens.peek();H=U&&Q(U.type,[W.WORD,W.RESERVED])}else if(c.text==="...")this.allow_wrap_or_preserved_newline(c),$=this._flags.last_token.type===W.START_BLOCK,H=!1;else if(Q(c.text,["--","++","!","~"])||R){if(this._flags.last_token.type===W.COMMA||this._flags.last_token.type===W.START_EXPR)this.allow_wrap_or_preserved_newline(c);if($=!1,H=!1,c.newlines&&(c.text==="--"||c.text==="++"||c.text==="~")){var N=g(this._flags.last_token,ih)&&c.newlines;if(N&&(this._previous_flags.if_block||this._previous_flags.else_block))this.restore_mode();this.print_newline(N,!0)}if(this._flags.last_token.text===";"&&rR(this._flags.mode))$=!0;if(this._flags.last_token.type===W.RESERVED)$=!0;else if(this._flags.last_token.type===W.END_EXPR)$=!(this._flags.last_token.text==="]"&&(c.text==="--"||c.text==="++"));else if(this._flags.last_token.type===W.OPERATOR){if($=Q(c.text,["--","-","++","+"])&&Q(this._flags.last_token.text,["--","-","++","+"]),Q(c.text,["+","-"])&&Q(this._flags.last_token.text,["--","++"]))H=!0}if((this._flags.mode===M.BlockStatement&&!this._flags.inline_frame||this._flags.mode===M.Statement)&&(this._flags.last_token.text==="{"||this._flags.last_token.text===";"))this.print_newline()}this._output.space_before_token=this._output.space_before_token||$,this.print_token(c),this._output.space_before_token=H};O.prototype.handle_block_comment=function(c,f){if(this._output.raw){if(this._output.add_raw_token(c),c.directives&&c.directives.preserve==="end")this._output.raw=this._options.test_output_raw;return}if(c.directives){if(this.print_newline(!1,f),this.print_token(c),c.directives.preserve==="start")this._output.raw=!0;this.print_newline(!1,!0);return}if(!sh.newline.test(c.text)&&!c.newlines){this._output.space_before_token=!0,this.print_token(c),this._output.space_before_token=!0;return}else this.print_block_commment(c,f)};O.prototype.print_block_commment=function(c,f){var R=OZ(c.text),h,$=!1,H=!1,A=c.whitespace_before,G=A.length;if(this.print_newline(!1,f),this.print_token_line_indentation(c),this._output.add_token(R[0]),this.print_newline(!1,f),R.length>1){if(R=R.slice(1),$=bZ(R,"*"),H=qZ(R,A),$)this._flags.alignment=1;for(h=0;h<R.length;h++){if($)this.print_token_line_indentation(c),this._output.add_token(IZ(R[h]));else if(H&&R[h])this.print_token_line_indentation(c),this._output.add_token(R[h].substring(G));else this._output.current_line.set_indent(-1),this._output.add_token(R[h]);this.print_newline(!1,f)}this._flags.alignment=0}};O.prototype.handle_comment=function(c,f){if(c.newlines)this.print_newline(!1,f);else this._output.trim(!0);this._output.space_before_token=!0,this.print_token(c),this.print_newline(!1,f)};O.prototype.handle_dot=function(c){if(this.start_of_statement(c));else this.handle_whitespace_and_comments(c,!0);if(this._flags.last_token.text.match("^[0-9]+$"))this._output.space_before_token=!0;if(g(this._flags.last_token,ih))this._output.space_before_token=!1;else this.allow_wrap_or_preserved_newline(c,this._flags.last_token.text===")"&&this._options.break_chained_methods);if(this._options.unindent_chained_methods&&this._output.just_added_newline())this.deindent();this.print_token(c)};O.prototype.handle_unknown=function(c,f){if(this.print_token(c),c.text[c.text.length-1]===`
24
24
  `)this.print_newline(!1,f)};O.prototype.handle_eof=function(c){while(this._flags.mode===M.Statement)this.restore_mode();this.handle_whitespace_and_comments(c)};VZ.Beautifier=O});var Hy=p((LB,z8)=>{var TZ=$y().Beautifier,uZ=G8().Options;function gZ(c,f){var R=new TZ(c,f);return R.beautify()}z8.exports=gZ;z8.exports.defaultOptions=function(){return new uZ}});var S8=p((CZ,yy)=>{var Ay=gh().Options;function Gy(c){Ay.call(this,c,"css"),this.selector_separator_newline=this._get_boolean("selector_separator_newline",!0),this.newline_between_rules=this._get_boolean("newline_between_rules",!0);var f=this._get_boolean("space_around_selector_separator");this.space_around_combinator=this._get_boolean("space_around_combinator")||f;var R=this._get_selection_list("brace_style",["collapse","expand","end-expand","none","preserve-inline"]);this.brace_style="collapse";for(var h=0;h<R.length;h++)if(R[h]!=="expand")this.brace_style="collapse";else this.brace_style=R[h]}Gy.prototype=new Ay;CZ.Options=Gy});var Uy=p((oZ,vy)=>{var pZ=S8().Options,sZ=Th().Output,iZ=Ch().InputScanner,kZ=mh().Directives,Fy=new kZ(/\/\*/,/\*\//),Wy=/\r\n|[\r\n]/,lZ=/\r\n|[\r\n]/g,kh=/\s/,dZ=/(?:\s|\n)+/g,_Z=/\/\*(?:[\s\S]*?)((?:\*\/)|$)/g,nZ=/\/\/(?:[^\n\r\u2028\u2029]*)/g;function dc(c,f){this._source_text=c||"",this._options=new pZ(f),this._ch=null,this._input=null,this.NESTED_AT_RULE={page:!0,"font-face":!0,keyframes:!0,media:!0,supports:!0,document:!0},this.CONDITIONAL_GROUP_RULE={media:!0,supports:!0,document:!0},this.NON_SEMICOLON_NEWLINE_PROPERTY=["grid-template-areas","grid-template"]}dc.prototype.eatString=function(c){var f="";this._ch=this._input.next();while(this._ch){if(f+=this._ch,this._ch==="\\")f+=this._input.next();else if(c.indexOf(this._ch)!==-1||this._ch===`
25
25
  `)break;this._ch=this._input.next()}return f};dc.prototype.eatWhitespace=function(c){var f=kh.test(this._input.peek()),R=0;while(kh.test(this._input.peek()))if(this._ch=this._input.next(),c&&this._ch===`
26
26
  `){if(R===0||R<this._options.max_preserve_newlines)R++,this._output.add_new_line(!0)}return f};dc.prototype.foundNestedPseudoClass=function(){var c=0,f=1,R=this._input.peek(f);while(R){if(R==="{")return!0;else if(R==="(")c+=1;else if(R===")"){if(c===0)return!1;c-=1}else if(R===";"||R==="}")return!1;f++,R=this._input.peek(f)}return!1};dc.prototype.print_string=function(c){this._output.set_indent(this._indentLevel),this._output.non_breaking_space=!0,this._output.add_token(c)};dc.prototype.preserveSingleSpace=function(c){if(c)this._output.space_before_token=!0};dc.prototype.indent=function(){this._indentLevel++};dc.prototype.outdent=function(){if(this._indentLevel>0)this._indentLevel--};dc.prototype.beautify=function(){if(this._options.disabled)return this._source_text;var c=this._source_text,f=this._options.eol;if(f==="auto"){if(f=`
27
27
  `,c&&Wy.test(c||""))f=c.match(Wy)[0]}c=c.replace(lZ,`
28
- `);var R=c.match(/^[\t ]*/)[0];this._output=new sZ(this._options,R),this._input=new iZ(c),this._indentLevel=0,this._nestedLevel=0,this._ch=null;var h=0,$=!1,H=!1,A=!1,G=!1,y=!1,F=this._ch,U=!1,N,z,Z;while(!0){if(N=this._input.read(dZ),z=N!=="",Z=F,this._ch=this._input.next(),this._ch==="\\"&&this._input.hasNext())this._ch+=this._input.next();if(F=this._ch,!this._ch)break;else if(this._ch==="/"&&this._input.peek()==="*"){this._output.add_new_line(),this._input.back();var j=this._input.read(_Z),V=Fy.get_directives(j);if(V&&V.ignore==="start")j+=Fy.readIgnored(this._input);this.print_string(j),this.eatWhitespace(!0),this._output.add_new_line()}else if(this._ch==="/"&&this._input.peek()==="/")this._output.space_before_token=!0,this._input.back(),this.print_string(this._input.read(nZ)),this.eatWhitespace(!0);else if(this._ch==="$"){this.preserveSingleSpace(z),this.print_string(this._ch);var a=this._input.peekUntilAfter(/[: ,;{}()[\]\/='"]/g);if(a.match(/[ :]$/))a=this.eatString(": ").replace(/\s+$/,""),this.print_string(a),this._output.space_before_token=!0;if(h===0&&a.indexOf(":")!==-1)H=!0,this.indent()}else if(this._ch==="@")if(this.preserveSingleSpace(z),this._input.peek()==="{")this.print_string(this._ch+this.eatString("}"));else{this.print_string(this._ch);var Pc=this._input.peekUntilAfter(/[: ,;{}()[\]\/='"]/g);if(Pc.match(/[ :]$/))Pc=this.eatString(": ").replace(/\s+$/,""),this.print_string(Pc),this._output.space_before_token=!0;if(h===0&&Pc.indexOf(":")!==-1)H=!0,this.indent();else if(Pc in this.NESTED_AT_RULE){if(this._nestedLevel+=1,Pc in this.CONDITIONAL_GROUP_RULE)A=!0}else if(h===0&&!H)G=!0}else if(this._ch==="#"&&this._input.peek()==="{")this.preserveSingleSpace(z),this.print_string(this._ch+this.eatString("}"));else if(this._ch==="{"){if(H)H=!1,this.outdent();if(G=!1,A)A=!1,$=this._indentLevel>=this._nestedLevel;else $=this._indentLevel>=this._nestedLevel-1;if(this._options.newline_between_rules&&$){if(this._output.previous_line&&this._output.previous_line.item(-1)!=="{")this._output.ensure_empty_line_above("/",",")}if(this._output.space_before_token=!0,this._options.brace_style==="expand")this._output.add_new_line(),this.print_string(this._ch),this.indent(),this._output.set_indent(this._indentLevel);else{if(Z==="(")this._output.space_before_token=!1;else if(Z!==",")this.indent();this.print_string(this._ch)}this.eatWhitespace(!0),this._output.add_new_line()}else if(this._ch==="}"){if(this.outdent(),this._output.add_new_line(),Z==="{")this._output.trim(!0);if(H)this.outdent(),H=!1;if(this.print_string(this._ch),$=!1,this._nestedLevel)this._nestedLevel--;if(this.eatWhitespace(!0),this._output.add_new_line(),this._options.newline_between_rules&&!this._output.just_added_blankline()){if(this._input.peek()!=="}")this._output.add_new_line(!0)}if(this._input.peek()===")"){if(this._output.trim(!0),this._options.brace_style==="expand")this._output.add_new_line(!0)}}else if(this._ch===":"){for(var Kc=0;Kc<this.NON_SEMICOLON_NEWLINE_PROPERTY.length;Kc++)if(this._input.lookBack(this.NON_SEMICOLON_NEWLINE_PROPERTY[Kc])){U=!0;break}if(($||A)&&!(this._input.lookBack("&")||this.foundNestedPseudoClass())&&!this._input.lookBack("(")&&!G&&h===0){if(this.print_string(":"),!H)H=!0,this._output.space_before_token=!0,this.eatWhitespace(!0),this.indent()}else{if(this._input.lookBack(" "))this._output.space_before_token=!0;if(this._input.peek()===":")this._ch=this._input.next(),this.print_string("::");else this.print_string(":")}}else if(this._ch==='"'||this._ch==="'"){var Yc=Z==='"'||Z==="'";this.preserveSingleSpace(Yc||z),this.print_string(this._ch+this.eatString(this._ch)),this.eatWhitespace(!0)}else if(this._ch===";")if(U=!1,h===0){if(H)this.outdent(),H=!1;if(G=!1,this.print_string(this._ch),this.eatWhitespace(!0),this._input.peek()!=="/")this._output.add_new_line()}else this.print_string(this._ch),this.eatWhitespace(!0),this._output.space_before_token=!0;else if(this._ch==="(")if(this._input.lookBack("url")){if(this.print_string(this._ch),this.eatWhitespace(),h++,this.indent(),this._ch=this._input.next(),this._ch===")"||this._ch==='"'||this._ch==="'")this._input.back();else if(this._ch){if(this.print_string(this._ch+this.eatString(")")),h)h--,this.outdent()}}else{var wf=!1;if(this._input.lookBack("with"))wf=!0;if(this.preserveSingleSpace(z||wf),this.print_string(this._ch),H&&Z==="$"&&this._options.selector_separator_newline)this._output.add_new_line(),y=!0;else this.eatWhitespace(),h++,this.indent()}else if(this._ch===")"){if(h)h--,this.outdent();if(y&&this._input.peek()===";"&&this._options.selector_separator_newline)y=!1,this.outdent(),this._output.add_new_line();this.print_string(this._ch)}else if(this._ch===",")if(this.print_string(this._ch),this.eatWhitespace(!0),this._options.selector_separator_newline&&(!H||y)&&h===0&&!G)this._output.add_new_line();else this._output.space_before_token=!0;else if((this._ch===">"||this._ch==="+"||this._ch==="~")&&!H&&h===0){if(this._options.space_around_combinator)this._output.space_before_token=!0,this.print_string(this._ch),this._output.space_before_token=!0;else if(this.print_string(this._ch),this.eatWhitespace(),this._ch&&kh.test(this._ch))this._ch=""}else if(this._ch==="]")this.print_string(this._ch);else if(this._ch==="[")this.preserveSingleSpace(z),this.print_string(this._ch);else if(this._ch==="="){if(this.eatWhitespace(),this.print_string("="),kh.test(this._ch))this._ch=""}else if(this._ch==="!"&&!this._input.lookBack("\\"))this._output.space_before_token=!0,this.print_string(this._ch);else{var NR=Z==='"'||Z==="'";if(this.preserveSingleSpace(NR||z),this.print_string(this._ch),!this._output.just_added_newline()&&this._input.peek()===`
28
+ `);var R=c.match(/^[\t ]*/)[0];this._output=new sZ(this._options,R),this._input=new iZ(c),this._indentLevel=0,this._nestedLevel=0,this._ch=null;var h=0,$=!1,H=!1,A=!1,G=!1,y=!1,F=this._ch,U=!1,N,z,Z;while(!0){if(N=this._input.read(dZ),z=N!=="",Z=F,this._ch=this._input.next(),this._ch==="\\"&&this._input.hasNext())this._ch+=this._input.next();if(F=this._ch,!this._ch)break;else if(this._ch==="/"&&this._input.peek()==="*"){this._output.add_new_line(),this._input.back();var w=this._input.read(_Z),V=Fy.get_directives(w);if(V&&V.ignore==="start")w+=Fy.readIgnored(this._input);this.print_string(w),this.eatWhitespace(!0),this._output.add_new_line()}else if(this._ch==="/"&&this._input.peek()==="/")this._output.space_before_token=!0,this._input.back(),this.print_string(this._input.read(nZ)),this.eatWhitespace(!0);else if(this._ch==="$"){this.preserveSingleSpace(z),this.print_string(this._ch);var a=this._input.peekUntilAfter(/[: ,;{}()[\]\/='"]/g);if(a.match(/[ :]$/))a=this.eatString(": ").replace(/\s+$/,""),this.print_string(a),this._output.space_before_token=!0;if(h===0&&a.indexOf(":")!==-1)H=!0,this.indent()}else if(this._ch==="@")if(this.preserveSingleSpace(z),this._input.peek()==="{")this.print_string(this._ch+this.eatString("}"));else{this.print_string(this._ch);var Pc=this._input.peekUntilAfter(/[: ,;{}()[\]\/='"]/g);if(Pc.match(/[ :]$/))Pc=this.eatString(": ").replace(/\s+$/,""),this.print_string(Pc),this._output.space_before_token=!0;if(h===0&&Pc.indexOf(":")!==-1)H=!0,this.indent();else if(Pc in this.NESTED_AT_RULE){if(this._nestedLevel+=1,Pc in this.CONDITIONAL_GROUP_RULE)A=!0}else if(h===0&&!H)G=!0}else if(this._ch==="#"&&this._input.peek()==="{")this.preserveSingleSpace(z),this.print_string(this._ch+this.eatString("}"));else if(this._ch==="{"){if(H)H=!1,this.outdent();if(G=!1,A)A=!1,$=this._indentLevel>=this._nestedLevel;else $=this._indentLevel>=this._nestedLevel-1;if(this._options.newline_between_rules&&$){if(this._output.previous_line&&this._output.previous_line.item(-1)!=="{")this._output.ensure_empty_line_above("/",",")}if(this._output.space_before_token=!0,this._options.brace_style==="expand")this._output.add_new_line(),this.print_string(this._ch),this.indent(),this._output.set_indent(this._indentLevel);else{if(Z==="(")this._output.space_before_token=!1;else if(Z!==",")this.indent();this.print_string(this._ch)}this.eatWhitespace(!0),this._output.add_new_line()}else if(this._ch==="}"){if(this.outdent(),this._output.add_new_line(),Z==="{")this._output.trim(!0);if(H)this.outdent(),H=!1;if(this.print_string(this._ch),$=!1,this._nestedLevel)this._nestedLevel--;if(this.eatWhitespace(!0),this._output.add_new_line(),this._options.newline_between_rules&&!this._output.just_added_blankline()){if(this._input.peek()!=="}")this._output.add_new_line(!0)}if(this._input.peek()===")"){if(this._output.trim(!0),this._options.brace_style==="expand")this._output.add_new_line(!0)}}else if(this._ch===":"){for(var Kc=0;Kc<this.NON_SEMICOLON_NEWLINE_PROPERTY.length;Kc++)if(this._input.lookBack(this.NON_SEMICOLON_NEWLINE_PROPERTY[Kc])){U=!0;break}if(($||A)&&!(this._input.lookBack("&")||this.foundNestedPseudoClass())&&!this._input.lookBack("(")&&!G&&h===0){if(this.print_string(":"),!H)H=!0,this._output.space_before_token=!0,this.eatWhitespace(!0),this.indent()}else{if(this._input.lookBack(" "))this._output.space_before_token=!0;if(this._input.peek()===":")this._ch=this._input.next(),this.print_string("::");else this.print_string(":")}}else if(this._ch==='"'||this._ch==="'"){var Yc=Z==='"'||Z==="'";this.preserveSingleSpace(Yc||z),this.print_string(this._ch+this.eatString(this._ch)),this.eatWhitespace(!0)}else if(this._ch===";")if(U=!1,h===0){if(H)this.outdent(),H=!1;if(G=!1,this.print_string(this._ch),this.eatWhitespace(!0),this._input.peek()!=="/")this._output.add_new_line()}else this.print_string(this._ch),this.eatWhitespace(!0),this._output.space_before_token=!0;else if(this._ch==="(")if(this._input.lookBack("url")){if(this.print_string(this._ch),this.eatWhitespace(),h++,this.indent(),this._ch=this._input.next(),this._ch===")"||this._ch==='"'||this._ch==="'")this._input.back();else if(this._ch){if(this.print_string(this._ch+this.eatString(")")),h)h--,this.outdent()}}else{var jf=!1;if(this._input.lookBack("with"))jf=!0;if(this.preserveSingleSpace(z||jf),this.print_string(this._ch),H&&Z==="$"&&this._options.selector_separator_newline)this._output.add_new_line(),y=!0;else this.eatWhitespace(),h++,this.indent()}else if(this._ch===")"){if(h)h--,this.outdent();if(y&&this._input.peek()===";"&&this._options.selector_separator_newline)y=!1,this.outdent(),this._output.add_new_line();this.print_string(this._ch)}else if(this._ch===",")if(this.print_string(this._ch),this.eatWhitespace(!0),this._options.selector_separator_newline&&(!H||y)&&h===0&&!G)this._output.add_new_line();else this._output.space_before_token=!0;else if((this._ch===">"||this._ch==="+"||this._ch==="~")&&!H&&h===0){if(this._options.space_around_combinator)this._output.space_before_token=!0,this.print_string(this._ch),this._output.space_before_token=!0;else if(this.print_string(this._ch),this.eatWhitespace(),this._ch&&kh.test(this._ch))this._ch=""}else if(this._ch==="]")this.print_string(this._ch);else if(this._ch==="[")this.preserveSingleSpace(z),this.print_string(this._ch);else if(this._ch==="="){if(this.eatWhitespace(),this.print_string("="),kh.test(this._ch))this._ch=""}else if(this._ch==="!"&&!this._input.lookBack("\\"))this._output.space_before_token=!0,this.print_string(this._ch);else{var NR=Z==='"'||Z==="'";if(this.preserveSingleSpace(NR||z),this.print_string(this._ch),!this._output.just_added_newline()&&this._input.peek()===`
29
29
  `&&U)this._output.add_new_line()}}var N1=this._output.get_code(f);return N1};oZ.Beautifier=dc});var Yy=p((xB,M8)=>{var tZ=Uy().Beautifier,rZ=S8().Options;function eZ(c,f){var R=new tZ(c,f);return R.beautify()}M8.exports=eZ;M8.exports.defaultOptions=function(){return new rZ}});var B8=p((c7,Jy)=>{var Ny=gh().Options;function Zy(c){if(Ny.call(this,c,"html"),this.templating.length===1&&this.templating[0]==="auto")this.templating=["django","erb","handlebars","php"];this.indent_inner_html=this._get_boolean("indent_inner_html"),this.indent_body_inner_html=this._get_boolean("indent_body_inner_html",!0),this.indent_head_inner_html=this._get_boolean("indent_head_inner_html",!0),this.indent_handlebars=this._get_boolean("indent_handlebars",!0),this.wrap_attributes=this._get_selection("wrap_attributes",["auto","force","force-aligned","force-expand-multiline","aligned-multiple","preserve","preserve-aligned"]),this.wrap_attributes_min_attrs=this._get_number("wrap_attributes_min_attrs",2),this.wrap_attributes_indent_size=this._get_number("wrap_attributes_indent_size",this.indent_size),this.extra_liners=this._get_array("extra_liners",["head","body","/html"]),this.inline=this._get_array("inline",["a","abbr","area","audio","b","bdi","bdo","br","button","canvas","cite","code","data","datalist","del","dfn","em","embed","i","iframe","img","input","ins","kbd","keygen","label","map","mark","math","meter","noscript","object","output","progress","q","ruby","s","samp","select","small","span","strong","sub","sup","svg","template","textarea","time","u","var","video","wbr","text","acronym","big","strike","tt"]),this.inline_custom_elements=this._get_boolean("inline_custom_elements",!0),this.void_elements=this._get_array("void_elements",["area","base","br","col","embed","hr","img","input","keygen","link","menuitem","meta","param","source","track","wbr","!doctype","?xml","basefont","isindex"]),this.unformatted=this._get_array("unformatted",[]),this.content_unformatted=this._get_array("content_unformatted",["pre","textarea"]),this.unformatted_content_delimiter=this._get_characters("unformatted_content_delimiter"),this.indent_scripts=this._get_selection("indent_scripts",["normal","keep","separate"])}Zy.prototype=new Ny;c7.Options=Zy});var D8=p((H7,Q8)=>{var Sy=_R().Tokenizer,X8=_R().TOKEN,R7=mh().Directives,h7=Y8().TemplatablePattern,$7=lR().Pattern,b={TAG_OPEN:"TK_TAG_OPEN",TAG_CLOSE:"TK_TAG_CLOSE",CONTROL_FLOW_OPEN:"TK_CONTROL_FLOW_OPEN",CONTROL_FLOW_CLOSE:"TK_CONTROL_FLOW_CLOSE",ATTRIBUTE:"TK_ATTRIBUTE",EQUALS:"TK_EQUALS",VALUE:"TK_VALUE",COMMENT:"TK_COMMENT",TEXT:"TK_TEXT",UNKNOWN:"TK_UNKNOWN",START:X8.START,RAW:X8.RAW,EOF:X8.EOF},zy=new R7(/<\!--/,/-->/),Hc=function(c,f){Sy.call(this,c,f),this._current_tag_name="";var R=new h7(this._input).read_options(this._options),h=new $7(this._input);if(this.__patterns={word:R.until(/[\n\r\t <]/),word_control_flow_close_excluded:R.until(/[\n\r\t <}]/),single_quote:R.until_after(/'/),double_quote:R.until_after(/"/),attribute:R.until(/[\n\r\t =>]|\/>/),element_name:R.until(/[\n\r\t >\/]/),angular_control_flow_start:h.matching(/\@[a-zA-Z]+[^({]*[({]/),handlebars_comment:h.starting_with(/{{!--/).until_after(/--}}/),handlebars:h.starting_with(/{{/).until_after(/}}/),handlebars_open:h.until(/[\n\r\t }]/),handlebars_raw_close:h.until(/}}/),comment:h.starting_with(/<!--/).until_after(/-->/),cdata:h.starting_with(/<!\[CDATA\[/).until_after(/]]>/),conditional_comment:h.starting_with(/<!\[/).until_after(/]>/),processing:h.starting_with(/<\?/).until_after(/\?>/)},this._options.indent_handlebars)this.__patterns.word=this.__patterns.word.exclude("handlebars"),this.__patterns.word_control_flow_close_excluded=this.__patterns.word_control_flow_close_excluded.exclude("handlebars");if(this._unformatted_content_delimiter=null,this._options.unformatted_content_delimiter){var $=this._input.get_literal_regexp(this._options.unformatted_content_delimiter);this.__patterns.unformatted_content_delimiter=h.matching($).until_after($)}};Hc.prototype=new Sy;Hc.prototype._is_comment=function(c){return!1};Hc.prototype._is_opening=function(c){return c.type===b.TAG_OPEN||c.type===b.CONTROL_FLOW_OPEN};Hc.prototype._is_closing=function(c,f){return c.type===b.TAG_CLOSE&&(f&&((c.text===">"||c.text==="/>")&&f.text[0]==="<"||c.text==="}}"&&f.text[0]==="{"&&f.text[1]==="{"))||c.type===b.CONTROL_FLOW_CLOSE&&(c.text==="}"&&f.text.endsWith("{"))};Hc.prototype._reset=function(){this._current_tag_name=""};Hc.prototype._get_next_token=function(c,f){var R=null;this._readWhitespace();var h=this._input.peek();if(h===null)return this._create_token(b.EOF,"");return R=R||this._read_open_handlebars(h,f),R=R||this._read_attribute(h,c,f),R=R||this._read_close(h,f),R=R||this._read_script_and_style(h,c),R=R||this._read_control_flows(h,f),R=R||this._read_raw_content(h,c,f),R=R||this._read_content_word(h,f),R=R||this._read_comment_or_cdata(h),R=R||this._read_processing(h),R=R||this._read_open(h,f),R=R||this._create_token(b.UNKNOWN,this._input.next()),R};Hc.prototype._read_comment_or_cdata=function(c){var f=null,R=null,h=null;if(c==="<"){var $=this._input.peek(1);if($==="!")if(R=this.__patterns.comment.read(),R){if(h=zy.get_directives(R),h&&h.ignore==="start")R+=zy.readIgnored(this._input)}else R=this.__patterns.cdata.read();if(R)f=this._create_token(b.COMMENT,R),f.directives=h}return f};Hc.prototype._read_processing=function(c){var f=null,R=null,h=null;if(c==="<"){var $=this._input.peek(1);if($==="!"||$==="?")R=this.__patterns.conditional_comment.read(),R=R||this.__patterns.processing.read();if(R)f=this._create_token(b.COMMENT,R),f.directives=h}return f};Hc.prototype._read_open=function(c,f){var R=null,h=null;if(!f||f.type===b.CONTROL_FLOW_OPEN){if(c==="<"){if(R=this._input.next(),this._input.peek()==="/")R+=this._input.next();R+=this.__patterns.element_name.read(),h=this._create_token(b.TAG_OPEN,R)}}return h};Hc.prototype._read_open_handlebars=function(c,f){var R=null,h=null;if(!f||f.type===b.CONTROL_FLOW_OPEN){if((this._options.templating.includes("angular")||this._options.indent_handlebars)&&c==="{"&&this._input.peek(1)==="{")if(this._options.indent_handlebars&&this._input.peek(2)==="!")R=this.__patterns.handlebars_comment.read(),R=R||this.__patterns.handlebars.read(),h=this._create_token(b.COMMENT,R);else R=this.__patterns.handlebars_open.read(),h=this._create_token(b.TAG_OPEN,R)}return h};Hc.prototype._read_control_flows=function(c,f){var R="",h=null;if(!this._options.templating.includes("angular"))return h;if(c==="@"){if(R=this.__patterns.angular_control_flow_start.read(),R==="")return h;var $=R.endsWith("(")?1:0,H=0;while(!(R.endsWith("{")&&$===H)){var A=this._input.next();if(A===null)break;else if(A==="(")$++;else if(A===")")H++;R+=A}h=this._create_token(b.CONTROL_FLOW_OPEN,R)}else if(c==="}"&&f&&f.type===b.CONTROL_FLOW_OPEN)R=this._input.next(),h=this._create_token(b.CONTROL_FLOW_CLOSE,R);return h};Hc.prototype._read_close=function(c,f){var R=null,h=null;if(f&&f.type===b.TAG_OPEN){if(f.text[0]==="<"&&(c===">"||c==="/"&&this._input.peek(1)===">")){if(R=this._input.next(),c==="/")R+=this._input.next();h=this._create_token(b.TAG_CLOSE,R)}else if(f.text[0]==="{"&&c==="}"&&this._input.peek(1)==="}")this._input.next(),this._input.next(),h=this._create_token(b.TAG_CLOSE,"}}")}return h};Hc.prototype._read_attribute=function(c,f,R){var h=null,$="";if(R&&R.text[0]==="<"){if(c==="=")h=this._create_token(b.EQUALS,this._input.next());else if(c==='"'||c==="'"){var H=this._input.next();if(c==='"')H+=this.__patterns.double_quote.read();else H+=this.__patterns.single_quote.read();h=this._create_token(b.VALUE,H)}else if($=this.__patterns.attribute.read(),$)if(f.type===b.EQUALS)h=this._create_token(b.VALUE,$);else h=this._create_token(b.ATTRIBUTE,$)}return h};Hc.prototype._is_content_unformatted=function(c){return this._options.void_elements.indexOf(c)===-1&&(this._options.content_unformatted.indexOf(c)!==-1||this._options.unformatted.indexOf(c)!==-1)};Hc.prototype._read_raw_content=function(c,f,R){var h="";if(R&&R.text[0]==="{")h=this.__patterns.handlebars_raw_close.read();else if(f.type===b.TAG_CLOSE&&f.opened.text[0]==="<"&&f.text[0]!=="/"){var $=f.opened.text.substr(1).toLowerCase();if(this._is_content_unformatted($))h=this._input.readUntil(new RegExp("</"+$+"[\\n\\r\\t ]*?>","ig"))}if(h)return this._create_token(b.TEXT,h);return null};Hc.prototype._read_script_and_style=function(c,f){if(f.type===b.TAG_CLOSE&&f.opened.text[0]==="<"&&f.text[0]!=="/"){var R=f.opened.text.substr(1).toLowerCase();if(R==="script"||R==="style"){var h=this._read_comment_or_cdata(c);if(h)return h.type=b.TEXT,h;var $=this._input.readUntil(new RegExp("</"+R+"[\\n\\r\\t ]*?>","ig"));if($)return this._create_token(b.TEXT,$)}}return null};Hc.prototype._read_content_word=function(c,f){var R="";if(this._options.unformatted_content_delimiter){if(c===this._options.unformatted_content_delimiter[0])R=this.__patterns.unformatted_content_delimiter.read()}if(!R)R=f&&f.type===b.CONTROL_FLOW_OPEN?this.__patterns.word_control_flow_close_excluded.read():this.__patterns.word.read();if(R)return this._create_token(b.TEXT,R);return null};H7.Tokenizer=Hc;H7.TOKEN=b});var Qy=p((z7,Xy)=>{var y7=B8().Options,F7=Th().Output,W7=D8().Tokenizer,q=D8().TOKEN,My=/\r\n|[\r\n]/,v7=/\r\n|[\r\n]/g,Bc=function(c,f){this.indent_level=0,this.alignment_size=0,this.max_preserve_newlines=c.max_preserve_newlines,this.preserve_newlines=c.preserve_newlines,this._output=new F7(c,f)};Bc.prototype.current_line_has_match=function(c){return this._output.current_line.has_match(c)};Bc.prototype.set_space_before_token=function(c,f){this._output.space_before_token=c,this._output.non_breaking_space=f};Bc.prototype.set_wrap_point=function(){this._output.set_indent(this.indent_level,this.alignment_size),this._output.set_wrap_point()};Bc.prototype.add_raw_token=function(c){this._output.add_raw_token(c)};Bc.prototype.print_preserved_newlines=function(c){var f=0;if(c.type!==q.TEXT&&c.previous.type!==q.TEXT)f=c.newlines?1:0;if(this.preserve_newlines)f=c.newlines<this.max_preserve_newlines+1?c.newlines:this.max_preserve_newlines+1;for(var R=0;R<f;R++)this.print_newline(R>0);return f!==0};Bc.prototype.traverse_whitespace=function(c){if(c.whitespace_before||c.newlines){if(!this.print_preserved_newlines(c))this._output.space_before_token=!0;return!0}return!1};Bc.prototype.previous_token_wrapped=function(){return this._output.previous_token_wrapped};Bc.prototype.print_newline=function(c){this._output.add_new_line(c)};Bc.prototype.print_token=function(c){if(c.text)this._output.set_indent(this.indent_level,this.alignment_size),this._output.add_token(c.text)};Bc.prototype.indent=function(){this.indent_level++};Bc.prototype.deindent=function(){if(this.indent_level>0)this.indent_level--,this._output.set_indent(this.indent_level,this.alignment_size)};Bc.prototype.get_full_indent=function(c){if(c=this.indent_level+(c||0),c<1)return"";return this._output.get_indent_string(c)};var U7=function(c){var f=null,R=c.next;while(R.type!==q.EOF&&c.closed!==R){if(R.type===q.ATTRIBUTE&&R.text==="type"){if(R.next&&R.next.type===q.EQUALS&&R.next.next&&R.next.next.type===q.VALUE)f=R.next.next.text;break}R=R.next}return f},Y7=function(c,f){var R=null,h=null;if(!f.closed)return null;if(c==="script")R="text/javascript";else if(c==="style")R="text/css";if(R=U7(f)||R,R.search("text/css")>-1)h="css";else if(R.search(/module|((text|application|dojo)\/(x-)?(javascript|ecmascript|jscript|livescript|(ld\+)?json|method|aspect))/)>-1)h="javascript";else if(R.search(/(text|application|dojo)\/(x-)?(html)/)>-1)h="html";else if(R.search(/test\/null/)>-1)h="null";return h};function c0(c,f){return f.indexOf(c)!==-1}function N7(c,f,R){this.parent=c||null,this.tag=f?f.tag_name:"",this.indent_level=R||0,this.parser_token=f||null}function Xf(c){this._printer=c,this._current_frame=null}Xf.prototype.get_parser_token=function(){return this._current_frame?this._current_frame.parser_token:null};Xf.prototype.record_tag=function(c){var f=new N7(this._current_frame,c,this._printer.indent_level);this._current_frame=f};Xf.prototype._try_pop_frame=function(c){var f=null;if(c)f=c.parser_token,this._printer.indent_level=c.indent_level,this._current_frame=c.parent;return f};Xf.prototype._get_frame=function(c,f){var R=this._current_frame;while(R){if(c.indexOf(R.tag)!==-1)break;else if(f&&f.indexOf(R.tag)!==-1){R=null;break}R=R.parent}return R};Xf.prototype.try_pop=function(c,f){var R=this._get_frame([c],f);return this._try_pop_frame(R)};Xf.prototype.indent_to_tag=function(c){var f=this._get_frame(c);if(f)this._printer.indent_level=f.indent_level};function Jc(c,f,R,h){this._source_text=c||"",f=f||{},this._js_beautify=R,this._css_beautify=h,this._tag_stack=null;var $=new y7(f,"html");this._options=$,this._is_wrap_attributes_force=this._options.wrap_attributes.substr(0,5)==="force",this._is_wrap_attributes_force_expand_multiline=this._options.wrap_attributes==="force-expand-multiline",this._is_wrap_attributes_force_aligned=this._options.wrap_attributes==="force-aligned",this._is_wrap_attributes_aligned_multiple=this._options.wrap_attributes==="aligned-multiple",this._is_wrap_attributes_preserve=this._options.wrap_attributes.substr(0,8)==="preserve",this._is_wrap_attributes_preserve_aligned=this._options.wrap_attributes==="preserve-aligned"}Jc.prototype.beautify=function(){if(this._options.disabled)return this._source_text;var c=this._source_text,f=this._options.eol;if(this._options.eol==="auto"){if(f=`
30
30
  `,c&&My.test(c))f=c.match(My)[0]}c=c.replace(v7,`
31
- `);var R=c.match(/^[\t ]*/)[0],h={text:"",type:""},$=new By(this._options),H=new Bc(this._options,R),A=new W7(c,this._options).tokenize();this._tag_stack=new Xf(H);var G=null,y=A.next();while(y.type!==q.EOF){if(y.type===q.TAG_OPEN||y.type===q.COMMENT)G=this._handle_tag_open(H,y,$,h,A),$=G;else if(y.type===q.ATTRIBUTE||y.type===q.EQUALS||y.type===q.VALUE||y.type===q.TEXT&&!$.tag_complete)G=this._handle_inside_tag(H,y,$,h);else if(y.type===q.TAG_CLOSE)G=this._handle_tag_close(H,y,$);else if(y.type===q.TEXT)G=this._handle_text(H,y,$);else if(y.type===q.CONTROL_FLOW_OPEN)G=this._handle_control_flow_open(H,y);else if(y.type===q.CONTROL_FLOW_CLOSE)G=this._handle_control_flow_close(H,y);else H.add_raw_token(y);h=G,y=A.next()}var F=H._output.get_code(f);return F};Jc.prototype._handle_control_flow_open=function(c,f){var R={text:f.text,type:f.type};if(c.set_space_before_token(f.newlines||f.whitespace_before!=="",!0),f.newlines)c.print_preserved_newlines(f);else c.set_space_before_token(f.newlines||f.whitespace_before!=="",!0);return c.print_token(f),c.indent(),R};Jc.prototype._handle_control_flow_close=function(c,f){var R={text:f.text,type:f.type};if(c.deindent(),f.newlines)c.print_preserved_newlines(f);else c.set_space_before_token(f.newlines||f.whitespace_before!=="",!0);return c.print_token(f),R};Jc.prototype._handle_tag_close=function(c,f,R){var h={text:f.text,type:f.type};if(c.alignment_size=0,R.tag_complete=!0,c.set_space_before_token(f.newlines||f.whitespace_before!=="",!0),R.is_unformatted)c.add_raw_token(f);else{if(R.tag_start_char==="<"){if(c.set_space_before_token(f.text[0]==="/",!0),this._is_wrap_attributes_force_expand_multiline&&R.has_wrapped_attrs)c.print_newline(!1)}c.print_token(f)}if(R.indent_content&&!(R.is_unformatted||R.is_content_unformatted))c.indent(),R.indent_content=!1;if(!R.is_inline_element&&!(R.is_unformatted||R.is_content_unformatted))c.set_wrap_point();return h};Jc.prototype._handle_inside_tag=function(c,f,R,h){var $=R.has_wrapped_attrs,H={text:f.text,type:f.type};if(c.set_space_before_token(f.newlines||f.whitespace_before!=="",!0),R.is_unformatted)c.add_raw_token(f);else if(R.tag_start_char==="{"&&f.type===q.TEXT)if(c.print_preserved_newlines(f))f.newlines=0,c.add_raw_token(f);else c.print_token(f);else{if(f.type===q.ATTRIBUTE)c.set_space_before_token(!0);else if(f.type===q.EQUALS)c.set_space_before_token(!1);else if(f.type===q.VALUE&&f.previous.type===q.EQUALS)c.set_space_before_token(!1);if(f.type===q.ATTRIBUTE&&R.tag_start_char==="<"){if(this._is_wrap_attributes_preserve||this._is_wrap_attributes_preserve_aligned)c.traverse_whitespace(f),$=$||f.newlines!==0;if(this._is_wrap_attributes_force&&R.attr_count>=this._options.wrap_attributes_min_attrs&&(h.type!==q.TAG_OPEN||this._is_wrap_attributes_force_expand_multiline))c.print_newline(!1),$=!0}c.print_token(f),$=$||c.previous_token_wrapped(),R.has_wrapped_attrs=$}return H};Jc.prototype._handle_text=function(c,f,R){var h={text:f.text,type:"TK_CONTENT"};if(R.custom_beautifier_name)this._print_custom_beatifier_text(c,f,R);else if(R.is_unformatted||R.is_content_unformatted)c.add_raw_token(f);else c.traverse_whitespace(f),c.print_token(f);return h};Jc.prototype._print_custom_beatifier_text=function(c,f,R){var h=this;if(f.text!==""){var $=f.text,H,A=1,G="",y="";if(R.custom_beautifier_name==="javascript"&&typeof this._js_beautify==="function")H=this._js_beautify;else if(R.custom_beautifier_name==="css"&&typeof this._css_beautify==="function")H=this._css_beautify;else if(R.custom_beautifier_name==="html")H=function(j,V){var a=new Jc(j,V,h._js_beautify,h._css_beautify);return a.beautify()};if(this._options.indent_scripts==="keep")A=0;else if(this._options.indent_scripts==="separate")A=-c.indent_level;var F=c.get_full_indent(A);if($=$.replace(/\n[ \t]*$/,""),R.custom_beautifier_name!=="html"&&$[0]==="<"&&$.match(/^(<!--|<!\[CDATA\[)/)){var U=/^(<!--[^\n]*|<!\[CDATA\[)(\n?)([ \t\n]*)([\s\S]*)(-->|]]>)$/.exec($);if(!U){c.add_raw_token(f);return}if(G=F+U[1]+`
31
+ `);var R=c.match(/^[\t ]*/)[0],h={text:"",type:""},$=new By(this._options),H=new Bc(this._options,R),A=new W7(c,this._options).tokenize();this._tag_stack=new Xf(H);var G=null,y=A.next();while(y.type!==q.EOF){if(y.type===q.TAG_OPEN||y.type===q.COMMENT)G=this._handle_tag_open(H,y,$,h,A),$=G;else if(y.type===q.ATTRIBUTE||y.type===q.EQUALS||y.type===q.VALUE||y.type===q.TEXT&&!$.tag_complete)G=this._handle_inside_tag(H,y,$,h);else if(y.type===q.TAG_CLOSE)G=this._handle_tag_close(H,y,$);else if(y.type===q.TEXT)G=this._handle_text(H,y,$);else if(y.type===q.CONTROL_FLOW_OPEN)G=this._handle_control_flow_open(H,y);else if(y.type===q.CONTROL_FLOW_CLOSE)G=this._handle_control_flow_close(H,y);else H.add_raw_token(y);h=G,y=A.next()}var F=H._output.get_code(f);return F};Jc.prototype._handle_control_flow_open=function(c,f){var R={text:f.text,type:f.type};if(c.set_space_before_token(f.newlines||f.whitespace_before!=="",!0),f.newlines)c.print_preserved_newlines(f);else c.set_space_before_token(f.newlines||f.whitespace_before!=="",!0);return c.print_token(f),c.indent(),R};Jc.prototype._handle_control_flow_close=function(c,f){var R={text:f.text,type:f.type};if(c.deindent(),f.newlines)c.print_preserved_newlines(f);else c.set_space_before_token(f.newlines||f.whitespace_before!=="",!0);return c.print_token(f),R};Jc.prototype._handle_tag_close=function(c,f,R){var h={text:f.text,type:f.type};if(c.alignment_size=0,R.tag_complete=!0,c.set_space_before_token(f.newlines||f.whitespace_before!=="",!0),R.is_unformatted)c.add_raw_token(f);else{if(R.tag_start_char==="<"){if(c.set_space_before_token(f.text[0]==="/",!0),this._is_wrap_attributes_force_expand_multiline&&R.has_wrapped_attrs)c.print_newline(!1)}c.print_token(f)}if(R.indent_content&&!(R.is_unformatted||R.is_content_unformatted))c.indent(),R.indent_content=!1;if(!R.is_inline_element&&!(R.is_unformatted||R.is_content_unformatted))c.set_wrap_point();return h};Jc.prototype._handle_inside_tag=function(c,f,R,h){var $=R.has_wrapped_attrs,H={text:f.text,type:f.type};if(c.set_space_before_token(f.newlines||f.whitespace_before!=="",!0),R.is_unformatted)c.add_raw_token(f);else if(R.tag_start_char==="{"&&f.type===q.TEXT)if(c.print_preserved_newlines(f))f.newlines=0,c.add_raw_token(f);else c.print_token(f);else{if(f.type===q.ATTRIBUTE)c.set_space_before_token(!0);else if(f.type===q.EQUALS)c.set_space_before_token(!1);else if(f.type===q.VALUE&&f.previous.type===q.EQUALS)c.set_space_before_token(!1);if(f.type===q.ATTRIBUTE&&R.tag_start_char==="<"){if(this._is_wrap_attributes_preserve||this._is_wrap_attributes_preserve_aligned)c.traverse_whitespace(f),$=$||f.newlines!==0;if(this._is_wrap_attributes_force&&R.attr_count>=this._options.wrap_attributes_min_attrs&&(h.type!==q.TAG_OPEN||this._is_wrap_attributes_force_expand_multiline))c.print_newline(!1),$=!0}c.print_token(f),$=$||c.previous_token_wrapped(),R.has_wrapped_attrs=$}return H};Jc.prototype._handle_text=function(c,f,R){var h={text:f.text,type:"TK_CONTENT"};if(R.custom_beautifier_name)this._print_custom_beatifier_text(c,f,R);else if(R.is_unformatted||R.is_content_unformatted)c.add_raw_token(f);else c.traverse_whitespace(f),c.print_token(f);return h};Jc.prototype._print_custom_beatifier_text=function(c,f,R){var h=this;if(f.text!==""){var $=f.text,H,A=1,G="",y="";if(R.custom_beautifier_name==="javascript"&&typeof this._js_beautify==="function")H=this._js_beautify;else if(R.custom_beautifier_name==="css"&&typeof this._css_beautify==="function")H=this._css_beautify;else if(R.custom_beautifier_name==="html")H=function(w,V){var a=new Jc(w,V,h._js_beautify,h._css_beautify);return a.beautify()};if(this._options.indent_scripts==="keep")A=0;else if(this._options.indent_scripts==="separate")A=-c.indent_level;var F=c.get_full_indent(A);if($=$.replace(/\n[ \t]*$/,""),R.custom_beautifier_name!=="html"&&$[0]==="<"&&$.match(/^(<!--|<!\[CDATA\[)/)){var U=/^(<!--[^\n]*|<!\[CDATA\[)(\n?)([ \t\n]*)([\s\S]*)(-->|]]>)$/.exec($);if(!U){c.add_raw_token(f);return}if(G=F+U[1]+`
32
32
  `,$=U[4],U[5])y=F+U[5];if($=$.replace(/\n[ \t]*$/,""),U[2]||U[3].indexOf(`
33
33
  `)!==-1){if(U=U[3].match(/[ \t]+$/),U)f.whitespace_before=U[0]}}if($)if(H){var N=function(){this.eol=`
34
34
  `};N.prototype=this._options.raw_options;var z=new N;$=H(F+$,z)}else{var Z=f.whitespace_before;if(Z)$=$.replace(new RegExp(`
@@ -36,8 +36,8 @@ You passed in: '`+this.raw_options[c]+"'");return h};$f.prototype._is_valid_sele
36
36
  `);$=F+$.replace(/\n/g,`
37
37
  `+F)}if(G)if(!$)$=G+y;else $=G+$+`
38
38
  `+y;if(c.print_newline(!1),$)f.text=$,f.whitespace_before="",f.newlines=0,c.add_raw_token(f),c.print_newline(!0)}};Jc.prototype._handle_tag_open=function(c,f,R,h,$){var H=this._get_tag_open_token(f);if((R.is_unformatted||R.is_content_unformatted)&&!R.is_empty_element&&f.type===q.TAG_OPEN&&!H.is_start_tag)c.add_raw_token(f),H.start_tag_token=this._tag_stack.try_pop(H.tag_name);else{if(c.traverse_whitespace(f),this._set_tag_position(c,f,H,R,h),!H.is_inline_element)c.set_wrap_point();c.print_token(f)}if(H.is_start_tag&&this._is_wrap_attributes_force){var A=0,G;do{if(G=$.peek(A),G.type===q.ATTRIBUTE)H.attr_count+=1;A+=1}while(G.type!==q.EOF&&G.type!==q.TAG_CLOSE)}if(this._is_wrap_attributes_force_aligned||this._is_wrap_attributes_aligned_multiple||this._is_wrap_attributes_preserve_aligned)H.alignment_size=f.text.length+1;if(!H.tag_complete&&!H.is_unformatted)c.alignment_size=H.alignment_size;return H};var By=function(c,f,R){if(this.parent=f||null,this.text="",this.type="TK_TAG_OPEN",this.tag_name="",this.is_inline_element=!1,this.is_unformatted=!1,this.is_content_unformatted=!1,this.is_empty_element=!1,this.is_start_tag=!1,this.is_end_tag=!1,this.indent_content=!1,this.multiline_content=!1,this.custom_beautifier_name=null,this.start_tag_token=null,this.attr_count=0,this.has_wrapped_attrs=!1,this.alignment_size=0,this.tag_complete=!1,this.tag_start_char="",this.tag_check="",!R)this.tag_complete=!0;else{var h;if(this.tag_start_char=R.text[0],this.text=R.text,this.tag_start_char==="<")h=R.text.match(/^<([^\s>]*)/),this.tag_check=h?h[1]:"";else if(h=R.text.match(/^{{~?(?:[\^]|#\*?)?([^\s}]+)/),this.tag_check=h?h[1]:"",(R.text.startsWith("{{#>")||R.text.startsWith("{{~#>"))&&this.tag_check[0]===">")if(this.tag_check===">"&&R.next!==null)this.tag_check=R.next.text.split(" ")[0];else this.tag_check=R.text.split(">")[1];if(this.tag_check=this.tag_check.toLowerCase(),R.type===q.COMMENT)this.tag_complete=!0;this.is_start_tag=this.tag_check.charAt(0)!=="/",this.tag_name=!this.is_start_tag?this.tag_check.substr(1):this.tag_check,this.is_end_tag=!this.is_start_tag||R.closed&&R.closed.text==="/>";var $=2;if(this.tag_start_char==="{"&&this.text.length>=3){if(this.text.charAt(2)==="~")$=3}this.is_end_tag=this.is_end_tag||this.tag_start_char==="{"&&(!c.indent_handlebars||this.text.length<3||/[^#\^]/.test(this.text.charAt($)))}};Jc.prototype._get_tag_open_token=function(c){var f=new By(this._options,this._tag_stack.get_parser_token(),c);return f.alignment_size=this._options.wrap_attributes_indent_size,f.is_end_tag=f.is_end_tag||c0(f.tag_check,this._options.void_elements),f.is_empty_element=f.tag_complete||f.is_start_tag&&f.is_end_tag,f.is_unformatted=!f.tag_complete&&c0(f.tag_check,this._options.unformatted),f.is_content_unformatted=!f.is_empty_element&&c0(f.tag_check,this._options.content_unformatted),f.is_inline_element=c0(f.tag_name,this._options.inline)||this._options.inline_custom_elements&&f.tag_name.includes("-")||f.tag_start_char==="{",f};Jc.prototype._set_tag_position=function(c,f,R,h,$){if(!R.is_empty_element)if(R.is_end_tag)R.start_tag_token=this._tag_stack.try_pop(R.tag_name);else{if(this._do_optional_end_element(R)){if(!R.is_inline_element)c.print_newline(!1)}if(this._tag_stack.record_tag(R),(R.tag_name==="script"||R.tag_name==="style")&&!(R.is_unformatted||R.is_content_unformatted))R.custom_beautifier_name=Y7(R.tag_check,f)}if(c0(R.tag_check,this._options.extra_liners)){if(c.print_newline(!1),!c._output.just_added_blankline())c.print_newline(!0)}if(R.is_empty_element){if(R.tag_start_char==="{"&&R.tag_check==="else"){this._tag_stack.indent_to_tag(["if","unless","each"]),R.indent_content=!0;var H=c.current_line_has_match(/{{#if/);if(!H)c.print_newline(!1)}if(R.tag_name==="!--"&&$.type===q.TAG_CLOSE&&h.is_end_tag&&R.text.indexOf(`
39
- `)===-1);else{if(!(R.is_inline_element||R.is_unformatted))c.print_newline(!1);this._calcluate_parent_multiline(c,R)}}else if(R.is_end_tag){var A=!1;if(A=R.start_tag_token&&R.start_tag_token.multiline_content,A=A||!R.is_inline_element&&!(h.is_inline_element||h.is_unformatted)&&!($.type===q.TAG_CLOSE&&R.start_tag_token===h)&&$.type!=="TK_CONTENT",R.is_content_unformatted||R.is_unformatted)A=!1;if(A)c.print_newline(!1)}else{if(R.indent_content=!R.custom_beautifier_name,R.tag_start_char==="<"){if(R.tag_name==="html")R.indent_content=this._options.indent_inner_html;else if(R.tag_name==="head")R.indent_content=this._options.indent_head_inner_html;else if(R.tag_name==="body")R.indent_content=this._options.indent_body_inner_html}if(!(R.is_inline_element||R.is_unformatted)&&($.type!=="TK_CONTENT"||R.is_content_unformatted))c.print_newline(!1);this._calcluate_parent_multiline(c,R)}};Jc.prototype._calcluate_parent_multiline=function(c,f){if(f.parent&&c._output.just_added_newline()&&!((f.is_inline_element||f.is_unformatted)&&f.parent.is_inline_element))f.parent.multiline_content=!0};var Z7=["address","article","aside","blockquote","details","div","dl","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hr","main","menu","nav","ol","p","pre","section","table","ul"],J7=["a","audio","del","ins","map","noscript","video"];Jc.prototype._do_optional_end_element=function(c){var f=null;if(c.is_empty_element||!c.is_start_tag||!c.parent)return;if(c.tag_name==="body")f=f||this._tag_stack.try_pop("head");else if(c.tag_name==="li")f=f||this._tag_stack.try_pop("li",["ol","ul","menu"]);else if(c.tag_name==="dd"||c.tag_name==="dt")f=f||this._tag_stack.try_pop("dt",["dl"]),f=f||this._tag_stack.try_pop("dd",["dl"]);else if(c.parent.tag_name==="p"&&Z7.indexOf(c.tag_name)!==-1){var R=c.parent.parent;if(!R||J7.indexOf(R.tag_name)===-1)f=f||this._tag_stack.try_pop("p")}else if(c.tag_name==="rp"||c.tag_name==="rt")f=f||this._tag_stack.try_pop("rt",["ruby","rtc"]),f=f||this._tag_stack.try_pop("rp",["ruby","rtc"]);else if(c.tag_name==="optgroup")f=f||this._tag_stack.try_pop("optgroup",["select"]);else if(c.tag_name==="option")f=f||this._tag_stack.try_pop("option",["select","datalist","optgroup"]);else if(c.tag_name==="colgroup")f=f||this._tag_stack.try_pop("caption",["table"]);else if(c.tag_name==="thead")f=f||this._tag_stack.try_pop("caption",["table"]),f=f||this._tag_stack.try_pop("colgroup",["table"]);else if(c.tag_name==="tbody"||c.tag_name==="tfoot")f=f||this._tag_stack.try_pop("caption",["table"]),f=f||this._tag_stack.try_pop("colgroup",["table"]),f=f||this._tag_stack.try_pop("thead",["table"]),f=f||this._tag_stack.try_pop("tbody",["table"]);else if(c.tag_name==="tr")f=f||this._tag_stack.try_pop("caption",["table"]),f=f||this._tag_stack.try_pop("colgroup",["table"]),f=f||this._tag_stack.try_pop("tr",["table","thead","tbody","tfoot"]);else if(c.tag_name==="th"||c.tag_name==="td")f=f||this._tag_stack.try_pop("td",["table","thead","tbody","tfoot","tr"]),f=f||this._tag_stack.try_pop("th",["table","thead","tbody","tfoot","tr"]);return c.parent=this._tag_stack.get_parser_token(),f};z7.Beautifier=Jc});var Dy=p((IB,j8)=>{var M7=Qy().Beautifier,B7=B8().Options;function X7(c,f,R,h){var $=new M7(c,f,R,h);return $.beautify()}j8.exports=X7;j8.exports.defaultOptions=function(){return new B7}});var Iy=p((Q7,lh)=>{var jy=Hy(),wy=Yy(),Ly=Dy();function xy(c,f,R,h){return R=R||jy,h=h||wy,Ly(c,f,R,h)}xy.defaultOptions=Ly.defaultOptions;Q7.js=jy;Q7.css=wy;Q7.html=xy});var Oy=p((PB,Ky)=>{function Py(c,f,R){var h=function($,H){return c.js_beautify($,H)};return h.js=c.js_beautify,h.css=f.css_beautify,h.html=R.html_beautify,h.js_beautify=c.js_beautify,h.css_beautify=f.css_beautify,h.html_beautify=R.html_beautify,h}if(typeof define==="function"&&define.amd)define(["./lib/beautify","./lib/beautify-css","./lib/beautify-html"],function(c,f,R){return Py(c,f,R)});else(function(c){var f=Iy();f.js_beautify=f.js,f.css_beautify=f.css,f.html_beautify=f.html,c.exports=Py(f,f,f)})(Ky)});class Lf{}import{readdir as PF}from"fs/promises";class U0 extends Lf{folderPath;constructor(c=`${process.env.ROOT_DIR}/storage`){super();this.folderPath=c}async put(c){let f,R;if(c instanceof Blob)f=c,R=`${Bun.randomUUIDv7()}.${c.type.split("/")[1].split(";")[0]}`;else f=c.body,R=c.name;let h=f instanceof Buffer?f:f instanceof Blob||f instanceof File?Buffer.from(await f.arrayBuffer()):"",$=`${this.folderPath}/${R}`;return await Bun.write($,h),R}async fetch(c){let f=process.env.BUCKET_NAME,R;if(typeof c==="string")R=c;else f=c.bucket??f,R=c.name;if(!R)throw Error("Object name has to be specified");let h=`${this.folderPath}/${R}`,$=Bun.file(h),H=Bun.file(h).stream(),A=new Date($.lastModified).toUTCString();return new Response(H,{headers:{"Content-Type":$.type,"Content-Length":String($.size),"Cache-Control":"private, max-age=12000, must-revalidate","Last-Modified":A}})}async list(){return await PF(this.folderPath)}}class P4 extends l{driver=new U0;boot(){}}var K4=Y(kc(),1);function KF(c){return(f)=>async(R)=>{let{request:h}=R;if(c.expectContinueHeader!==!1&&K4.HttpRequest.isInstance(h)&&h.body&&c.runtime==="node"&&c.requestHandler?.constructor?.name!=="FetchHttpHandler"){let $=!0;if(typeof c.expectContinueHeader==="number")try{$=(Number(h.headers?.["content-length"])??c.bodyLengthChecker?.(h.body)??1/0)>=c.expectContinueHeader}catch(H){}else $=!!c.expectContinueHeader;if($)h.headers.Expect="100-continue"}return f({...R,request:h})}}var OF={step:"build",tags:["SET_EXPECT_HEADER","EXPECT_HEADER"],name:"addExpectContinueMiddleware",override:!0},O4=(c)=>({applyToStack:(f)=>{f.add(KF(c),OF)}});var Qc={WHEN_SUPPORTED:"WHEN_SUPPORTED",WHEN_REQUIRED:"WHEN_REQUIRED"},Y0=Qc.WHEN_SUPPORTED,Uf={WHEN_SUPPORTED:"WHEN_SUPPORTED",WHEN_REQUIRED:"WHEN_REQUIRED"},N0=Qc.WHEN_SUPPORTED,P;(function(c){c.MD5="MD5",c.CRC32="CRC32",c.CRC32C="CRC32C",c.CRC64NVME="CRC64NVME",c.SHA1="SHA1",c.SHA256="SHA256"})(P||(P={}));var b4;(function(c){c.HEADER="header",c.TRAILER="trailer"})(b4||(b4={}));var ZR=P.CRC32;var oc;(function(c){c.ENV="env",c.CONFIG="shared config entry"})(oc||(oc={}));var xf=(c,f,R,h)=>{if(!(f in c))return;let $=c[f].toUpperCase();if(!Object.values(R).includes($))throw TypeError(`Cannot load ${h} '${f}'. Expected one of ${Object.values(R)}, got '${c[f]}'.`);return $};var bF="AWS_REQUEST_CHECKSUM_CALCULATION",qF="request_checksum_calculation",q4={environmentVariableSelector:(c)=>xf(c,bF,Qc,oc.ENV),configFileSelector:(c)=>xf(c,qF,Qc,oc.CONFIG),default:Y0};var VF="AWS_RESPONSE_CHECKSUM_VALIDATION",EF="response_checksum_validation",V4={environmentVariableSelector:(c)=>xf(c,VF,Uf,oc.ENV),configFileSelector:(c)=>xf(c,EF,Uf,oc.CONFIG),default:N0};var Pf=Y(Kf(),1),d4=Y(kc(),1),_4=Y(X0(),1);var JR=[P.CRC32,P.CRC32C,P.CRC64NVME,P.SHA1,P.SHA256],E4=[P.SHA256,P.SHA1,P.CRC32,P.CRC32C,P.CRC64NVME];var T4=(c,{requestChecksumRequired:f,requestAlgorithmMember:R,requestChecksumCalculation:h})=>{if(!R)return h===Qc.WHEN_SUPPORTED||f?ZR:void 0;if(!c[R])return;let $=c[R];if(!JR.includes($))throw Error(`The checksum algorithm "${$}" is not supported by the client. Select one of ${JR}.`);return $};var If=(c)=>c===P.MD5?"content-md5":`x-amz-checksum-${c.toLowerCase()}`;var u4=(c,f)=>{let R=c.toLowerCase();for(let h of Object.keys(f))if(R===h.toLowerCase())return!0;return!1};var g4=(c,f)=>{let R=c.toLowerCase();for(let h of Object.keys(f))if(h.toLowerCase().startsWith(R))return!0;return!1};var C4=Y(TF(),1),Z0=(c)=>c!==void 0&&typeof c!=="string"&&!ArrayBuffer.isView(c)&&!C4.isArrayBuffer(c);var m4=Y(uF(),1),{__extends:EJ,__assign:TJ,__rest:uJ,__decorate:gJ,__param:CJ,__esDecorate:mJ,__runInitializers:pJ,__propKey:sJ,__setFunctionName:iJ,__metadata:kJ,__awaiter:J0,__generator:z0,__exportStar:lJ,__createBinding:dJ,__values:S0,__read:_J,__spread:nJ,__spreadArrays:oJ,__spreadArray:aJ,__await:tJ,__asyncGenerator:rJ,__asyncDelegator:eJ,__asyncValues:c5,__makeTemplateObject:f5,__importStar:R5,__importDefault:h5,__classPrivateFieldGet:$5,__classPrivateFieldSet:H5,__classPrivateFieldIn:A5,__addDisposableResource:G5,__disposeResources:y5,__rewriteRelativeImportExtension:F5}=m4.default;import{Buffer as p4}from"buffer";var s4=(c,f)=>{if(typeof c!=="string")throw TypeError(`The "input" argument must be of type string. Received type ${typeof c} (${c})`);return f?p4.from(c,f):p4.from(c)};var Z1=(c)=>{let f=s4(c,"utf8");return new Uint8Array(f.buffer,f.byteOffset,f.byteLength/Uint8Array.BYTES_PER_ELEMENT)};var gF=typeof Buffer<"u"&&Buffer.from?function(c){return Buffer.from(c,"utf8")}:Z1;function zR(c){if(c instanceof Uint8Array)return c;if(typeof c==="string")return gF(c);if(ArrayBuffer.isView(c))return new Uint8Array(c.buffer,c.byteOffset,c.byteLength/Uint8Array.BYTES_PER_ELEMENT);return new Uint8Array(c)}function SR(c){if(typeof c==="string")return c.length===0;return c.byteLength===0}function Yf(c){return new Uint8Array([(c&4278190080)>>24,(c&16711680)>>16,(c&65280)>>8,c&255])}function MR(c){if(!Uint32Array.from){var f=new Uint32Array(c.length),R=0;while(R<c.length)f[R]=c[R],R+=1;return f}return Uint32Array.from(c)}var z1=function(){function c(){this.crc32c=new J1}return c.prototype.update=function(f){if(SR(f))return;this.crc32c.update(zR(f))},c.prototype.digest=function(){return J0(this,void 0,void 0,function(){return z0(this,function(f){return[2,Yf(this.crc32c.digest())]})})},c.prototype.reset=function(){this.crc32c=new J1},c}();var J1=function(){function c(){this.checksum=4294967295}return c.prototype.update=function(f){var R,h;try{for(var $=S0(f),H=$.next();!H.done;H=$.next()){var A=H.value;this.checksum=this.checksum>>>8^mF[(this.checksum^A)&255]}}catch(G){R={error:G}}finally{try{if(H&&!H.done&&(h=$.return))h.call($)}finally{if(R)throw R.error}}return this},c.prototype.digest=function(){return(this.checksum^4294967295)>>>0},c}();var CF=[0,4067132163,3778769143,324072436,3348797215,904991772,648144872,3570033899,2329499855,2024987596,1809983544,2575936315,1296289744,3207089363,2893594407,1578318884,274646895,3795141740,4049975192,51262619,3619967088,632279923,922689671,3298075524,2592579488,1760304291,2075979607,2312596564,1562183871,2943781820,3156637768,1313733451,549293790,3537243613,3246849577,871202090,3878099393,357341890,102525238,4101499445,2858735121,1477399826,1264559846,3107202533,1845379342,2677391885,2361733625,2125378298,820201905,3263744690,3520608582,598981189,4151959214,85089709,373468761,3827903834,3124367742,1213305469,1526817161,2842354314,2107672161,2412447074,2627466902,1861252501,1098587580,3004210879,2688576843,1378610760,2262928035,1955203488,1742404180,2511436119,3416409459,969524848,714683780,3639785095,205050476,4266873199,3976438427,526918040,1361435347,2739821008,2954799652,1114974503,2529119692,1691668175,2005155131,2247081528,3690758684,697762079,986182379,3366744552,476452099,3993867776,4250756596,255256311,1640403810,2477592673,2164122517,1922457750,2791048317,1412925310,1197962378,3037525897,3944729517,427051182,170179418,4165941337,746937522,3740196785,3451792453,1070968646,1905808397,2213795598,2426610938,1657317369,3053634322,1147748369,1463399397,2773627110,4215344322,153784257,444234805,3893493558,1021025245,3467647198,3722505002,797665321,2197175160,1889384571,1674398607,2443626636,1164749927,3070701412,2757221520,1446797203,137323447,4198817972,3910406976,461344835,3484808360,1037989803,781091935,3705997148,2460548119,1623424788,1939049696,2180517859,1429367560,2807687179,3020495871,1180866812,410100952,3927582683,4182430767,186734380,3756733383,763408580,1053836080,3434856499,2722870694,1344288421,1131464017,2971354706,1708204729,2545590714,2229949006,1988219213,680717673,3673779818,3383336350,1002577565,4010310262,493091189,238226049,4233660802,2987750089,1082061258,1395524158,2705686845,1972364758,2279892693,2494862625,1725896226,952904198,3399985413,3656866545,731699698,4283874585,222117402,510512622,3959836397,3280807620,837199303,582374963,3504198960,68661723,4135334616,3844915500,390545967,1230274059,3141532936,2825850620,1510247935,2395924756,2091215383,1878366691,2644384480,3553878443,565732008,854102364,3229815391,340358836,3861050807,4117890627,119113024,1493875044,2875275879,3090270611,1247431312,2660249211,1828433272,2141937292,2378227087,3811616794,291187481,34330861,4032846830,615137029,3603020806,3314634738,939183345,1776939221,2609017814,2295496738,2058945313,2926798794,1545135305,1330124605,3173225534,4084100981,17165430,307568514,3762199681,888469610,3332340585,3587147933,665062302,2042050490,2346497209,2559330125,1793573966,3190661285,1279665062,1595330642,2910671697],mF=MR(CF);var pF=()=>{let f=[,,,,,,,,];for(let R=0;R<8;R++){let h=Array(512);for(let $=0;$<256;$++){let H=BigInt($);for(let A=0;A<8*(R+1);A++)if(H&1n)H=H>>1n^0x9a6c9329ac4bc9b5n;else H=H>>1n;h[$*2]=Number(H>>32n&0xffffffffn),h[$*2+1]=Number(H&0xffffffffn)}f[R]=new Uint32Array(h)}return f},S1,BR,M1,B1,X1,Q1,D1,j1,w1,sF=()=>{if(!S1)S1=pF(),[BR,M1,B1,X1,Q1,D1,j1,w1]=S1};class L1{c1=0;c2=0;constructor(){sF(),this.reset()}update(c){let f=c.length,R=0,h=this.c1,$=this.c2;while(R+8<=f){let H=(($^c[R++])&255)<<1,A=(($>>>8^c[R++])&255)<<1,G=(($>>>16^c[R++])&255)<<1,y=(($>>>24^c[R++])&255)<<1,F=((h^c[R++])&255)<<1,U=((h>>>8^c[R++])&255)<<1,N=((h>>>16^c[R++])&255)<<1,z=((h>>>24^c[R++])&255)<<1;h=w1[H]^j1[A]^D1[G]^Q1[y]^X1[F]^B1[U]^M1[N]^BR[z],$=w1[H+1]^j1[A+1]^D1[G+1]^Q1[y+1]^X1[F+1]^B1[U+1]^M1[N+1]^BR[z+1]}while(R<f){let H=(($^c[R])&255)<<1;$=($>>>8|(h&255)<<24)>>>0,h=h>>>8^BR[H],$^=BR[H+1],R++}this.c1=h,this.c2=$}async digest(){let c=this.c1^4294967295,f=this.c2^4294967295;return new Uint8Array([c>>>24,c>>>16&255,c>>>8&255,c&255,f>>>24,f>>>16&255,f>>>8&255,f&255])}reset(){this.c1=4294967295,this.c2=4294967295}}var x1={CrtCrc64Nvme:null};var I1=function(){function c(){this.crc32=new Nf}return c.prototype.update=function(f){if(SR(f))return;this.crc32.update(zR(f))},c.prototype.digest=function(){return J0(this,void 0,void 0,function(){return z0(this,function(f){return[2,Yf(this.crc32.digest())]})})},c.prototype.reset=function(){this.crc32=new Nf},c}();var Nf=function(){function c(){this.checksum=4294967295}return c.prototype.update=function(f){var R,h;try{for(var $=S0(f),H=$.next();!H.done;H=$.next()){var A=H.value;this.checksum=this.checksum>>>8^kF[(this.checksum^A)&255]}}catch(G){R={error:G}}finally{try{if(H&&!H.done&&(h=$.return))h.call($)}finally{if(R)throw R.error}}return this},c.prototype.digest=function(){return(this.checksum^4294967295)>>>0},c}();var iF=[0,1996959894,3993919788,2567524794,124634137,1886057615,3915621685,2657392035,249268274,2044508324,3772115230,2547177864,162941995,2125561021,3887607047,2428444049,498536548,1789927666,4089016648,2227061214,450548861,1843258603,4107580753,2211677639,325883990,1684777152,4251122042,2321926636,335633487,1661365465,4195302755,2366115317,997073096,1281953886,3579855332,2724688242,1006888145,1258607687,3524101629,2768942443,901097722,1119000684,3686517206,2898065728,853044451,1172266101,3705015759,2882616665,651767980,1373503546,3369554304,3218104598,565507253,1454621731,3485111705,3099436303,671266974,1594198024,3322730930,2970347812,795835527,1483230225,3244367275,3060149565,1994146192,31158534,2563907772,4023717930,1907459465,112637215,2680153253,3904427059,2013776290,251722036,2517215374,3775830040,2137656763,141376813,2439277719,3865271297,1802195444,476864866,2238001368,4066508878,1812370925,453092731,2181625025,4111451223,1706088902,314042704,2344532202,4240017532,1658658271,366619977,2362670323,4224994405,1303535960,984961486,2747007092,3569037538,1256170817,1037604311,2765210733,3554079995,1131014506,879679996,2909243462,3663771856,1141124467,855842277,2852801631,3708648649,1342533948,654459306,3188396048,3373015174,1466479909,544179635,3110523913,3462522015,1591671054,702138776,2966460450,3352799412,1504918807,783551873,3082640443,3233442989,3988292384,2596254646,62317068,1957810842,3939845945,2647816111,81470997,1943803523,3814918930,2489596804,225274430,2053790376,3826175755,2466906013,167816743,2097651377,4027552580,2265490386,503444072,1762050814,4150417245,2154129355,426522225,1852507879,4275313526,2312317920,282753626,1742555852,4189708143,2394877945,397917763,1622183637,3604390888,2714866558,953729732,1340076626,3518719985,2797360999,1068828381,1219638859,3624741850,2936675148,906185462,1090812512,3747672003,2825379669,829329135,1181335161,3412177804,3160834842,628085408,1382605366,3423369109,3138078467,570562233,1426400815,3317316542,2998733608,733239954,1555261956,3268935591,3050360625,752459403,1541320221,2607071920,3965973030,1969922972,40735498,2617837225,3943577151,1913087877,83908371,2512341634,3803740692,2075208622,213261112,2463272603,3855990285,2094854071,198958881,2262029012,4057260610,1759359992,534414190,2176718541,4139329115,1873836001,414664567,2282248934,4279200368,1711684554,285281116,2405801727,4167216745,1634467795,376229701,2685067896,3608007406,1308918612,956543938,2808555105,3495958263,1231636301,1047427035,2932959818,3654703836,1088359270,936918000,2847714899,3736837829,1202900863,817233897,3183342108,3401237130,1404277552,615818150,3134207493,3453421203,1423857449,601450431,3009837614,3294710456,1567103746,711928724,3020668471,3272380065,1510334235,755167117],kF=MR(iF);import*as P1 from"zlib";class i4{checksum=0;update(c){this.checksum=P1.crc32(c,this.checksum)}async digest(){return Yf(this.checksum)}reset(){this.checksum=0}}var k4=()=>{if(typeof P1.crc32>"u")return I1;return i4};var M0=(c,f)=>{switch(c){case P.MD5:return f.md5;case P.CRC32:return k4();case P.CRC32C:return z1;case P.CRC64NVME:if(typeof x1.CrtCrc64Nvme!=="function")return L1;return x1.CrtCrc64Nvme;case P.SHA1:return f.sha1;case P.SHA256:return f.sha256;default:throw Error(`Unsupported checksum algorithm: ${c}`)}};var l4=Y(K1(),1),B0=(c,f)=>{let R=new c;return R.update(l4.toUint8Array(f||"")),R.digest()};var n4={name:"flexibleChecksumsMiddleware",step:"build",tags:["BODY_CHECKSUM"],override:!0},o4=(c,f)=>(R,h)=>async($)=>{if(!d4.HttpRequest.isInstance($.request))return R($);if(g4("x-amz-checksum-",$.request.headers))return R($);let{request:H,input:A}=$,{body:G,headers:y}=H,{base64Encoder:F,streamHasher:U}=c,{requestChecksumRequired:N,requestAlgorithmMember:z}=f,Z=await c.requestChecksumCalculation(),j=z?.name,V=z?.httpHeader;if(j&&!A[j]){if(Z===Qc.WHEN_SUPPORTED||N){if(A[j]=ZR,V)y[V]=ZR}}let a=T4(A,{requestChecksumRequired:N,requestAlgorithmMember:z?.name,requestChecksumCalculation:Z}),Pc=G,Kc=y;if(a){switch(a){case P.CRC32:Pf.setFeature(h,"FLEXIBLE_CHECKSUMS_REQ_CRC32","U");break;case P.CRC32C:Pf.setFeature(h,"FLEXIBLE_CHECKSUMS_REQ_CRC32C","V");break;case P.CRC64NVME:Pf.setFeature(h,"FLEXIBLE_CHECKSUMS_REQ_CRC64","W");break;case P.SHA1:Pf.setFeature(h,"FLEXIBLE_CHECKSUMS_REQ_SHA1","X");break;case P.SHA256:Pf.setFeature(h,"FLEXIBLE_CHECKSUMS_REQ_SHA256","Y");break}let Yc=If(a),wf=M0(a,c);if(Z0(G)){let{getAwsChunkedEncodingStream:NR,bodyLengthChecker:N1}=c;Pc=NR(typeof c.requestStreamBufferSize==="number"&&c.requestStreamBufferSize>=8192?_4.createBufferedReadable(G,c.requestStreamBufferSize,h.logger):G,{base64Encoder:F,bodyLengthChecker:N1,checksumLocationName:Yc,checksumAlgorithmFn:wf,streamHasher:U}),Kc={...y,"content-encoding":y["content-encoding"]?`${y["content-encoding"]},aws-chunked`:"aws-chunked","transfer-encoding":"chunked","x-amz-decoded-content-length":y["content-length"],"x-amz-content-sha256":"STREAMING-UNSIGNED-PAYLOAD-TRAILER","x-amz-trailer":Yc},delete Kc["content-length"]}else if(!u4(Yc,y)){let NR=await B0(wf,G);Kc={...y,[Yc]:F(NR)}}}try{return await R({...$,request:{...H,headers:Kc,body:Pc}})}catch(Yc){if(Yc instanceof Error&&Yc.name==="InvalidChunkSizeError")try{if(!Yc.message.endsWith("."))Yc.message+=".";Yc.message+=" Set [requestStreamBufferSize=number e.g. 65_536] in client constructor to instruct AWS SDK to buffer your input stream."}catch(wf){}throw Yc}};var XR=Y(Kf(),1);var a4={name:"flexibleChecksumsInputMiddleware",toMiddleware:"serializerMiddleware",relation:"before",tags:["BODY_CHECKSUM"],override:!0},t4=(c,f)=>(R,h)=>async($)=>{let H=$.input,{requestValidationModeMember:A}=f,G=await c.requestChecksumCalculation(),y=await c.responseChecksumValidation();switch(G){case Qc.WHEN_REQUIRED:XR.setFeature(h,"FLEXIBLE_CHECKSUMS_REQ_WHEN_REQUIRED","a");break;case Qc.WHEN_SUPPORTED:XR.setFeature(h,"FLEXIBLE_CHECKSUMS_REQ_WHEN_SUPPORTED","Z");break}switch(y){case Uf.WHEN_REQUIRED:XR.setFeature(h,"FLEXIBLE_CHECKSUMS_RES_WHEN_REQUIRED","c");break;case Uf.WHEN_SUPPORTED:XR.setFeature(h,"FLEXIBLE_CHECKSUMS_RES_WHEN_SUPPORTED","b");break}if(A&&!H[A]){if(y===Uf.WHEN_SUPPORTED)H[A]="ENABLED"}return R($)};var RH=Y(kc(),1);var Q0=(c=[])=>{let f=[];for(let R of E4){if(!c.includes(R)||!JR.includes(R))continue;f.push(R)}return f};var r4=(c)=>{let f=c.lastIndexOf("-");if(f!==-1){let R=c.slice(f+1);if(!R.startsWith("0")){let h=parseInt(R,10);if(!isNaN(h)&&h>=1&&h<=1e4)return!0}}return!1};var cH=Y(X0(),1);var e4=async(c,{checksumAlgorithmFn:f,base64Encoder:R})=>R(await B0(f,c));var fH=async(c,{config:f,responseAlgorithms:R,logger:h})=>{let $=Q0(R),{body:H,headers:A}=c;for(let G of $){let y=If(G),F=A[y];if(F){let U;try{U=M0(G,f)}catch(Z){if(G===P.CRC64NVME){h?.warn(`Skipping ${P.CRC64NVME} checksum validation: ${Z.message}`);continue}throw Z}let{base64Encoder:N}=f;if(Z0(H)){c.body=cH.createChecksumStream({expectedChecksum:F,checksumSourceLocation:y,checksum:new U,source:H,base64Encoder:N});return}let z=await e4(H,{checksumAlgorithmFn:U,base64Encoder:N});if(z===F)break;throw Error(`Checksum mismatch: expected "${z}" but received "${F}" in response header "${y}".`)}}};var hH={name:"flexibleChecksumsResponseMiddleware",toMiddleware:"deserializerMiddleware",relation:"after",tags:["BODY_CHECKSUM"],override:!0},$H=(c,f)=>(R,h)=>async($)=>{if(!RH.HttpRequest.isInstance($.request))return R($);let H=$.input,A=await R($),G=A.response,{requestValidationModeMember:y,responseAlgorithms:F}=f;if(y&&H[y]==="ENABLED"){let{clientName:U,commandName:N}=h;if(U==="S3Client"&&N==="GetObjectCommand"&&Q0(F).every((Z)=>{let j=If(Z),V=G.headers[j];return!V||r4(V)}))return A;await fH(G,{config:c,responseAlgorithms:F,logger:h.logger})}return A};var D0=(c,f)=>({applyToStack:(R)=>{R.add(o4(c,f),n4),R.addRelativeTo(t4(c,f),a4),R.addRelativeTo($H(c,f),hH)}});var O1=Y(b1(),1);var HH=(c)=>{let{requestChecksumCalculation:f,responseChecksumValidation:R,requestStreamBufferSize:h}=c;return Object.assign(c,{requestChecksumCalculation:O1.normalizeProvider(f??Y0),responseChecksumValidation:O1.normalizeProvider(R??N0),requestStreamBufferSize:Number(h??0)})};var Fh=Y(Ov(),1),aG=Y(bv(),1),tG=Y(qv(),1);var AH=Y(kc(),1),GH=Y(Oc(),1),lF="content-length",dF="x-amz-decoded-content-length";function _F(){return(c,f)=>async(R)=>{let{request:h}=R;if(AH.HttpRequest.isInstance(h)){if(!(lF in h.headers)&&!(dF in h.headers))if(typeof f?.logger?.warn==="function"&&!(f.logger instanceof GH.NoOpLogger))f.logger.warn("Are you using a Stream of unknown length as the Body of a PutObject request? Consider using Upload instead from @aws-sdk/lib-storage.");else console.warn("Are you using a Stream of unknown length as the Body of a PutObject request? Consider using Upload instead from @aws-sdk/lib-storage.")}return c({...R})}}var nF={step:"finalizeRequest",tags:["CHECK_CONTENT_LENGTH_HEADER"],name:"getCheckContentLengthHeaderPlugin",override:!0},yH=(c)=>({applyToStack:(f)=>{f.add(_F(),nF)}});var FH=(c)=>{return(f,R)=>async(h)=>{let $=await c.region(),H=c.region,A=()=>{};if(R.__s3RegionRedirect)Object.defineProperty(c,"region",{writable:!1,value:async()=>{return R.__s3RegionRedirect}}),A=()=>Object.defineProperty(c,"region",{writable:!0,value:H});try{let G=await f(h);if(R.__s3RegionRedirect){A();let y=await c.region();if($!==y)throw Error("Region was not restored following S3 region redirect.")}return G}catch(G){throw A(),G}}},WH={tags:["REGION_REDIRECT","S3"],name:"regionRedirectEndpointMiddleware",override:!0,relation:"before",toMiddleware:"endpointV2Middleware"};function oF(c){return(f,R)=>async(h)=>{try{return await f(h)}catch($){if(c.followRegionRedirects){let H=$?.$metadata?.httpStatusCode,A=R.commandName==="HeadBucketCommand",G=$?.$response?.headers?.["x-amz-bucket-region"];if(G){if(H===301||H===400&&($?.name==="IllegalLocationConstraintException"||A)){try{let y=G;R.logger?.debug(`Redirecting from ${await c.region()} to ${y}`),R.__s3RegionRedirect=y}catch(y){throw Error("Region redirect failed: "+y)}return f(h)}}}throw $}}}var aF={step:"initialize",tags:["REGION_REDIRECT","S3"],name:"regionRedirectMiddleware",override:!0},vH=(c)=>({applyToStack:(f)=>{f.add(oF(c),aF),f.addRelativeTo(FH(c),WH)}});var UH=Y(kc(),1),YH=Y(Oc(),1),tF=(c)=>{return(f,R)=>async(h)=>{let $=await f(h),{response:H}=$;if(UH.HttpResponse.isInstance(H)){if(H.headers.expires){H.headers.expiresstring=H.headers.expires;try{YH.parseRfc7231DateTime(H.headers.expires)}catch(A){R.logger?.warn(`AWS SDK Warning for ${R.clientName}::${R.commandName} response parsing (${H.headers.expires}): ${A}`),delete H.headers.expires}}}return $}},rF={tags:["S3"],name:"s3ExpiresMiddleware",override:!0,relation:"after",toMiddleware:"deserializerMiddleware"},NH=(c)=>({applyToStack:(f)=>{f.addRelativeTo(tF(c),rF)}});class j0{data;lastPurgeTime=Date.now();static EXPIRED_CREDENTIAL_PURGE_INTERVAL_MS=30000;constructor(c={}){this.data=c}get(c){let f=this.data[c];if(!f)return;return f}set(c,f){return this.data[c]=f,f}delete(c){delete this.data[c]}async purgeExpired(){let c=Date.now();if(this.lastPurgeTime+j0.EXPIRED_CREDENTIAL_PURGE_INTERVAL_MS>c)return;for(let f in this.data){let R=this.data[f];if(!R.isRefreshing){let h=await R.identity;if(h.expiration){if(h.expiration.getTime()<c)delete this.data[f]}}}}}class QR{_identity;isRefreshing;accessed;constructor(c,f=!1,R=Date.now()){this._identity=c,this.isRefreshing=f,this.accessed=R}get identity(){return this.accessed=Date.now(),this._identity}}class DR{createSessionFn;cache;static REFRESH_WINDOW_MS=60000;constructor(c,f=new j0){this.createSessionFn=c,this.cache=f}async getS3ExpressIdentity(c,f){let R=f.Bucket,{cache:h}=this,$=h.get(R);if($)return $.identity.then((H)=>{if((H.expiration?.getTime()??0)<Date.now())return h.set(R,new QR(this.getIdentity(R))).identity;if((H.expiration?.getTime()??0)<Date.now()+DR.REFRESH_WINDOW_MS&&!$.isRefreshing)$.isRefreshing=!0,this.getIdentity(R).then((y)=>{h.set(R,new QR(Promise.resolve(y)))});return H});return h.set(R,new QR(this.getIdentity(R))).identity}async getIdentity(c){await this.cache.purgeExpired().catch((h)=>{console.warn(`Error while clearing expired entries in S3ExpressIdentityCache:
40
- `+h)});let f=await this.createSessionFn(c);if(!f.Credentials?.AccessKeyId||!f.Credentials?.SecretAccessKey)throw Error("s3#createSession response credential missing AccessKeyId or SecretAccessKey.");return{accessKeyId:f.Credentials.AccessKeyId,secretAccessKey:f.Credentials.SecretAccessKey,sessionToken:f.Credentials.SessionToken,expiration:f.Credentials.Expiration?new Date(f.Credentials.Expiration):void 0}}}var QH=Y(XH(),1);var Of=Y(ZH(),1),JH="Directory",zH="S3Express",SH="sigv4-s3express",w0="X-Amz-S3session-Token",jR=w0.toLowerCase(),eF="AWS_S3_DISABLE_EXPRESS_SESSION_AUTH",cW="s3_disable_express_session_auth",q1={environmentVariableSelector:(c)=>Of.booleanSelector(c,eF,Of.SelectorType.ENV),configFileSelector:(c)=>Of.booleanSelector(c,cW,Of.SelectorType.CONFIG),default:!1};class L0 extends QH.SignatureV4{async signWithCredentials(c,f,R){let h=MH(f);c.headers[jR]=f.sessionToken;let $=this;return BH($,h),$.signRequest(c,R??{})}async presignWithCredentials(c,f,R){let h=MH(f);return delete c.headers[jR],c.headers[w0]=f.sessionToken,c.query=c.query??{},c.query[w0]=f.sessionToken,BH(this,h),this.presign(c,R)}}function MH(c){return{accessKeyId:c.accessKeyId,secretAccessKey:c.secretAccessKey,expiration:c.expiration}}function BH(c,f){let R=setTimeout(()=>{throw Error("SignatureV4S3Express credential override was created but not called.")},10),h=c.credentialProvider,$=()=>{return clearTimeout(R),c.credentialProvider=h,Promise.resolve(f)};c.credentialProvider=$}var DH=Y(Kf(),1),jH=Y(kc(),1);var wH=(c)=>{return(f,R)=>async(h)=>{if(R.endpointV2){let $=R.endpointV2,H=$.properties?.authSchemes?.[0]?.name===SH;if($.properties?.backend===zH||$.properties?.bucketType===JH)DH.setFeature(R,"S3_EXPRESS_BUCKET","J"),R.isS3ExpressBucket=!0;if(H){let G=h.input.Bucket;if(G){let y=await c.s3ExpressIdentityProvider.getS3ExpressIdentity(await c.credentials(),{Bucket:G});if(R.s3ExpressIdentity=y,jH.HttpRequest.isInstance(h.request)&&y.sessionToken)h.request.headers[jR]=y.sessionToken}}}return f(h)}},LH={name:"s3ExpressMiddleware",step:"build",tags:["S3","S3_EXPRESS"],override:!0},V1=(c)=>({applyToStack:(f)=>{f.add(wH(c),LH)}});var PH=Y(IH(),1),KH=Y(kc(),1);var OH=Y(b1(),1);var xH=async(c,f,R,h)=>{let $=await h.signWithCredentials(R,c,{});if($.headers["X-Amz-Security-Token"]||$.headers["x-amz-security-token"])throw Error("X-Amz-Security-Token must not be set for s3-express requests.");return $};var fW=(c)=>(f)=>{throw f},RW=(c,f)=>{};var bH=(c)=>(f,R)=>async(h)=>{if(!KH.HttpRequest.isInstance(h.request))return f(h);let H=OH.getSmithyContext(R).selectedHttpAuthScheme;if(!H)throw Error("No HttpAuthScheme was selected: unable to sign request");let{httpAuthOption:{signingProperties:A={}},identity:G,signer:y}=H,F;if(R.s3ExpressIdentity)F=await xH(R.s3ExpressIdentity,A,h.request,await c.signer());else F=await y.sign(h.request,G,A);let U=await f({...h,request:F}).catch((y.errorHandler||fW)(A));return(y.successHandler||RW)(U.response,A),U},E1=(c)=>({applyToStack:(f)=>{f.addRelativeTo(bH(c),PH.httpSigningMiddlewareOptions)}});var qH=(c,{session:f})=>{let[R,h]=f,{forcePathStyle:$,useAccelerateEndpoint:H,disableMultiregionAccessPoints:A,followRegionRedirects:G,s3ExpressIdentityProvider:y,bucketEndpoint:F,expectContinueHeader:U}=c;return Object.assign(c,{forcePathStyle:$??!1,useAccelerateEndpoint:H??!1,disableMultiregionAccessPoints:A??!1,followRegionRedirects:G??!1,s3ExpressIdentityProvider:y??new DR(async(N)=>R().send(new h({Bucket:N}))),bucketEndpoint:F??!1,expectContinueHeader:U??2097152})};var VH=Y(kc(),1),x0=Y(X0(),1),hW={CopyObjectCommand:!0,UploadPartCopyCommand:!0,CompleteMultipartUploadCommand:!0},$W=3000,HW=(c)=>(f,R)=>async(h)=>{let $=await f(h),{response:H}=$;if(!VH.HttpResponse.isInstance(H))return $;let{statusCode:A,body:G}=H;if(A<200||A>=300)return $;if(!(typeof G?.stream==="function"||typeof G?.pipe==="function"||typeof G?.tee==="function"))return $;let F=G,U=G;if(G&&typeof G==="object"&&!(G instanceof Uint8Array))[F,U]=await x0.splitStream(G);H.body=U;let N=await AW(F,{streamCollector:async(Z)=>{return x0.headStream(Z,$W)}});if(typeof F?.destroy==="function")F.destroy();let z=c.utf8Encoder(N.subarray(N.length-16));if(N.length===0&&hW[R.commandName]){let Z=Error("S3 aborted request");throw Z.name="InternalError",Z}if(z&&z.endsWith("</Error>"))H.statusCode=400;return $},AW=(c=new Uint8Array,f)=>{if(c instanceof Uint8Array)return Promise.resolve(c);return f.streamCollector(c)||Promise.resolve(new Uint8Array)},GW={relation:"after",toMiddleware:"deserializerMiddleware",tags:["THROW_200_EXCEPTIONS","S3"],name:"throw200ExceptionsMiddleware",override:!0},bf=(c)=>({applyToStack:(f)=>{f.addRelativeTo(HW(c),GW)}});var EH=(c)=>typeof c==="string"&&c.indexOf("arn:")===0&&c.split(":").length>=6;function TH(c){return(f,R)=>async(h)=>{if(c.bucketEndpoint){let $=R.endpointV2;if($){let H=h.input.Bucket;if(typeof H==="string")try{let A=new URL(H);R.endpointV2={...$,url:A}}catch(A){let G=`@aws-sdk/middleware-sdk-s3: bucketEndpoint=true was set but Bucket=${H} could not be parsed as URL.`;if(R.logger?.constructor?.name==="NoOpLogger")console.warn(G);else R.logger?.warn?.(G);throw A}}}return f(h)}}var uH={name:"bucketEndpointMiddleware",override:!0,relation:"after",toMiddleware:"endpointV2Middleware"};function yW({bucketEndpoint:c}){return(f)=>async(R)=>{let{input:{Bucket:h}}=R;if(!c&&typeof h==="string"&&!EH(h)&&h.indexOf("/")>=0){let $=Error(`Bucket name shouldn't contain '/', received '${h}'`);throw $.name="InvalidBucketName",$}return f({...R})}}var FW={step:"initialize",tags:["VALIDATE_BUCKET_NAME"],name:"validateBucketNameMiddleware",override:!0},gH=(c)=>({applyToStack:(f)=>{f.add(yW(c),FW),f.addRelativeTo(TH(c),uH)}});var Wh=Y(Vv(),1),rG=Y(pG(),1),sf=Y(IH(),1),eG=Y(hG(),1);var CH=(c)=>Object.assign(c,{eventStreamMarshaller:c.eventStreamSerdeProvider(c)});var c6=Y(Ev(),1),f6=Y(uf(),1),vh=Y(sG(),1),R6=Y(Oc(),1);var q0=Y(Kf(),1);var T1=Y(XH(),1);var wR={CrtSignerV4:null};class LR{sigv4aSigner;sigv4Signer;signerOptions;static sigv4aDependency(){if(typeof wR.CrtSignerV4==="function")return"crt";else if(typeof T1.signatureV4aContainer.SignatureV4a==="function")return"js";return"none"}constructor(c){this.sigv4Signer=new L0(c),this.signerOptions=c}async sign(c,f={}){if(f.signingRegion==="*")return this.getSigv4aSigner().sign(c,f);return this.sigv4Signer.sign(c,f)}async signWithCredentials(c,f,R={}){if(R.signingRegion==="*"){let h=this.getSigv4aSigner(),$=wR.CrtSignerV4;if($&&h instanceof $)return h.signWithCredentials(c,f,R);else throw Error(`signWithCredentials with signingRegion '*' is only supported when using the CRT dependency @aws-sdk/signature-v4-crt. Please check whether you have installed the "@aws-sdk/signature-v4-crt" package explicitly. You must also register the package by calling [require("@aws-sdk/signature-v4-crt");] or an ESM equivalent such as [import "@aws-sdk/signature-v4-crt";]. For more information please go to https://github.com/aws/aws-sdk-js-v3#functionality-requiring-aws-common-runtime-crt`)}return this.sigv4Signer.signWithCredentials(c,f,R)}async presign(c,f={}){if(f.signingRegion==="*"){let R=this.getSigv4aSigner(),h=wR.CrtSignerV4;if(h&&R instanceof h)return R.presign(c,f);else throw Error(`presign with signingRegion '*' is only supported when using the CRT dependency @aws-sdk/signature-v4-crt. Please check whether you have installed the "@aws-sdk/signature-v4-crt" package explicitly. You must also register the package by calling [require("@aws-sdk/signature-v4-crt");] or an ESM equivalent such as [import "@aws-sdk/signature-v4-crt";]. For more information please go to https://github.com/aws/aws-sdk-js-v3#functionality-requiring-aws-common-runtime-crt`)}return this.sigv4Signer.presign(c,f)}async presignWithCredentials(c,f,R={}){if(R.signingRegion==="*")throw Error("Method presignWithCredentials is not supported for [signingRegion=*].");return this.sigv4Signer.presignWithCredentials(c,f,R)}getSigv4aSigner(){if(!this.sigv4aSigner){let c=wR.CrtSignerV4,f=T1.signatureV4aContainer.SignatureV4a;if(this.signerOptions.runtime==="node"){if(!c&&!f)throw Error("Neither CRT nor JS SigV4a implementation is available. Please load either @aws-sdk/signature-v4-crt or @aws-sdk/signature-v4a. For more information please go to https://github.com/aws/aws-sdk-js-v3#functionality-requiring-aws-common-runtime-crt");if(c&&typeof c==="function")this.sigv4aSigner=new c({...this.signerOptions,signingAlgorithm:1});else if(f&&typeof f==="function")this.sigv4aSigner=new f({...this.signerOptions});else throw Error("Available SigV4a implementation is not a valid constructor. Please ensure you've properly imported @aws-sdk/signature-v4-crt or @aws-sdk/signature-v4a.For more information please go to https://github.com/aws/aws-sdk-js-v3#functionality-requiring-aws-common-runtime-crt")}else{if(!f||typeof f!=="function")throw Error("JS SigV4a implementation is not available or not a valid constructor. Please check whether you have installed the @aws-sdk/signature-v4a package explicitly. The CRT implementation is not available for browsers. You must also register the package by calling [require('@aws-sdk/signature-v4a');] or an ESM equivalent such as [import '@aws-sdk/signature-v4a';]. For more information please go to https://github.com/aws/aws-sdk-js-v3#using-javascript-non-crt-implementation-of-sigv4a");this.sigv4aSigner=new f({...this.signerOptions})}}return this.sigv4aSigner}}var nA=Y(uf(),1),gf=Y(b1(),1);var _A=Y(BW(),1),Tf=Y(MW(),1);var qf={["required"]:!1,["type"]:"string"},Vf={["required"]:!0,default:!1,["type"]:"boolean"},xR={["required"]:!1,["type"]:"boolean"},jc={["fn"]:"booleanEquals",["argv"]:[{["ref"]:"Accelerate"},!0]},C={["fn"]:"booleanEquals",["argv"]:[{["ref"]:"UseFIPS"},!0]},T={["fn"]:"booleanEquals",["argv"]:[{["ref"]:"UseDualStack"},!0]},k={["fn"]:"isSet",["argv"]:[{["ref"]:"Endpoint"}]},CA={["fn"]:"aws.partition",["argv"]:[{["ref"]:"Region"}],["assign"]:"partitionResult"},mH={["fn"]:"stringEquals",["argv"]:[{["fn"]:"getAttr",["argv"]:[{["ref"]:"partitionResult"},"name"]},"aws-cn"]},PR={["fn"]:"isSet",["argv"]:[{["ref"]:"Bucket"}]},I={["ref"]:"Bucket"},pH={["conditions"]:[jc],["error"]:"S3Express does not support S3 Accelerate.",["type"]:"error"},sH={["conditions"]:[k,{["fn"]:"parseURL",["argv"]:[{["ref"]:"Endpoint"}],["assign"]:"url"}],["rules"]:[{["conditions"]:[{["fn"]:"isSet",["argv"]:[{["ref"]:"DisableS3ExpressSessionAuth"}]},{["fn"]:"booleanEquals",["argv"]:[{["ref"]:"DisableS3ExpressSessionAuth"},!0]}],["rules"]:[{["conditions"]:[{["fn"]:"booleanEquals",["argv"]:[{["fn"]:"getAttr",["argv"]:[{["ref"]:"url"},"isIp"]},!0]}],["rules"]:[{["conditions"]:[{["fn"]:"uriEncode",["argv"]:[I],["assign"]:"uri_encoded_bucket"}],["rules"]:[{["endpoint"]:{["url"]:"{url#scheme}://{url#authority}/{uri_encoded_bucket}{url#path}",["properties"]:{["backend"]:"S3Express",["authSchemes"]:[{["disableDoubleEncoding"]:!0,["name"]:"sigv4",["signingName"]:"s3express",["signingRegion"]:"{Region}"}]},["headers"]:{}},["type"]:"endpoint"}],["type"]:"tree"}],["type"]:"tree"},{["conditions"]:[{["fn"]:"aws.isVirtualHostableS3Bucket",["argv"]:[I,!1]}],["rules"]:[{["endpoint"]:{["url"]:"{url#scheme}://{Bucket}.{url#authority}{url#path}",["properties"]:{["backend"]:"S3Express",["authSchemes"]:[{["disableDoubleEncoding"]:!0,["name"]:"sigv4",["signingName"]:"s3express",["signingRegion"]:"{Region}"}]},["headers"]:{}},["type"]:"endpoint"}],["type"]:"tree"},{["error"]:"S3Express bucket name is not a valid virtual hostable name.",["type"]:"error"}],["type"]:"tree"},{["conditions"]:[{["fn"]:"booleanEquals",["argv"]:[{["fn"]:"getAttr",["argv"]:[{["ref"]:"url"},"isIp"]},!0]}],["rules"]:[{["conditions"]:[{["fn"]:"uriEncode",["argv"]:[I],["assign"]:"uri_encoded_bucket"}],["rules"]:[{["endpoint"]:{["url"]:"{url#scheme}://{url#authority}/{uri_encoded_bucket}{url#path}",["properties"]:{["backend"]:"S3Express",["authSchemes"]:[{["disableDoubleEncoding"]:!0,["name"]:"sigv4-s3express",["signingName"]:"s3express",["signingRegion"]:"{Region}"}]},["headers"]:{}},["type"]:"endpoint"}],["type"]:"tree"}],["type"]:"tree"},{["conditions"]:[{["fn"]:"aws.isVirtualHostableS3Bucket",["argv"]:[I,!1]}],["rules"]:[{["endpoint"]:{["url"]:"{url#scheme}://{Bucket}.{url#authority}{url#path}",["properties"]:{["backend"]:"S3Express",["authSchemes"]:[{["disableDoubleEncoding"]:!0,["name"]:"sigv4-s3express",["signingName"]:"s3express",["signingRegion"]:"{Region}"}]},["headers"]:{}},["type"]:"endpoint"}],["type"]:"tree"},{["error"]:"S3Express bucket name is not a valid virtual hostable name.",["type"]:"error"}],["type"]:"tree"},Uc={["fn"]:"parseURL",["argv"]:[{["ref"]:"Endpoint"}],["assign"]:"url"},u1={["fn"]:"booleanEquals",["argv"]:[{["fn"]:"getAttr",["argv"]:[{["ref"]:"url"},"isIp"]},!0]},mA={["ref"]:"url"},pA={["fn"]:"uriEncode",["argv"]:[I],["assign"]:"uri_encoded_bucket"},zc={["backend"]:"S3Express",["authSchemes"]:[{["disableDoubleEncoding"]:!0,["name"]:"sigv4",["signingName"]:"s3express",["signingRegion"]:"{Region}"}]},B={},sA={["fn"]:"aws.isVirtualHostableS3Bucket",["argv"]:[I,!1]},iH={["error"]:"S3Express bucket name is not a valid virtual hostable name.",["type"]:"error"},kH={["fn"]:"isSet",["argv"]:[{["ref"]:"UseS3ExpressControlEndpoint"}]},lH={["fn"]:"booleanEquals",["argv"]:[{["ref"]:"UseS3ExpressControlEndpoint"},!0]},X={["fn"]:"not",["argv"]:[k]},w={["fn"]:"booleanEquals",["argv"]:[{["ref"]:"UseDualStack"},!1]},D={["fn"]:"booleanEquals",["argv"]:[{["ref"]:"UseFIPS"},!1]},I0={["error"]:"Unrecognized S3Express bucket name format.",["type"]:"error"},dH={["fn"]:"not",["argv"]:[PR]},_H={["ref"]:"hardwareType"},nH={["conditions"]:[X],["error"]:"Expected a endpoint to be specified but no endpoint was found",["type"]:"error"},P0={["authSchemes"]:[{["disableDoubleEncoding"]:!0,["name"]:"sigv4a",["signingName"]:"s3-outposts",["signingRegionSet"]:["*"]},{["disableDoubleEncoding"]:!0,["name"]:"sigv4",["signingName"]:"s3-outposts",["signingRegion"]:"{Region}"}]},g1={["fn"]:"booleanEquals",["argv"]:[{["ref"]:"ForcePathStyle"},!1]},WW={["ref"]:"ForcePathStyle"},d={["fn"]:"booleanEquals",["argv"]:[{["ref"]:"Accelerate"},!1]},n={["fn"]:"stringEquals",["argv"]:[{["ref"]:"Region"},"aws-global"]},t={["authSchemes"]:[{["disableDoubleEncoding"]:!0,["name"]:"sigv4",["signingName"]:"s3",["signingRegion"]:"us-east-1"}]},x={["fn"]:"not",["argv"]:[n]},r={["fn"]:"booleanEquals",["argv"]:[{["ref"]:"UseGlobalEndpoint"},!0]},oH={["url"]:"https://{Bucket}.s3-fips.dualstack.{Region}.{partitionResult#dnsSuffix}",["properties"]:{["authSchemes"]:[{["disableDoubleEncoding"]:!0,["name"]:"sigv4",["signingName"]:"s3",["signingRegion"]:"{Region}"}]},["headers"]:{}},_={["authSchemes"]:[{["disableDoubleEncoding"]:!0,["name"]:"sigv4",["signingName"]:"s3",["signingRegion"]:"{Region}"}]},e={["fn"]:"booleanEquals",["argv"]:[{["ref"]:"UseGlobalEndpoint"},!1]},aH={["url"]:"https://{Bucket}.s3-fips.{Region}.{partitionResult#dnsSuffix}",["properties"]:_,["headers"]:{}},tH={["url"]:"https://{Bucket}.s3-accelerate.dualstack.{partitionResult#dnsSuffix}",["properties"]:_,["headers"]:{}},rH={["url"]:"https://{Bucket}.s3.dualstack.{Region}.{partitionResult#dnsSuffix}",["properties"]:_,["headers"]:{}},C1={["fn"]:"booleanEquals",["argv"]:[{["fn"]:"getAttr",["argv"]:[mA,"isIp"]},!1]},m1={["url"]:"{url#scheme}://{url#authority}{url#normalizedPath}{Bucket}",["properties"]:_,["headers"]:{}},A$={["url"]:"{url#scheme}://{Bucket}.{url#authority}{url#path}",["properties"]:_,["headers"]:{}},eH={["endpoint"]:A$,["type"]:"endpoint"},p1={["url"]:"https://{Bucket}.s3-accelerate.{partitionResult#dnsSuffix}",["properties"]:_,["headers"]:{}},cA={["url"]:"https://{Bucket}.s3.{Region}.{partitionResult#dnsSuffix}",["properties"]:_,["headers"]:{}},K0={["error"]:"Invalid region: region was not a valid DNS name.",["type"]:"error"},Nc={["ref"]:"bucketArn"},iA={["ref"]:"arnType"},s1={["fn"]:"getAttr",["argv"]:[Nc,"service"]},G$={["ref"]:"accessPointName"},fA={["conditions"]:[T],["error"]:"S3 Object Lambda does not support Dual-stack",["type"]:"error"},RA={["conditions"]:[jc],["error"]:"S3 Object Lambda does not support S3 Accelerate",["type"]:"error"},hA={["conditions"]:[{["fn"]:"isSet",["argv"]:[{["ref"]:"DisableAccessPoints"}]},{["fn"]:"booleanEquals",["argv"]:[{["ref"]:"DisableAccessPoints"},!0]}],["error"]:"Access points are not supported for this operation",["type"]:"error"},i1={["conditions"]:[{["fn"]:"isSet",["argv"]:[{["ref"]:"UseArnRegion"}]},{["fn"]:"booleanEquals",["argv"]:[{["ref"]:"UseArnRegion"},!1]},{["fn"]:"not",["argv"]:[{["fn"]:"stringEquals",["argv"]:[{["fn"]:"getAttr",["argv"]:[Nc,"region"]},"{Region}"]}]}],["error"]:"Invalid configuration: region from ARN `{bucketArn#region}` does not match client region `{Region}` and UseArnRegion is `false`",["type"]:"error"},kA={["fn"]:"getAttr",["argv"]:[{["ref"]:"bucketPartition"},"name"]},lA={["fn"]:"getAttr",["argv"]:[Nc,"accountId"]},k1={["authSchemes"]:[{["disableDoubleEncoding"]:!0,["name"]:"sigv4",["signingName"]:"s3-object-lambda",["signingRegion"]:"{bucketArn#region}"}]},$A={["error"]:"Invalid ARN: The access point name may only contain a-z, A-Z, 0-9 and `-`. Found: `{accessPointName}`",["type"]:"error"},l1={["error"]:"Invalid ARN: The account id may only contain a-z, A-Z, 0-9 and `-`. Found: `{bucketArn#accountId}`",["type"]:"error"},d1={["error"]:"Invalid region in ARN: `{bucketArn#region}` (invalid DNS name)",["type"]:"error"},_1={["error"]:"Client was configured for partition `{partitionResult#name}` but ARN (`{Bucket}`) has `{bucketPartition#name}`",["type"]:"error"},HA={["error"]:"Invalid ARN: The ARN may only contain a single resource component after `accesspoint`.",["type"]:"error"},AA={["error"]:"Invalid ARN: Expected a resource of the format `accesspoint:<accesspoint name>` but no name was provided",["type"]:"error"},IR={["authSchemes"]:[{["disableDoubleEncoding"]:!0,["name"]:"sigv4",["signingName"]:"s3",["signingRegion"]:"{bucketArn#region}"}]},GA={["authSchemes"]:[{["disableDoubleEncoding"]:!0,["name"]:"sigv4a",["signingName"]:"s3-outposts",["signingRegionSet"]:["*"]},{["disableDoubleEncoding"]:!0,["name"]:"sigv4",["signingName"]:"s3-outposts",["signingRegion"]:"{bucketArn#region}"}]},yA={["fn"]:"aws.parseArn",["argv"]:[I]},FA={["url"]:"https://s3-fips.dualstack.{Region}.{partitionResult#dnsSuffix}/{uri_encoded_bucket}",["properties"]:_,["headers"]:{}},WA={["url"]:"https://s3-fips.{Region}.{partitionResult#dnsSuffix}/{uri_encoded_bucket}",["properties"]:_,["headers"]:{}},vA={["url"]:"https://s3.dualstack.{Region}.{partitionResult#dnsSuffix}/{uri_encoded_bucket}",["properties"]:_,["headers"]:{}},n1={["url"]:"{url#scheme}://{url#authority}{url#normalizedPath}{uri_encoded_bucket}",["properties"]:_,["headers"]:{}},UA={["url"]:"https://s3.{Region}.{partitionResult#dnsSuffix}/{uri_encoded_bucket}",["properties"]:_,["headers"]:{}},YA={["ref"]:"UseObjectLambdaEndpoint"},o1={["authSchemes"]:[{["disableDoubleEncoding"]:!0,["name"]:"sigv4",["signingName"]:"s3-object-lambda",["signingRegion"]:"{Region}"}]},NA={["url"]:"https://s3-fips.dualstack.{Region}.{partitionResult#dnsSuffix}",["properties"]:_,["headers"]:{}},ZA={["url"]:"https://s3-fips.{Region}.{partitionResult#dnsSuffix}",["properties"]:_,["headers"]:{}},JA={["url"]:"https://s3.dualstack.{Region}.{partitionResult#dnsSuffix}",["properties"]:_,["headers"]:{}},a1={["url"]:"{url#scheme}://{url#authority}{url#path}",["properties"]:_,["headers"]:{}},zA={["url"]:"https://s3.{Region}.{partitionResult#dnsSuffix}",["properties"]:_,["headers"]:{}},t1=[{["ref"]:"Region"}],vW=[{["ref"]:"Endpoint"}],UW=[I],r1=[jc],Ef=[k,Uc],SA=[{["fn"]:"isSet",["argv"]:[{["ref"]:"DisableS3ExpressSessionAuth"}]},{["fn"]:"booleanEquals",["argv"]:[{["ref"]:"DisableS3ExpressSessionAuth"},!0]}],YW=[pA],e1=[sA],Dc=[CA],c$=[C,T],KR=[C,w],OR=[D,T],bR=[D,w],MA=[{["fn"]:"substring",["argv"]:[I,6,14,!0],["assign"]:"s3expressAvailabilityZoneId"},{["fn"]:"substring",["argv"]:[I,14,16,!0],["assign"]:"s3expressAvailabilityZoneDelim"},{["fn"]:"stringEquals",["argv"]:[{["ref"]:"s3expressAvailabilityZoneDelim"},"--"]}],gc=[{["conditions"]:[C,T],["endpoint"]:{["url"]:"https://{Bucket}.s3express-fips-{s3expressAvailabilityZoneId}.dualstack.{Region}.{partitionResult#dnsSuffix}",["properties"]:zc,["headers"]:{}},["type"]:"endpoint"},{["conditions"]:KR,["endpoint"]:{["url"]:"https://{Bucket}.s3express-fips-{s3expressAvailabilityZoneId}.{Region}.{partitionResult#dnsSuffix}",["properties"]:zc,["headers"]:{}},["type"]:"endpoint"},{["conditions"]:OR,["endpoint"]:{["url"]:"https://{Bucket}.s3express-{s3expressAvailabilityZoneId}.dualstack.{Region}.{partitionResult#dnsSuffix}",["properties"]:zc,["headers"]:{}},["type"]:"endpoint"},{["conditions"]:bR,["endpoint"]:{["url"]:"https://{Bucket}.s3express-{s3expressAvailabilityZoneId}.{Region}.{partitionResult#dnsSuffix}",["properties"]:zc,["headers"]:{}},["type"]:"endpoint"}],BA=[{["fn"]:"substring",["argv"]:[I,6,15,!0],["assign"]:"s3expressAvailabilityZoneId"},{["fn"]:"substring",["argv"]:[I,15,17,!0],["assign"]:"s3expressAvailabilityZoneDelim"},{["fn"]:"stringEquals",["argv"]:[{["ref"]:"s3expressAvailabilityZoneDelim"},"--"]}],XA=[{["fn"]:"substring",["argv"]:[I,6,19,!0],["assign"]:"s3expressAvailabilityZoneId"},{["fn"]:"substring",["argv"]:[I,19,21,!0],["assign"]:"s3expressAvailabilityZoneDelim"},{["fn"]:"stringEquals",["argv"]:[{["ref"]:"s3expressAvailabilityZoneDelim"},"--"]}],QA=[{["fn"]:"substring",["argv"]:[I,6,20,!0],["assign"]:"s3expressAvailabilityZoneId"},{["fn"]:"substring",["argv"]:[I,20,22,!0],["assign"]:"s3expressAvailabilityZoneDelim"},{["fn"]:"stringEquals",["argv"]:[{["ref"]:"s3expressAvailabilityZoneDelim"},"--"]}],DA=[{["fn"]:"substring",["argv"]:[I,6,26,!0],["assign"]:"s3expressAvailabilityZoneId"},{["fn"]:"substring",["argv"]:[I,26,28,!0],["assign"]:"s3expressAvailabilityZoneDelim"},{["fn"]:"stringEquals",["argv"]:[{["ref"]:"s3expressAvailabilityZoneDelim"},"--"]}],Cc=[{["conditions"]:[C,T],["endpoint"]:{["url"]:"https://{Bucket}.s3express-fips-{s3expressAvailabilityZoneId}.dualstack.{Region}.{partitionResult#dnsSuffix}",["properties"]:{["backend"]:"S3Express",["authSchemes"]:[{["disableDoubleEncoding"]:!0,["name"]:"sigv4-s3express",["signingName"]:"s3express",["signingRegion"]:"{Region}"}]},["headers"]:{}},["type"]:"endpoint"},{["conditions"]:KR,["endpoint"]:{["url"]:"https://{Bucket}.s3express-fips-{s3expressAvailabilityZoneId}.{Region}.{partitionResult#dnsSuffix}",["properties"]:{["backend"]:"S3Express",["authSchemes"]:[{["disableDoubleEncoding"]:!0,["name"]:"sigv4-s3express",["signingName"]:"s3express",["signingRegion"]:"{Region}"}]},["headers"]:{}},["type"]:"endpoint"},{["conditions"]:OR,["endpoint"]:{["url"]:"https://{Bucket}.s3express-{s3expressAvailabilityZoneId}.dualstack.{Region}.{partitionResult#dnsSuffix}",["properties"]:{["backend"]:"S3Express",["authSchemes"]:[{["disableDoubleEncoding"]:!0,["name"]:"sigv4-s3express",["signingName"]:"s3express",["signingRegion"]:"{Region}"}]},["headers"]:{}},["type"]:"endpoint"},{["conditions"]:bR,["endpoint"]:{["url"]:"https://{Bucket}.s3express-{s3expressAvailabilityZoneId}.{Region}.{partitionResult#dnsSuffix}",["properties"]:{["backend"]:"S3Express",["authSchemes"]:[{["disableDoubleEncoding"]:!0,["name"]:"sigv4-s3express",["signingName"]:"s3express",["signingRegion"]:"{Region}"}]},["headers"]:{}},["type"]:"endpoint"}],jA=[I,0,7,!0],wA=[{["fn"]:"substring",["argv"]:[I,7,15,!0],["assign"]:"s3expressAvailabilityZoneId"},{["fn"]:"substring",["argv"]:[I,15,17,!0],["assign"]:"s3expressAvailabilityZoneDelim"},{["fn"]:"stringEquals",["argv"]:[{["ref"]:"s3expressAvailabilityZoneDelim"},"--"]}],LA=[{["fn"]:"substring",["argv"]:[I,7,16,!0],["assign"]:"s3expressAvailabilityZoneId"},{["fn"]:"substring",["argv"]:[I,16,18,!0],["assign"]:"s3expressAvailabilityZoneDelim"},{["fn"]:"stringEquals",["argv"]:[{["ref"]:"s3expressAvailabilityZoneDelim"},"--"]}],xA=[{["fn"]:"substring",["argv"]:[I,7,20,!0],["assign"]:"s3expressAvailabilityZoneId"},{["fn"]:"substring",["argv"]:[I,20,22,!0],["assign"]:"s3expressAvailabilityZoneDelim"},{["fn"]:"stringEquals",["argv"]:[{["ref"]:"s3expressAvailabilityZoneDelim"},"--"]}],IA=[{["fn"]:"substring",["argv"]:[I,7,21,!0],["assign"]:"s3expressAvailabilityZoneId"},{["fn"]:"substring",["argv"]:[I,21,23,!0],["assign"]:"s3expressAvailabilityZoneDelim"},{["fn"]:"stringEquals",["argv"]:[{["ref"]:"s3expressAvailabilityZoneDelim"},"--"]}],PA=[{["fn"]:"substring",["argv"]:[I,7,27,!0],["assign"]:"s3expressAvailabilityZoneId"},{["fn"]:"substring",["argv"]:[I,27,29,!0],["assign"]:"s3expressAvailabilityZoneDelim"},{["fn"]:"stringEquals",["argv"]:[{["ref"]:"s3expressAvailabilityZoneDelim"},"--"]}],NW=[PR],KA=[{["fn"]:"isValidHostLabel",["argv"]:[{["ref"]:"outpostId"},!1]}],OA=[{["fn"]:"stringEquals",["argv"]:[{["ref"]:"regionPrefix"},"beta"]}],ZW=["*"],bA=[{["fn"]:"isValidHostLabel",["argv"]:[{["ref"]:"Region"},!1]}],ac=[{["fn"]:"stringEquals",["argv"]:[{["ref"]:"Region"},"us-east-1"]}],f$=[{["fn"]:"stringEquals",["argv"]:[iA,"accesspoint"]}],qA=[{["fn"]:"getAttr",["argv"]:[Nc,"resourceId[1]"],["assign"]:"accessPointName"},{["fn"]:"not",["argv"]:[{["fn"]:"stringEquals",["argv"]:[G$,""]}]}],JW=[Nc,"resourceId[1]"],VA=[T],R$=[{["fn"]:"not",["argv"]:[{["fn"]:"stringEquals",["argv"]:[{["fn"]:"getAttr",["argv"]:[Nc,"region"]},""]}]}],EA=[{["fn"]:"not",["argv"]:[{["fn"]:"isSet",["argv"]:[{["fn"]:"getAttr",["argv"]:[Nc,"resourceId[2]"]}]}]}],zW=[Nc,"resourceId[2]"],h$=[{["fn"]:"aws.partition",["argv"]:[{["fn"]:"getAttr",["argv"]:[Nc,"region"]}],["assign"]:"bucketPartition"}],TA=[{["fn"]:"stringEquals",["argv"]:[kA,{["fn"]:"getAttr",["argv"]:[{["ref"]:"partitionResult"},"name"]}]}],$$=[{["fn"]:"isValidHostLabel",["argv"]:[{["fn"]:"getAttr",["argv"]:[Nc,"region"]},!0]}],H$=[{["fn"]:"isValidHostLabel",["argv"]:[lA,!1]}],uA=[{["fn"]:"isValidHostLabel",["argv"]:[G$,!1]}],O0=[C],gA=[{["fn"]:"isValidHostLabel",["argv"]:[{["ref"]:"Region"},!0]}],SW={version:"1.0",parameters:{Bucket:qf,Region:qf,UseFIPS:Vf,UseDualStack:Vf,Endpoint:qf,ForcePathStyle:Vf,Accelerate:Vf,UseGlobalEndpoint:Vf,UseObjectLambdaEndpoint:xR,Key:qf,Prefix:qf,CopySource:qf,DisableAccessPoints:xR,DisableMultiRegionAccessPoints:Vf,UseArnRegion:xR,UseS3ExpressControlEndpoint:xR,DisableS3ExpressSessionAuth:xR},["rules"]:[{["conditions"]:[{["fn"]:"isSet",["argv"]:t1}],["rules"]:[{["conditions"]:[jc,C],error:"Accelerate cannot be used with FIPS",["type"]:"error"},{["conditions"]:[T,k],error:"Cannot set dual-stack in combination with a custom endpoint.",["type"]:"error"},{["conditions"]:[k,C],error:"A custom endpoint cannot be combined with FIPS",["type"]:"error"},{["conditions"]:[k,jc],error:"A custom endpoint cannot be combined with S3 Accelerate",["type"]:"error"},{["conditions"]:[C,CA,mH],error:"Partition does not support FIPS",["type"]:"error"},{["conditions"]:[PR,{["fn"]:"substring",["argv"]:[I,0,6,!0],["assign"]:"bucketSuffix"},{["fn"]:"stringEquals",["argv"]:[{["ref"]:"bucketSuffix"},"--x-s3"]}],["rules"]:[pH,sH,{["conditions"]:[kH,lH],["rules"]:[{["conditions"]:Dc,["rules"]:[{["conditions"]:[pA,X],["rules"]:[{["conditions"]:c$,endpoint:{["url"]:"https://s3express-control-fips.dualstack.{Region}.{partitionResult#dnsSuffix}/{uri_encoded_bucket}",["properties"]:zc,["headers"]:B},["type"]:"endpoint"},{["conditions"]:KR,endpoint:{["url"]:"https://s3express-control-fips.{Region}.{partitionResult#dnsSuffix}/{uri_encoded_bucket}",["properties"]:zc,["headers"]:B},["type"]:"endpoint"},{["conditions"]:OR,endpoint:{["url"]:"https://s3express-control.dualstack.{Region}.{partitionResult#dnsSuffix}/{uri_encoded_bucket}",["properties"]:zc,["headers"]:B},["type"]:"endpoint"},{["conditions"]:bR,endpoint:{["url"]:"https://s3express-control.{Region}.{partitionResult#dnsSuffix}/{uri_encoded_bucket}",["properties"]:zc,["headers"]:B},["type"]:"endpoint"}],["type"]:"tree"}],["type"]:"tree"}],["type"]:"tree"},{["conditions"]:e1,["rules"]:[{["conditions"]:Dc,["rules"]:[{["conditions"]:SA,["rules"]:[{["conditions"]:MA,["rules"]:gc,["type"]:"tree"},{["conditions"]:BA,["rules"]:gc,["type"]:"tree"},{["conditions"]:XA,["rules"]:gc,["type"]:"tree"},{["conditions"]:QA,["rules"]:gc,["type"]:"tree"},{["conditions"]:DA,["rules"]:gc,["type"]:"tree"},I0],["type"]:"tree"},{["conditions"]:MA,["rules"]:Cc,["type"]:"tree"},{["conditions"]:BA,["rules"]:Cc,["type"]:"tree"},{["conditions"]:XA,["rules"]:Cc,["type"]:"tree"},{["conditions"]:QA,["rules"]:Cc,["type"]:"tree"},{["conditions"]:DA,["rules"]:Cc,["type"]:"tree"},I0],["type"]:"tree"}],["type"]:"tree"},iH],["type"]:"tree"},{["conditions"]:[PR,{["fn"]:"substring",["argv"]:jA,["assign"]:"accessPointSuffix"},{["fn"]:"stringEquals",["argv"]:[{["ref"]:"accessPointSuffix"},"--xa-s3"]}],["rules"]:[pH,sH,{["conditions"]:e1,["rules"]:[{["conditions"]:Dc,["rules"]:[{["conditions"]:SA,["rules"]:[{["conditions"]:wA,["rules"]:gc,["type"]:"tree"},{["conditions"]:LA,["rules"]:gc,["type"]:"tree"},{["conditions"]:xA,["rules"]:gc,["type"]:"tree"},{["conditions"]:IA,["rules"]:gc,["type"]:"tree"},{["conditions"]:PA,["rules"]:gc,["type"]:"tree"},I0],["type"]:"tree"},{["conditions"]:wA,["rules"]:Cc,["type"]:"tree"},{["conditions"]:LA,["rules"]:Cc,["type"]:"tree"},{["conditions"]:xA,["rules"]:Cc,["type"]:"tree"},{["conditions"]:IA,["rules"]:Cc,["type"]:"tree"},{["conditions"]:PA,["rules"]:Cc,["type"]:"tree"},I0],["type"]:"tree"}],["type"]:"tree"},iH],["type"]:"tree"},{["conditions"]:[dH,kH,lH],["rules"]:[{["conditions"]:Dc,["rules"]:[{["conditions"]:Ef,endpoint:{["url"]:"{url#scheme}://{url#authority}{url#path}",["properties"]:zc,["headers"]:B},["type"]:"endpoint"},{["conditions"]:c$,endpoint:{["url"]:"https://s3express-control-fips.dualstack.{Region}.{partitionResult#dnsSuffix}",["properties"]:zc,["headers"]:B},["type"]:"endpoint"},{["conditions"]:KR,endpoint:{["url"]:"https://s3express-control-fips.{Region}.{partitionResult#dnsSuffix}",["properties"]:zc,["headers"]:B},["type"]:"endpoint"},{["conditions"]:OR,endpoint:{["url"]:"https://s3express-control.dualstack.{Region}.{partitionResult#dnsSuffix}",["properties"]:zc,["headers"]:B},["type"]:"endpoint"},{["conditions"]:bR,endpoint:{["url"]:"https://s3express-control.{Region}.{partitionResult#dnsSuffix}",["properties"]:zc,["headers"]:B},["type"]:"endpoint"}],["type"]:"tree"}],["type"]:"tree"},{["conditions"]:[PR,{["fn"]:"substring",["argv"]:[I,49,50,!0],["assign"]:"hardwareType"},{["fn"]:"substring",["argv"]:[I,8,12,!0],["assign"]:"regionPrefix"},{["fn"]:"substring",["argv"]:jA,["assign"]:"bucketAliasSuffix"},{["fn"]:"substring",["argv"]:[I,32,49,!0],["assign"]:"outpostId"},{["fn"]:"aws.partition",["argv"]:t1,["assign"]:"regionPartition"},{["fn"]:"stringEquals",["argv"]:[{["ref"]:"bucketAliasSuffix"},"--op-s3"]}],["rules"]:[{["conditions"]:KA,["rules"]:[{["conditions"]:e1,["rules"]:[{["conditions"]:[{["fn"]:"stringEquals",["argv"]:[_H,"e"]}],["rules"]:[{["conditions"]:OA,["rules"]:[nH,{["conditions"]:Ef,endpoint:{["url"]:"https://{Bucket}.ec2.{url#authority}",["properties"]:P0,["headers"]:B},["type"]:"endpoint"}],["type"]:"tree"},{endpoint:{["url"]:"https://{Bucket}.ec2.s3-outposts.{Region}.{regionPartition#dnsSuffix}",["properties"]:P0,["headers"]:B},["type"]:"endpoint"}],["type"]:"tree"},{["conditions"]:[{["fn"]:"stringEquals",["argv"]:[_H,"o"]}],["rules"]:[{["conditions"]:OA,["rules"]:[nH,{["conditions"]:Ef,endpoint:{["url"]:"https://{Bucket}.op-{outpostId}.{url#authority}",["properties"]:P0,["headers"]:B},["type"]:"endpoint"}],["type"]:"tree"},{endpoint:{["url"]:"https://{Bucket}.op-{outpostId}.s3-outposts.{Region}.{regionPartition#dnsSuffix}",["properties"]:P0,["headers"]:B},["type"]:"endpoint"}],["type"]:"tree"},{error:'Unrecognized hardware type: "Expected hardware type o or e but got {hardwareType}"',["type"]:"error"}],["type"]:"tree"},{error:"Invalid Outposts Bucket alias - it must be a valid bucket name.",["type"]:"error"}],["type"]:"tree"},{error:"Invalid ARN: The outpost Id must only contain a-z, A-Z, 0-9 and `-`.",["type"]:"error"}],["type"]:"tree"},{["conditions"]:NW,["rules"]:[{["conditions"]:[k,{["fn"]:"not",["argv"]:[{["fn"]:"isSet",["argv"]:[{["fn"]:"parseURL",["argv"]:vW}]}]}],error:"Custom endpoint `{Endpoint}` was not a valid URI",["type"]:"error"},{["conditions"]:[g1,sA],["rules"]:[{["conditions"]:Dc,["rules"]:[{["conditions"]:bA,["rules"]:[{["conditions"]:[jc,mH],error:"S3 Accelerate cannot be used in this region",["type"]:"error"},{["conditions"]:[T,C,d,X,n],endpoint:{["url"]:"https://{Bucket}.s3-fips.dualstack.us-east-1.{partitionResult#dnsSuffix}",["properties"]:t,["headers"]:B},["type"]:"endpoint"},{["conditions"]:[T,C,d,X,x,r],["rules"]:[{endpoint:oH,["type"]:"endpoint"}],["type"]:"tree"},{["conditions"]:[T,C,d,X,x,e],endpoint:oH,["type"]:"endpoint"},{["conditions"]:[w,C,d,X,n],endpoint:{["url"]:"https://{Bucket}.s3-fips.us-east-1.{partitionResult#dnsSuffix}",["properties"]:t,["headers"]:B},["type"]:"endpoint"},{["conditions"]:[w,C,d,X,x,r],["rules"]:[{endpoint:aH,["type"]:"endpoint"}],["type"]:"tree"},{["conditions"]:[w,C,d,X,x,e],endpoint:aH,["type"]:"endpoint"},{["conditions"]:[T,D,jc,X,n],endpoint:{["url"]:"https://{Bucket}.s3-accelerate.dualstack.us-east-1.{partitionResult#dnsSuffix}",["properties"]:t,["headers"]:B},["type"]:"endpoint"},{["conditions"]:[T,D,jc,X,x,r],["rules"]:[{endpoint:tH,["type"]:"endpoint"}],["type"]:"tree"},{["conditions"]:[T,D,jc,X,x,e],endpoint:tH,["type"]:"endpoint"},{["conditions"]:[T,D,d,X,n],endpoint:{["url"]:"https://{Bucket}.s3.dualstack.us-east-1.{partitionResult#dnsSuffix}",["properties"]:t,["headers"]:B},["type"]:"endpoint"},{["conditions"]:[T,D,d,X,x,r],["rules"]:[{endpoint:rH,["type"]:"endpoint"}],["type"]:"tree"},{["conditions"]:[T,D,d,X,x,e],endpoint:rH,["type"]:"endpoint"},{["conditions"]:[w,D,d,k,Uc,u1,n],endpoint:{["url"]:"{url#scheme}://{url#authority}{url#normalizedPath}{Bucket}",["properties"]:t,["headers"]:B},["type"]:"endpoint"},{["conditions"]:[w,D,d,k,Uc,C1,n],endpoint:{["url"]:"{url#scheme}://{Bucket}.{url#authority}{url#path}",["properties"]:t,["headers"]:B},["type"]:"endpoint"},{["conditions"]:[w,D,d,k,Uc,u1,x,r],["rules"]:[{["conditions"]:ac,endpoint:m1,["type"]:"endpoint"},{endpoint:m1,["type"]:"endpoint"}],["type"]:"tree"},{["conditions"]:[w,D,d,k,Uc,C1,x,r],["rules"]:[{["conditions"]:ac,endpoint:A$,["type"]:"endpoint"},eH],["type"]:"tree"},{["conditions"]:[w,D,d,k,Uc,u1,x,e],endpoint:m1,["type"]:"endpoint"},{["conditions"]:[w,D,d,k,Uc,C1,x,e],endpoint:A$,["type"]:"endpoint"},{["conditions"]:[w,D,jc,X,n],endpoint:{["url"]:"https://{Bucket}.s3-accelerate.{partitionResult#dnsSuffix}",["properties"]:t,["headers"]:B},["type"]:"endpoint"},{["conditions"]:[w,D,jc,X,x,r],["rules"]:[{["conditions"]:ac,endpoint:p1,["type"]:"endpoint"},{endpoint:p1,["type"]:"endpoint"}],["type"]:"tree"},{["conditions"]:[w,D,jc,X,x,e],endpoint:p1,["type"]:"endpoint"},{["conditions"]:[w,D,d,X,n],endpoint:{["url"]:"https://{Bucket}.s3.{partitionResult#dnsSuffix}",["properties"]:t,["headers"]:B},["type"]:"endpoint"},{["conditions"]:[w,D,d,X,x,r],["rules"]:[{["conditions"]:ac,endpoint:{["url"]:"https://{Bucket}.s3.{partitionResult#dnsSuffix}",["properties"]:_,["headers"]:B},["type"]:"endpoint"},{endpoint:cA,["type"]:"endpoint"}],["type"]:"tree"},{["conditions"]:[w,D,d,X,x,e],endpoint:cA,["type"]:"endpoint"}],["type"]:"tree"},K0],["type"]:"tree"}],["type"]:"tree"},{["conditions"]:[k,Uc,{["fn"]:"stringEquals",["argv"]:[{["fn"]:"getAttr",["argv"]:[mA,"scheme"]},"http"]},{["fn"]:"aws.isVirtualHostableS3Bucket",["argv"]:[I,!0]},g1,D,w,d],["rules"]:[{["conditions"]:Dc,["rules"]:[{["conditions"]:bA,["rules"]:[eH],["type"]:"tree"},K0],["type"]:"tree"}],["type"]:"tree"},{["conditions"]:[g1,{["fn"]:"aws.parseArn",["argv"]:UW,["assign"]:"bucketArn"}],["rules"]:[{["conditions"]:[{["fn"]:"getAttr",["argv"]:[Nc,"resourceId[0]"],["assign"]:"arnType"},{["fn"]:"not",["argv"]:[{["fn"]:"stringEquals",["argv"]:[iA,""]}]}],["rules"]:[{["conditions"]:[{["fn"]:"stringEquals",["argv"]:[s1,"s3-object-lambda"]}],["rules"]:[{["conditions"]:f$,["rules"]:[{["conditions"]:qA,["rules"]:[fA,RA,{["conditions"]:R$,["rules"]:[hA,{["conditions"]:EA,["rules"]:[i1,{["conditions"]:h$,["rules"]:[{["conditions"]:Dc,["rules"]:[{["conditions"]:TA,["rules"]:[{["conditions"]:$$,["rules"]:[{["conditions"]:[{["fn"]:"stringEquals",["argv"]:[lA,""]}],error:"Invalid ARN: Missing account id",["type"]:"error"},{["conditions"]:H$,["rules"]:[{["conditions"]:uA,["rules"]:[{["conditions"]:Ef,endpoint:{["url"]:"{url#scheme}://{accessPointName}-{bucketArn#accountId}.{url#authority}{url#path}",["properties"]:k1,["headers"]:B},["type"]:"endpoint"},{["conditions"]:O0,endpoint:{["url"]:"https://{accessPointName}-{bucketArn#accountId}.s3-object-lambda-fips.{bucketArn#region}.{bucketPartition#dnsSuffix}",["properties"]:k1,["headers"]:B},["type"]:"endpoint"},{endpoint:{["url"]:"https://{accessPointName}-{bucketArn#accountId}.s3-object-lambda.{bucketArn#region}.{bucketPartition#dnsSuffix}",["properties"]:k1,["headers"]:B},["type"]:"endpoint"}],["type"]:"tree"},$A],["type"]:"tree"},l1],["type"]:"tree"},d1],["type"]:"tree"},_1],["type"]:"tree"}],["type"]:"tree"}],["type"]:"tree"},HA],["type"]:"tree"},{error:"Invalid ARN: bucket ARN is missing a region",["type"]:"error"}],["type"]:"tree"},AA],["type"]:"tree"},{error:"Invalid ARN: Object Lambda ARNs only support `accesspoint` arn types, but found: `{arnType}`",["type"]:"error"}],["type"]:"tree"},{["conditions"]:f$,["rules"]:[{["conditions"]:qA,["rules"]:[{["conditions"]:R$,["rules"]:[{["conditions"]:f$,["rules"]:[{["conditions"]:R$,["rules"]:[hA,{["conditions"]:EA,["rules"]:[i1,{["conditions"]:h$,["rules"]:[{["conditions"]:Dc,["rules"]:[{["conditions"]:[{["fn"]:"stringEquals",["argv"]:[kA,"{partitionResult#name}"]}],["rules"]:[{["conditions"]:$$,["rules"]:[{["conditions"]:[{["fn"]:"stringEquals",["argv"]:[s1,"s3"]}],["rules"]:[{["conditions"]:H$,["rules"]:[{["conditions"]:uA,["rules"]:[{["conditions"]:r1,error:"Access Points do not support S3 Accelerate",["type"]:"error"},{["conditions"]:c$,endpoint:{["url"]:"https://{accessPointName}-{bucketArn#accountId}.s3-accesspoint-fips.dualstack.{bucketArn#region}.{bucketPartition#dnsSuffix}",["properties"]:IR,["headers"]:B},["type"]:"endpoint"},{["conditions"]:KR,endpoint:{["url"]:"https://{accessPointName}-{bucketArn#accountId}.s3-accesspoint-fips.{bucketArn#region}.{bucketPartition#dnsSuffix}",["properties"]:IR,["headers"]:B},["type"]:"endpoint"},{["conditions"]:OR,endpoint:{["url"]:"https://{accessPointName}-{bucketArn#accountId}.s3-accesspoint.dualstack.{bucketArn#region}.{bucketPartition#dnsSuffix}",["properties"]:IR,["headers"]:B},["type"]:"endpoint"},{["conditions"]:[D,w,k,Uc],endpoint:{["url"]:"{url#scheme}://{accessPointName}-{bucketArn#accountId}.{url#authority}{url#path}",["properties"]:IR,["headers"]:B},["type"]:"endpoint"},{["conditions"]:bR,endpoint:{["url"]:"https://{accessPointName}-{bucketArn#accountId}.s3-accesspoint.{bucketArn#region}.{bucketPartition#dnsSuffix}",["properties"]:IR,["headers"]:B},["type"]:"endpoint"}],["type"]:"tree"},$A],["type"]:"tree"},l1],["type"]:"tree"},{error:"Invalid ARN: The ARN was not for the S3 service, found: {bucketArn#service}",["type"]:"error"}],["type"]:"tree"},d1],["type"]:"tree"},_1],["type"]:"tree"}],["type"]:"tree"}],["type"]:"tree"},HA],["type"]:"tree"}],["type"]:"tree"}],["type"]:"tree"},{["conditions"]:[{["fn"]:"isValidHostLabel",["argv"]:[G$,!0]}],["rules"]:[{["conditions"]:VA,error:"S3 MRAP does not support dual-stack",["type"]:"error"},{["conditions"]:O0,error:"S3 MRAP does not support FIPS",["type"]:"error"},{["conditions"]:r1,error:"S3 MRAP does not support S3 Accelerate",["type"]:"error"},{["conditions"]:[{["fn"]:"booleanEquals",["argv"]:[{["ref"]:"DisableMultiRegionAccessPoints"},!0]}],error:"Invalid configuration: Multi-Region Access Point ARNs are disabled.",["type"]:"error"},{["conditions"]:[{["fn"]:"aws.partition",["argv"]:t1,["assign"]:"mrapPartition"}],["rules"]:[{["conditions"]:[{["fn"]:"stringEquals",["argv"]:[{["fn"]:"getAttr",["argv"]:[{["ref"]:"mrapPartition"},"name"]},{["fn"]:"getAttr",["argv"]:[Nc,"partition"]}]}],["rules"]:[{endpoint:{["url"]:"https://{accessPointName}.accesspoint.s3-global.{mrapPartition#dnsSuffix}",["properties"]:{["authSchemes"]:[{["disableDoubleEncoding"]:!0,name:"sigv4a",["signingName"]:"s3",["signingRegionSet"]:ZW}]},["headers"]:B},["type"]:"endpoint"}],["type"]:"tree"},{error:"Client was configured for partition `{mrapPartition#name}` but bucket referred to partition `{bucketArn#partition}`",["type"]:"error"}],["type"]:"tree"}],["type"]:"tree"},{error:"Invalid Access Point Name",["type"]:"error"}],["type"]:"tree"},AA],["type"]:"tree"},{["conditions"]:[{["fn"]:"stringEquals",["argv"]:[s1,"s3-outposts"]}],["rules"]:[{["conditions"]:VA,error:"S3 Outposts does not support Dual-stack",["type"]:"error"},{["conditions"]:O0,error:"S3 Outposts does not support FIPS",["type"]:"error"},{["conditions"]:r1,error:"S3 Outposts does not support S3 Accelerate",["type"]:"error"},{["conditions"]:[{["fn"]:"isSet",["argv"]:[{["fn"]:"getAttr",["argv"]:[Nc,"resourceId[4]"]}]}],error:"Invalid Arn: Outpost Access Point ARN contains sub resources",["type"]:"error"},{["conditions"]:[{["fn"]:"getAttr",["argv"]:JW,["assign"]:"outpostId"}],["rules"]:[{["conditions"]:KA,["rules"]:[i1,{["conditions"]:h$,["rules"]:[{["conditions"]:Dc,["rules"]:[{["conditions"]:TA,["rules"]:[{["conditions"]:$$,["rules"]:[{["conditions"]:H$,["rules"]:[{["conditions"]:[{["fn"]:"getAttr",["argv"]:zW,["assign"]:"outpostType"}],["rules"]:[{["conditions"]:[{["fn"]:"getAttr",["argv"]:[Nc,"resourceId[3]"],["assign"]:"accessPointName"}],["rules"]:[{["conditions"]:[{["fn"]:"stringEquals",["argv"]:[{["ref"]:"outpostType"},"accesspoint"]}],["rules"]:[{["conditions"]:Ef,endpoint:{["url"]:"https://{accessPointName}-{bucketArn#accountId}.{outpostId}.{url#authority}",["properties"]:GA,["headers"]:B},["type"]:"endpoint"},{endpoint:{["url"]:"https://{accessPointName}-{bucketArn#accountId}.{outpostId}.s3-outposts.{bucketArn#region}.{bucketPartition#dnsSuffix}",["properties"]:GA,["headers"]:B},["type"]:"endpoint"}],["type"]:"tree"},{error:"Expected an outpost type `accesspoint`, found {outpostType}",["type"]:"error"}],["type"]:"tree"},{error:"Invalid ARN: expected an access point name",["type"]:"error"}],["type"]:"tree"},{error:"Invalid ARN: Expected a 4-component resource",["type"]:"error"}],["type"]:"tree"},l1],["type"]:"tree"},d1],["type"]:"tree"},_1],["type"]:"tree"}],["type"]:"tree"}],["type"]:"tree"},{error:"Invalid ARN: The outpost Id may only contain a-z, A-Z, 0-9 and `-`. Found: `{outpostId}`",["type"]:"error"}],["type"]:"tree"},{error:"Invalid ARN: The Outpost Id was not set",["type"]:"error"}],["type"]:"tree"},{error:"Invalid ARN: Unrecognized format: {Bucket} (type: {arnType})",["type"]:"error"}],["type"]:"tree"},{error:"Invalid ARN: No ARN type specified",["type"]:"error"}],["type"]:"tree"},{["conditions"]:[{["fn"]:"substring",["argv"]:[I,0,4,!1],["assign"]:"arnPrefix"},{["fn"]:"stringEquals",["argv"]:[{["ref"]:"arnPrefix"},"arn:"]},{["fn"]:"not",["argv"]:[{["fn"]:"isSet",["argv"]:[yA]}]}],error:"Invalid ARN: `{Bucket}` was not a valid ARN",["type"]:"error"},{["conditions"]:[{["fn"]:"booleanEquals",["argv"]:[WW,!0]},yA],error:"Path-style addressing cannot be used with ARN buckets",["type"]:"error"},{["conditions"]:YW,["rules"]:[{["conditions"]:Dc,["rules"]:[{["conditions"]:[d],["rules"]:[{["conditions"]:[T,X,C,n],endpoint:{["url"]:"https://s3-fips.dualstack.us-east-1.{partitionResult#dnsSuffix}/{uri_encoded_bucket}",["properties"]:t,["headers"]:B},["type"]:"endpoint"},{["conditions"]:[T,X,C,x,r],["rules"]:[{endpoint:FA,["type"]:"endpoint"}],["type"]:"tree"},{["conditions"]:[T,X,C,x,e],endpoint:FA,["type"]:"endpoint"},{["conditions"]:[w,X,C,n],endpoint:{["url"]:"https://s3-fips.us-east-1.{partitionResult#dnsSuffix}/{uri_encoded_bucket}",["properties"]:t,["headers"]:B},["type"]:"endpoint"},{["conditions"]:[w,X,C,x,r],["rules"]:[{endpoint:WA,["type"]:"endpoint"}],["type"]:"tree"},{["conditions"]:[w,X,C,x,e],endpoint:WA,["type"]:"endpoint"},{["conditions"]:[T,X,D,n],endpoint:{["url"]:"https://s3.dualstack.us-east-1.{partitionResult#dnsSuffix}/{uri_encoded_bucket}",["properties"]:t,["headers"]:B},["type"]:"endpoint"},{["conditions"]:[T,X,D,x,r],["rules"]:[{endpoint:vA,["type"]:"endpoint"}],["type"]:"tree"},{["conditions"]:[T,X,D,x,e],endpoint:vA,["type"]:"endpoint"},{["conditions"]:[w,k,Uc,D,n],endpoint:{["url"]:"{url#scheme}://{url#authority}{url#normalizedPath}{uri_encoded_bucket}",["properties"]:t,["headers"]:B},["type"]:"endpoint"},{["conditions"]:[w,k,Uc,D,x,r],["rules"]:[{["conditions"]:ac,endpoint:n1,["type"]:"endpoint"},{endpoint:n1,["type"]:"endpoint"}],["type"]:"tree"},{["conditions"]:[w,k,Uc,D,x,e],endpoint:n1,["type"]:"endpoint"},{["conditions"]:[w,X,D,n],endpoint:{["url"]:"https://s3.{partitionResult#dnsSuffix}/{uri_encoded_bucket}",["properties"]:t,["headers"]:B},["type"]:"endpoint"},{["conditions"]:[w,X,D,x,r],["rules"]:[{["conditions"]:ac,endpoint:{["url"]:"https://s3.{partitionResult#dnsSuffix}/{uri_encoded_bucket}",["properties"]:_,["headers"]:B},["type"]:"endpoint"},{endpoint:UA,["type"]:"endpoint"}],["type"]:"tree"},{["conditions"]:[w,X,D,x,e],endpoint:UA,["type"]:"endpoint"}],["type"]:"tree"},{error:"Path-style addressing cannot be used with S3 Accelerate",["type"]:"error"}],["type"]:"tree"}],["type"]:"tree"}],["type"]:"tree"},{["conditions"]:[{["fn"]:"isSet",["argv"]:[YA]},{["fn"]:"booleanEquals",["argv"]:[YA,!0]}],["rules"]:[{["conditions"]:Dc,["rules"]:[{["conditions"]:gA,["rules"]:[fA,RA,{["conditions"]:Ef,endpoint:{["url"]:"{url#scheme}://{url#authority}{url#path}",["properties"]:o1,["headers"]:B},["type"]:"endpoint"},{["conditions"]:O0,endpoint:{["url"]:"https://s3-object-lambda-fips.{Region}.{partitionResult#dnsSuffix}",["properties"]:o1,["headers"]:B},["type"]:"endpoint"},{endpoint:{["url"]:"https://s3-object-lambda.{Region}.{partitionResult#dnsSuffix}",["properties"]:o1,["headers"]:B},["type"]:"endpoint"}],["type"]:"tree"},K0],["type"]:"tree"}],["type"]:"tree"},{["conditions"]:[dH],["rules"]:[{["conditions"]:Dc,["rules"]:[{["conditions"]:gA,["rules"]:[{["conditions"]:[C,T,X,n],endpoint:{["url"]:"https://s3-fips.dualstack.us-east-1.{partitionResult#dnsSuffix}",["properties"]:t,["headers"]:B},["type"]:"endpoint"},{["conditions"]:[C,T,X,x,r],["rules"]:[{endpoint:NA,["type"]:"endpoint"}],["type"]:"tree"},{["conditions"]:[C,T,X,x,e],endpoint:NA,["type"]:"endpoint"},{["conditions"]:[C,w,X,n],endpoint:{["url"]:"https://s3-fips.us-east-1.{partitionResult#dnsSuffix}",["properties"]:t,["headers"]:B},["type"]:"endpoint"},{["conditions"]:[C,w,X,x,r],["rules"]:[{endpoint:ZA,["type"]:"endpoint"}],["type"]:"tree"},{["conditions"]:[C,w,X,x,e],endpoint:ZA,["type"]:"endpoint"},{["conditions"]:[D,T,X,n],endpoint:{["url"]:"https://s3.dualstack.us-east-1.{partitionResult#dnsSuffix}",["properties"]:t,["headers"]:B},["type"]:"endpoint"},{["conditions"]:[D,T,X,x,r],["rules"]:[{endpoint:JA,["type"]:"endpoint"}],["type"]:"tree"},{["conditions"]:[D,T,X,x,e],endpoint:JA,["type"]:"endpoint"},{["conditions"]:[D,w,k,Uc,n],endpoint:{["url"]:"{url#scheme}://{url#authority}{url#path}",["properties"]:t,["headers"]:B},["type"]:"endpoint"},{["conditions"]:[D,w,k,Uc,x,r],["rules"]:[{["conditions"]:ac,endpoint:a1,["type"]:"endpoint"},{endpoint:a1,["type"]:"endpoint"}],["type"]:"tree"},{["conditions"]:[D,w,k,Uc,x,e],endpoint:a1,["type"]:"endpoint"},{["conditions"]:[D,w,X,n],endpoint:{["url"]:"https://s3.{partitionResult#dnsSuffix}",["properties"]:t,["headers"]:B},["type"]:"endpoint"},{["conditions"]:[D,w,X,x,r],["rules"]:[{["conditions"]:ac,endpoint:{["url"]:"https://s3.{partitionResult#dnsSuffix}",["properties"]:_,["headers"]:B},["type"]:"endpoint"},{endpoint:zA,["type"]:"endpoint"}],["type"]:"tree"},{["conditions"]:[D,w,X,x,e],endpoint:zA,["type"]:"endpoint"}],["type"]:"tree"},K0],["type"]:"tree"}],["type"]:"tree"}],["type"]:"tree"},{error:"A region must be set when sending requests to S3.",["type"]:"error"}]},dA=SW;var XW=new Tf.EndpointCache({size:50,params:["Accelerate","Bucket","DisableAccessPoints","DisableMultiRegionAccessPoints","DisableS3ExpressSessionAuth","Endpoint","ForcePathStyle","Region","UseArnRegion","UseDualStack","UseFIPS","UseGlobalEndpoint","UseObjectLambdaEndpoint","UseS3ExpressControlEndpoint"]}),b0=(c,f={})=>{return XW.get(c,()=>Tf.resolveEndpoint(dA,{endpointParams:c,logger:f.logger}))};Tf.customEndpointFunctions.aws=_A.awsEndpointFunctions;var QW=(c)=>async(f,R,h)=>{if(!h)throw Error("Could not find `input` for `defaultEndpointRuleSetHttpAuthSchemeParametersProvider`");let $=await c(f,R,h),H=gf.getSmithyContext(R)?.commandInstance?.constructor?.getEndpointParameterInstructions;if(!H)throw Error(`getEndpointParameterInstructions() is not defined on '${R.commandName}'`);let A=await nA.resolveParams(h,{getEndpointParameterInstructions:H},f);return Object.assign($,A)},DW=async(c,f,R)=>{return{operation:gf.getSmithyContext(f).operation,region:await gf.normalizeProvider(c.region)()||(()=>{throw Error("expected `region` to be configured for `aws.auth#sigv4`")})()}},oA=QW(DW);function aA(c){return{schemeId:"aws.auth#sigv4",signingProperties:{name:"s3",region:c.region},propertiesExtractor:(f,R)=>({signingProperties:{config:f,context:R}})}}function tA(c){return{schemeId:"aws.auth#sigv4a",signingProperties:{name:"s3",region:c.region},propertiesExtractor:(f,R)=>({signingProperties:{config:f,context:R}})}}var jW=(c,f,R)=>{return($)=>{let A=c($).properties?.authSchemes;if(!A)return f($);let G=[];for(let y of A){let{name:F,properties:U={},...N}=y,z=F.toLowerCase();if(F!==z)console.warn(`HttpAuthScheme has been normalized with lowercasing: '${F}' to '${z}'`);let Z;if(z==="sigv4a"){Z="aws.auth#sigv4a";let a=A.find((Pc)=>{let Kc=Pc.name.toLowerCase();return Kc!=="sigv4a"&&Kc.startsWith("sigv4")});if(LR.sigv4aDependency()==="none"&&a)continue}else if(z.startsWith("sigv4"))Z="aws.auth#sigv4";else throw Error(`Unknown HttpAuthScheme found in '@smithy.rules#endpointRuleSet': '${z}'`);let j=R[Z];if(!j)throw Error(`Could not find HttpAuthOption create function for '${Z}'`);let V=j($);V.schemeId=Z,V.signingProperties={...V.signingProperties||{},...N,...U},G.push(V)}return G}},wW=(c)=>{let f=[];switch(c.operation){default:f.push(aA(c)),f.push(tA(c))}return f},rA=jW(b0,wW,{"aws.auth#sigv4":aA,"aws.auth#sigv4a":tA}),eA=(c)=>{let f=q0.resolveAwsSdkSigV4Config(c),R=q0.resolveAwsSdkSigV4AConfig(f);return Object.assign(R,{authSchemePreference:gf.normalizeProvider(c.authSchemePreference??[])})};var WG=Y(uf(),1),vG=Y(Oc(),1);var cG=(c)=>{return Object.assign(c,{useFipsEndpoint:c.useFipsEndpoint??!1,useDualstackEndpoint:c.useDualstackEndpoint??!1,forcePathStyle:c.forcePathStyle??!1,useAccelerateEndpoint:c.useAccelerateEndpoint??!1,useGlobalEndpoint:c.useGlobalEndpoint??!1,disableMultiregionAccessPoints:c.disableMultiregionAccessPoints??!1,defaultSigningName:"s3",clientContextParams:c.clientContextParams??{}})},tc={ForcePathStyle:{type:"clientContextParams",name:"forcePathStyle"},UseArnRegion:{type:"clientContextParams",name:"useArnRegion"},DisableMultiRegionAccessPoints:{type:"clientContextParams",name:"disableMultiregionAccessPoints"},Accelerate:{type:"clientContextParams",name:"useAccelerateEndpoint"},DisableS3ExpressSessionAuth:{type:"clientContextParams",name:"disableS3ExpressSessionAuth"},UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}};var Wc=Y(hG(),1);var fG=Y(Oc(),1);class o extends fG.ServiceException{constructor(c){super(c);Object.setPrototypeOf(this,o.prototype)}}class V0 extends o{name="NoSuchUpload";$fault="client";constructor(c){super({name:"NoSuchUpload",$fault:"client",...c});Object.setPrototypeOf(this,V0.prototype)}}class E0 extends o{name="ObjectNotInActiveTierError";$fault="client";constructor(c){super({name:"ObjectNotInActiveTierError",$fault:"client",...c});Object.setPrototypeOf(this,E0.prototype)}}class T0 extends o{name="BucketAlreadyExists";$fault="client";constructor(c){super({name:"BucketAlreadyExists",$fault:"client",...c});Object.setPrototypeOf(this,T0.prototype)}}class u0 extends o{name="BucketAlreadyOwnedByYou";$fault="client";constructor(c){super({name:"BucketAlreadyOwnedByYou",$fault:"client",...c});Object.setPrototypeOf(this,u0.prototype)}}class g0 extends o{name="NoSuchBucket";$fault="client";constructor(c){super({name:"NoSuchBucket",$fault:"client",...c});Object.setPrototypeOf(this,g0.prototype)}}class C0 extends o{name="InvalidObjectState";$fault="client";StorageClass;AccessTier;constructor(c){super({name:"InvalidObjectState",$fault:"client",...c});Object.setPrototypeOf(this,C0.prototype),this.StorageClass=c.StorageClass,this.AccessTier=c.AccessTier}}class m0 extends o{name="NoSuchKey";$fault="client";constructor(c){super({name:"NoSuchKey",$fault:"client",...c});Object.setPrototypeOf(this,m0.prototype)}}class p0 extends o{name="NotFound";$fault="client";constructor(c){super({name:"NotFound",$fault:"client",...c});Object.setPrototypeOf(this,p0.prototype)}}class s0 extends o{name="EncryptionTypeMismatch";$fault="client";constructor(c){super({name:"EncryptionTypeMismatch",$fault:"client",...c});Object.setPrototypeOf(this,s0.prototype)}}class i0 extends o{name="InvalidRequest";$fault="client";constructor(c){super({name:"InvalidRequest",$fault:"client",...c});Object.setPrototypeOf(this,i0.prototype)}}class k0 extends o{name="InvalidWriteOffset";$fault="client";constructor(c){super({name:"InvalidWriteOffset",$fault:"client",...c});Object.setPrototypeOf(this,k0.prototype)}}class l0 extends o{name="TooManyParts";$fault="client";constructor(c){super({name:"TooManyParts",$fault:"client",...c});Object.setPrototypeOf(this,l0.prototype)}}class d0 extends o{name="IdempotencyParameterMismatch";$fault="client";constructor(c){super({name:"IdempotencyParameterMismatch",$fault:"client",...c});Object.setPrototypeOf(this,d0.prototype)}}class _0 extends o{name="ObjectAlreadyInActiveTierError";$fault="client";constructor(c){super({name:"ObjectAlreadyInActiveTierError",$fault:"client",...c});Object.setPrototypeOf(this,_0.prototype)}}var RG=[0,"com.amazonaws.s3","SessionCredentialValue",8,0],$G=[0,"com.amazonaws.s3","SSECustomerKey",8,0],n0=[0,"com.amazonaws.s3","SSEKMSEncryptionContext",8,0],qR=[0,"com.amazonaws.s3","SSEKMSKeyId",8,0],HG=[0,"com.amazonaws.s3","StreamingBlob",{["streaming"]:1},42];var LW=[-3,"com.amazonaws.s3","BucketAlreadyExists",{["error"]:"client",["httpError"]:409},[],[]];Wc.TypeRegistry.for("com.amazonaws.s3").registerError(LW,T0);var xW=[-3,"com.amazonaws.s3","BucketAlreadyOwnedByYou",{["error"]:"client",["httpError"]:409},[],[]];Wc.TypeRegistry.for("com.amazonaws.s3").registerError(xW,u0);var IW=[3,"com.amazonaws.s3","CommonPrefix",0,["Prefix"],[0]];var PW=[3,"com.amazonaws.s3","CreateSessionOutput",{["xmlName"]:"CreateSessionResult"},["ServerSideEncryption","SSEKMSKeyId","SSEKMSEncryptionContext","BucketKeyEnabled","Credentials"],[[0,{["httpHeader"]:"x-amz-server-side-encryption"}],[()=>qR,{["httpHeader"]:"x-amz-server-side-encryption-aws-kms-key-id"}],[()=>n0,{["httpHeader"]:"x-amz-server-side-encryption-context"}],[2,{["httpHeader"]:"x-amz-server-side-encryption-bucket-key-enabled"}],[()=>tW,{["xmlName"]:"Credentials"}]]],KW=[3,"com.amazonaws.s3","CreateSessionRequest",0,["SessionMode","Bucket","ServerSideEncryption","SSEKMSKeyId","SSEKMSEncryptionContext","BucketKeyEnabled"],[[0,{["httpHeader"]:"x-amz-create-session-mode"}],[0,1],[0,{["httpHeader"]:"x-amz-server-side-encryption"}],[()=>qR,{["httpHeader"]:"x-amz-server-side-encryption-aws-kms-key-id"}],[()=>n0,{["httpHeader"]:"x-amz-server-side-encryption-context"}],[2,{["httpHeader"]:"x-amz-server-side-encryption-bucket-key-enabled"}]]];var OW=[-3,"com.amazonaws.s3","EncryptionTypeMismatch",{["error"]:"client",["httpError"]:400},[],[]];Wc.TypeRegistry.for("com.amazonaws.s3").registerError(OW,s0);var bW=[3,"com.amazonaws.s3","GetObjectOutput",0,["Body","DeleteMarker","AcceptRanges","Expiration","Restore","LastModified","ContentLength","ETag","ChecksumCRC32","ChecksumCRC32C","ChecksumCRC64NVME","ChecksumSHA1","ChecksumSHA256","ChecksumType","MissingMeta","VersionId","CacheControl","ContentDisposition","ContentEncoding","ContentLanguage","ContentRange","ContentType","Expires","ExpiresString","WebsiteRedirectLocation","ServerSideEncryption","Metadata","SSECustomerAlgorithm","SSECustomerKeyMD5","SSEKMSKeyId","BucketKeyEnabled","StorageClass","RequestCharged","ReplicationStatus","PartsCount","TagCount","ObjectLockMode","ObjectLockRetainUntilDate","ObjectLockLegalHoldStatus"],[[()=>HG,16],[2,{["httpHeader"]:"x-amz-delete-marker"}],[0,{["httpHeader"]:"accept-ranges"}],[0,{["httpHeader"]:"x-amz-expiration"}],[0,{["httpHeader"]:"x-amz-restore"}],[4,{["httpHeader"]:"Last-Modified"}],[1,{["httpHeader"]:"Content-Length"}],[0,{["httpHeader"]:"ETag"}],[0,{["httpHeader"]:"x-amz-checksum-crc32"}],[0,{["httpHeader"]:"x-amz-checksum-crc32c"}],[0,{["httpHeader"]:"x-amz-checksum-crc64nvme"}],[0,{["httpHeader"]:"x-amz-checksum-sha1"}],[0,{["httpHeader"]:"x-amz-checksum-sha256"}],[0,{["httpHeader"]:"x-amz-checksum-type"}],[1,{["httpHeader"]:"x-amz-missing-meta"}],[0,{["httpHeader"]:"x-amz-version-id"}],[0,{["httpHeader"]:"Cache-Control"}],[0,{["httpHeader"]:"Content-Disposition"}],[0,{["httpHeader"]:"Content-Encoding"}],[0,{["httpHeader"]:"Content-Language"}],[0,{["httpHeader"]:"Content-Range"}],[0,{["httpHeader"]:"Content-Type"}],[4,{["httpHeader"]:"Expires"}],[0,{["httpHeader"]:"ExpiresString"}],[0,{["httpHeader"]:"x-amz-website-redirect-location"}],[0,{["httpHeader"]:"x-amz-server-side-encryption"}],[128,{["httpPrefixHeaders"]:"x-amz-meta-"}],[0,{["httpHeader"]:"x-amz-server-side-encryption-customer-algorithm"}],[0,{["httpHeader"]:"x-amz-server-side-encryption-customer-key-MD5"}],[()=>qR,{["httpHeader"]:"x-amz-server-side-encryption-aws-kms-key-id"}],[2,{["httpHeader"]:"x-amz-server-side-encryption-bucket-key-enabled"}],[0,{["httpHeader"]:"x-amz-storage-class"}],[0,{["httpHeader"]:"x-amz-request-charged"}],[0,{["httpHeader"]:"x-amz-replication-status"}],[1,{["httpHeader"]:"x-amz-mp-parts-count"}],[1,{["httpHeader"]:"x-amz-tagging-count"}],[0,{["httpHeader"]:"x-amz-object-lock-mode"}],[5,{["httpHeader"]:"x-amz-object-lock-retain-until-date"}],[0,{["httpHeader"]:"x-amz-object-lock-legal-hold"}]]],qW=[3,"com.amazonaws.s3","GetObjectRequest",0,["Bucket","IfMatch","IfModifiedSince","IfNoneMatch","IfUnmodifiedSince","Key","Range","ResponseCacheControl","ResponseContentDisposition","ResponseContentEncoding","ResponseContentLanguage","ResponseContentType","ResponseExpires","VersionId","SSECustomerAlgorithm","SSECustomerKey","SSECustomerKeyMD5","RequestPayer","PartNumber","ExpectedBucketOwner","ChecksumMode"],[[0,1],[0,{["httpHeader"]:"If-Match"}],[4,{["httpHeader"]:"If-Modified-Since"}],[0,{["httpHeader"]:"If-None-Match"}],[4,{["httpHeader"]:"If-Unmodified-Since"}],[0,1],[0,{["httpHeader"]:"Range"}],[0,{["httpQuery"]:"response-cache-control"}],[0,{["httpQuery"]:"response-content-disposition"}],[0,{["httpQuery"]:"response-content-encoding"}],[0,{["httpQuery"]:"response-content-language"}],[0,{["httpQuery"]:"response-content-type"}],[6,{["httpQuery"]:"response-expires"}],[0,{["httpQuery"]:"versionId"}],[0,{["httpHeader"]:"x-amz-server-side-encryption-customer-algorithm"}],[()=>$G,{["httpHeader"]:"x-amz-server-side-encryption-customer-key"}],[0,{["httpHeader"]:"x-amz-server-side-encryption-customer-key-MD5"}],[0,{["httpHeader"]:"x-amz-request-payer"}],[1,{["httpQuery"]:"partNumber"}],[0,{["httpHeader"]:"x-amz-expected-bucket-owner"}],[0,{["httpHeader"]:"x-amz-checksum-mode"}]]];var VW=[-3,"com.amazonaws.s3","IdempotencyParameterMismatch",{["error"]:"client",["httpError"]:400},[],[]];Wc.TypeRegistry.for("com.amazonaws.s3").registerError(VW,d0);var EW=[-3,"com.amazonaws.s3","InvalidObjectState",{["error"]:"client",["httpError"]:403},["StorageClass","AccessTier"],[0,0]];Wc.TypeRegistry.for("com.amazonaws.s3").registerError(EW,C0);var TW=[-3,"com.amazonaws.s3","InvalidRequest",{["error"]:"client",["httpError"]:400},[],[]];Wc.TypeRegistry.for("com.amazonaws.s3").registerError(TW,i0);var uW=[-3,"com.amazonaws.s3","InvalidWriteOffset",{["error"]:"client",["httpError"]:400},[],[]];Wc.TypeRegistry.for("com.amazonaws.s3").registerError(uW,k0);var gW=[3,"com.amazonaws.s3","ListObjectsV2Output",{["xmlName"]:"ListBucketResult"},["IsTruncated","Contents","Name","Prefix","Delimiter","MaxKeys","CommonPrefixes","EncodingType","KeyCount","ContinuationToken","NextContinuationToken","StartAfter","RequestCharged"],[2,[()=>fv,{["xmlFlattened"]:1}],0,0,0,1,[()=>cv,{["xmlFlattened"]:1}],0,1,0,0,0,[0,{["httpHeader"]:"x-amz-request-charged"}]]],CW=[3,"com.amazonaws.s3","ListObjectsV2Request",0,["Bucket","Delimiter","EncodingType","MaxKeys","Prefix","ContinuationToken","FetchOwner","StartAfter","RequestPayer","ExpectedBucketOwner","OptionalObjectAttributes"],[[0,1],[0,{["httpQuery"]:"delimiter"}],[0,{["httpQuery"]:"encoding-type"}],[1,{["httpQuery"]:"max-keys"}],[0,{["httpQuery"]:"prefix"}],[0,{["httpQuery"]:"continuation-token"}],[2,{["httpQuery"]:"fetch-owner"}],[0,{["httpQuery"]:"start-after"}],[0,{["httpHeader"]:"x-amz-request-payer"}],[0,{["httpHeader"]:"x-amz-expected-bucket-owner"}],[64,{["httpHeader"]:"x-amz-optional-object-attributes"}]]];var mW=[-3,"com.amazonaws.s3","NoSuchBucket",{["error"]:"client",["httpError"]:404},[],[]];Wc.TypeRegistry.for("com.amazonaws.s3").registerError(mW,g0);var pW=[-3,"com.amazonaws.s3","NoSuchKey",{["error"]:"client",["httpError"]:404},[],[]];Wc.TypeRegistry.for("com.amazonaws.s3").registerError(pW,m0);var sW=[-3,"com.amazonaws.s3","NoSuchUpload",{["error"]:"client",["httpError"]:404},[],[]];Wc.TypeRegistry.for("com.amazonaws.s3").registerError(sW,V0);var iW=[-3,"com.amazonaws.s3","NotFound",{["error"]:"client"},[],[]];Wc.TypeRegistry.for("com.amazonaws.s3").registerError(iW,p0);var kW=[3,"com.amazonaws.s3","Object",0,["Key","LastModified","ETag","ChecksumAlgorithm","ChecksumType","Size","StorageClass","Owner","RestoreStatus"],[0,4,0,[64,{["xmlFlattened"]:1}],0,1,0,()=>_W,()=>aW]],lW=[-3,"com.amazonaws.s3","ObjectAlreadyInActiveTierError",{["error"]:"client",["httpError"]:403},[],[]];Wc.TypeRegistry.for("com.amazonaws.s3").registerError(lW,_0);var dW=[-3,"com.amazonaws.s3","ObjectNotInActiveTierError",{["error"]:"client",["httpError"]:403},[],[]];Wc.TypeRegistry.for("com.amazonaws.s3").registerError(dW,E0);var _W=[3,"com.amazonaws.s3","Owner",0,["DisplayName","ID"],[0,0]];var nW=[3,"com.amazonaws.s3","PutObjectOutput",0,["Expiration","ETag","ChecksumCRC32","ChecksumCRC32C","ChecksumCRC64NVME","ChecksumSHA1","ChecksumSHA256","ChecksumType","ServerSideEncryption","VersionId","SSECustomerAlgorithm","SSECustomerKeyMD5","SSEKMSKeyId","SSEKMSEncryptionContext","BucketKeyEnabled","Size","RequestCharged"],[[0,{["httpHeader"]:"x-amz-expiration"}],[0,{["httpHeader"]:"ETag"}],[0,{["httpHeader"]:"x-amz-checksum-crc32"}],[0,{["httpHeader"]:"x-amz-checksum-crc32c"}],[0,{["httpHeader"]:"x-amz-checksum-crc64nvme"}],[0,{["httpHeader"]:"x-amz-checksum-sha1"}],[0,{["httpHeader"]:"x-amz-checksum-sha256"}],[0,{["httpHeader"]:"x-amz-checksum-type"}],[0,{["httpHeader"]:"x-amz-server-side-encryption"}],[0,{["httpHeader"]:"x-amz-version-id"}],[0,{["httpHeader"]:"x-amz-server-side-encryption-customer-algorithm"}],[0,{["httpHeader"]:"x-amz-server-side-encryption-customer-key-MD5"}],[()=>qR,{["httpHeader"]:"x-amz-server-side-encryption-aws-kms-key-id"}],[()=>n0,{["httpHeader"]:"x-amz-server-side-encryption-context"}],[2,{["httpHeader"]:"x-amz-server-side-encryption-bucket-key-enabled"}],[1,{["httpHeader"]:"x-amz-object-size"}],[0,{["httpHeader"]:"x-amz-request-charged"}]]],oW=[3,"com.amazonaws.s3","PutObjectRequest",0,["ACL","Body","Bucket","CacheControl","ContentDisposition","ContentEncoding","ContentLanguage","ContentLength","ContentMD5","ContentType","ChecksumAlgorithm","ChecksumCRC32","ChecksumCRC32C","ChecksumCRC64NVME","ChecksumSHA1","ChecksumSHA256","Expires","IfMatch","IfNoneMatch","GrantFullControl","GrantRead","GrantReadACP","GrantWriteACP","Key","WriteOffsetBytes","Metadata","ServerSideEncryption","StorageClass","WebsiteRedirectLocation","SSECustomerAlgorithm","SSECustomerKey","SSECustomerKeyMD5","SSEKMSKeyId","SSEKMSEncryptionContext","BucketKeyEnabled","RequestPayer","Tagging","ObjectLockMode","ObjectLockRetainUntilDate","ObjectLockLegalHoldStatus","ExpectedBucketOwner"],[[0,{["httpHeader"]:"x-amz-acl"}],[()=>HG,16],[0,1],[0,{["httpHeader"]:"Cache-Control"}],[0,{["httpHeader"]:"Content-Disposition"}],[0,{["httpHeader"]:"Content-Encoding"}],[0,{["httpHeader"]:"Content-Language"}],[1,{["httpHeader"]:"Content-Length"}],[0,{["httpHeader"]:"Content-MD5"}],[0,{["httpHeader"]:"Content-Type"}],[0,{["httpHeader"]:"x-amz-sdk-checksum-algorithm"}],[0,{["httpHeader"]:"x-amz-checksum-crc32"}],[0,{["httpHeader"]:"x-amz-checksum-crc32c"}],[0,{["httpHeader"]:"x-amz-checksum-crc64nvme"}],[0,{["httpHeader"]:"x-amz-checksum-sha1"}],[0,{["httpHeader"]:"x-amz-checksum-sha256"}],[4,{["httpHeader"]:"Expires"}],[0,{["httpHeader"]:"If-Match"}],[0,{["httpHeader"]:"If-None-Match"}],[0,{["httpHeader"]:"x-amz-grant-full-control"}],[0,{["httpHeader"]:"x-amz-grant-read"}],[0,{["httpHeader"]:"x-amz-grant-read-acp"}],[0,{["httpHeader"]:"x-amz-grant-write-acp"}],[0,1],[1,{["httpHeader"]:"x-amz-write-offset-bytes"}],[128,{["httpPrefixHeaders"]:"x-amz-meta-"}],[0,{["httpHeader"]:"x-amz-server-side-encryption"}],[0,{["httpHeader"]:"x-amz-storage-class"}],[0,{["httpHeader"]:"x-amz-website-redirect-location"}],[0,{["httpHeader"]:"x-amz-server-side-encryption-customer-algorithm"}],[()=>$G,{["httpHeader"]:"x-amz-server-side-encryption-customer-key"}],[0,{["httpHeader"]:"x-amz-server-side-encryption-customer-key-MD5"}],[()=>qR,{["httpHeader"]:"x-amz-server-side-encryption-aws-kms-key-id"}],[()=>n0,{["httpHeader"]:"x-amz-server-side-encryption-context"}],[2,{["httpHeader"]:"x-amz-server-side-encryption-bucket-key-enabled"}],[0,{["httpHeader"]:"x-amz-request-payer"}],[0,{["httpHeader"]:"x-amz-tagging"}],[0,{["httpHeader"]:"x-amz-object-lock-mode"}],[5,{["httpHeader"]:"x-amz-object-lock-retain-until-date"}],[0,{["httpHeader"]:"x-amz-object-lock-legal-hold"}],[0,{["httpHeader"]:"x-amz-expected-bucket-owner"}]]];var aW=[3,"com.amazonaws.s3","RestoreStatus",0,["IsRestoreInProgress","RestoreExpiryDate"],[2,4]];var tW=[3,"com.amazonaws.s3","SessionCredentials",0,["AccessKeyId","SecretAccessKey","SessionToken","Expiration"],[[0,{["xmlName"]:"AccessKeyId"}],[()=>RG,{["xmlName"]:"SecretAccessKey"}],[()=>RG,{["xmlName"]:"SessionToken"}],[4,{["xmlName"]:"Expiration"}]]];var rW=[-3,"com.amazonaws.s3","TooManyParts",{["error"]:"client",["httpError"]:400},[],[]];Wc.TypeRegistry.for("com.amazonaws.s3").registerError(rW,l0);var eW=[-3,"smithy.ts.sdk.synthetic.com.amazonaws.s3","S3ServiceException",0,[],[]];Wc.TypeRegistry.for("smithy.ts.sdk.synthetic.com.amazonaws.s3").registerError(eW,o);var cv=[1,"com.amazonaws.s3","CommonPrefixList",0,()=>IW];var fv=[1,"com.amazonaws.s3","ObjectList",0,[()=>kW,0]];var AG=[9,"com.amazonaws.s3","CreateSession",{["http"]:["GET","/?session",200]},()=>KW,()=>PW];var GG=[9,"com.amazonaws.s3","GetObject",{["httpChecksum"]:"-",["http"]:["GET","/{Key+}?x-id=GetObject",200]},()=>qW,()=>bW];var yG=[9,"com.amazonaws.s3","ListObjectsV2",{["http"]:["GET","/?list-type=2",200]},()=>CW,()=>gW];var FG=[9,"com.amazonaws.s3","PutObject",{["httpChecksum"]:"-",["http"]:["PUT","/{Key+}?x-id=PutObject",200]},()=>oW,()=>nW];class y$ extends vG.Command.classBuilder().ep({...tc,DisableS3ExpressSessionAuth:{type:"staticContextParams",value:!0},Bucket:{type:"contextParams",name:"Bucket"}}).m(function(c,f,R,h){return[WG.getEndpointPlugin(R,c.getEndpointParameterInstructions()),bf(R)]}).s("AmazonS3","CreateSession",{}).n("S3Client","CreateSessionCommand").sc(AG).build(){}var UG={name:"@aws-sdk/client-s3",description:"AWS SDK for JavaScript S3 Client for Node.js, Browser and React Native",version:"3.968.0",scripts:{build:"concurrently 'yarn:build:types' 'yarn:build:es' && yarn build:cjs","build:cjs":"node ../../scripts/compilation/inline client-s3","build:es":"tsc -p tsconfig.es.json","build:include:deps":'yarn g:turbo run build -F="$npm_package_name"',"build:types":"tsc -p tsconfig.types.json","build:types:downlevel":"downlevel-dts dist-types dist-types/ts3.4",clean:"rimraf ./dist-* && rimraf *.tsbuildinfo","extract:docs":"api-extractor run --local","generate:client":"node ../../scripts/generate-clients/single-service --solo s3",test:"yarn g:vitest run","test:browser":"node ./test/browser-build/esbuild && yarn g:vitest run -c vitest.config.browser.mts","test:browser:watch":"node ./test/browser-build/esbuild && yarn g:vitest watch -c vitest.config.browser.mts","test:e2e":"yarn g:vitest run -c vitest.config.e2e.mts && yarn test:browser","test:e2e:watch":"yarn g:vitest watch -c vitest.config.e2e.mts","test:index":"tsc --noEmit ./test/index-types.ts && node ./test/index-objects.spec.mjs","test:integration":"yarn g:vitest run -c vitest.config.integ.mts","test:integration:watch":"yarn g:vitest watch -c vitest.config.integ.mts","test:watch":"yarn g:vitest watch"},main:"./dist-cjs/index.js",types:"./dist-types/index.d.ts",module:"./dist-es/index.js",sideEffects:!1,dependencies:{"@aws-crypto/sha1-browser":"5.2.0","@aws-crypto/sha256-browser":"5.2.0","@aws-crypto/sha256-js":"5.2.0","@aws-sdk/core":"3.968.0","@aws-sdk/credential-provider-node":"3.968.0","@aws-sdk/middleware-bucket-endpoint":"3.968.0","@aws-sdk/middleware-expect-continue":"3.968.0","@aws-sdk/middleware-flexible-checksums":"3.968.0","@aws-sdk/middleware-host-header":"3.968.0","@aws-sdk/middleware-location-constraint":"3.968.0","@aws-sdk/middleware-logger":"3.968.0","@aws-sdk/middleware-recursion-detection":"3.968.0","@aws-sdk/middleware-sdk-s3":"3.968.0","@aws-sdk/middleware-ssec":"3.968.0","@aws-sdk/middleware-user-agent":"3.968.0","@aws-sdk/region-config-resolver":"3.968.0","@aws-sdk/signature-v4-multi-region":"3.968.0","@aws-sdk/types":"3.968.0","@aws-sdk/util-endpoints":"3.968.0","@aws-sdk/util-user-agent-browser":"3.968.0","@aws-sdk/util-user-agent-node":"3.968.0","@smithy/config-resolver":"^4.4.5","@smithy/core":"^3.20.3","@smithy/eventstream-serde-browser":"^4.2.7","@smithy/eventstream-serde-config-resolver":"^4.3.7","@smithy/eventstream-serde-node":"^4.2.7","@smithy/fetch-http-handler":"^5.3.8","@smithy/hash-blob-browser":"^4.2.8","@smithy/hash-node":"^4.2.7","@smithy/hash-stream-node":"^4.2.7","@smithy/invalid-dependency":"^4.2.7","@smithy/md5-js":"^4.2.7","@smithy/middleware-content-length":"^4.2.7","@smithy/middleware-endpoint":"^4.4.4","@smithy/middleware-retry":"^4.4.20","@smithy/middleware-serde":"^4.2.8","@smithy/middleware-stack":"^4.2.7","@smithy/node-config-provider":"^4.3.7","@smithy/node-http-handler":"^4.4.7","@smithy/protocol-http":"^5.3.7","@smithy/smithy-client":"^4.10.5","@smithy/types":"^4.11.0","@smithy/url-parser":"^4.2.7","@smithy/util-base64":"^4.3.0","@smithy/util-body-length-browser":"^4.2.0","@smithy/util-body-length-node":"^4.2.1","@smithy/util-defaults-mode-browser":"^4.3.19","@smithy/util-defaults-mode-node":"^4.2.22","@smithy/util-endpoints":"^3.2.7","@smithy/util-middleware":"^4.2.7","@smithy/util-retry":"^4.2.7","@smithy/util-stream":"^4.5.8","@smithy/util-utf8":"^4.2.0","@smithy/util-waiter":"^4.2.7",tslib:"^2.6.2"},devDependencies:{"@aws-sdk/signature-v4-crt":"3.968.0","@tsconfig/node20":"20.1.8","@types/node":"^20.14.8",concurrently:"7.0.0","downlevel-dts":"0.10.1",rimraf:"5.0.10",typescript:"~5.8.3"},engines:{node:">=20.0.0"},typesVersions:{"<4.0":{"dist-types/*":["dist-types/ts3.4/*"]}},files:["dist-*/**"],author:{name:"AWS SDK for JavaScript Team",url:"https://aws.amazon.com/javascript/"},license:"Apache-2.0",browser:{"./dist-es/runtimeConfig":"./dist-es/runtimeConfig.browser"},"react-native":{"./dist-es/runtimeConfig":"./dist-es/runtimeConfig.native"},homepage:"https://github.com/aws/aws-sdk-js-v3/tree/main/clients/client-s3",repository:{type:"git",url:"https://github.com/aws/aws-sdk-js-v3.git",directory:"clients/client-s3"}};var pf=Y(Kf(),1);var a0=Y(NG(),1),XG=Y($v(),1);var o0=Y(NG(),1),YG="AWS_EC2_METADATA_DISABLED",ZG=async(c)=>{let{ENV_CMDS_FULL_URI:f,ENV_CMDS_RELATIVE_URI:R,fromContainerMetadata:h,fromInstanceMetadata:$}=await import("./chunk-nmnvzhbg.js");if(process.env[R]||process.env[f]){c.logger?.debug("@aws-sdk/credential-provider-node - remoteProvider::fromHttp/fromContainerMetadata");let{fromHttp:H}=await import("./chunk-36rsqj4c.js");return o0.chain(H(c),h(c))}if(process.env[YG]&&process.env[YG]!=="false")return async()=>{throw new o0.CredentialsProviderError("EC2 Instance Metadata Service access disabled",{logger:c.logger})};return c.logger?.debug("@aws-sdk/credential-provider-node - remoteProvider::fromInstanceMetadata"),$(c)};function JG(c,f){let R=hv(c),h,$,H,A=async(G)=>{if(G?.forceRefresh)return await R(G);if(H?.expiration){if(H?.expiration?.getTime()<Date.now())H=void 0}if(h)await h;else if(!H||f?.(H))if(H){if(!$)$=R(G).then((y)=>{H=y,$=void 0})}else return h=R(G).then((y)=>{H=y,h=void 0}),A(G);return H};return A}var hv=(c)=>async(f)=>{let R;for(let h of c)try{return await h(f)}catch($){if(R=$,$?.tryNextLink)continue;throw $}throw R};var zG=!1,QG=(c={})=>JG([async()=>{if(c.profile??process.env[XG.ENV_PROFILE]){if(process.env[SG]&&process.env[MG]){if(!zG)(c.logger?.warn&&c.logger?.constructor?.name!=="NoOpLogger"?c.logger.warn.bind(c.logger):console.warn)(`@aws-sdk/credential-provider-node - defaultProvider::fromEnv WARNING:
39
+ `)===-1);else{if(!(R.is_inline_element||R.is_unformatted))c.print_newline(!1);this._calcluate_parent_multiline(c,R)}}else if(R.is_end_tag){var A=!1;if(A=R.start_tag_token&&R.start_tag_token.multiline_content,A=A||!R.is_inline_element&&!(h.is_inline_element||h.is_unformatted)&&!($.type===q.TAG_CLOSE&&R.start_tag_token===h)&&$.type!=="TK_CONTENT",R.is_content_unformatted||R.is_unformatted)A=!1;if(A)c.print_newline(!1)}else{if(R.indent_content=!R.custom_beautifier_name,R.tag_start_char==="<"){if(R.tag_name==="html")R.indent_content=this._options.indent_inner_html;else if(R.tag_name==="head")R.indent_content=this._options.indent_head_inner_html;else if(R.tag_name==="body")R.indent_content=this._options.indent_body_inner_html}if(!(R.is_inline_element||R.is_unformatted)&&($.type!=="TK_CONTENT"||R.is_content_unformatted))c.print_newline(!1);this._calcluate_parent_multiline(c,R)}};Jc.prototype._calcluate_parent_multiline=function(c,f){if(f.parent&&c._output.just_added_newline()&&!((f.is_inline_element||f.is_unformatted)&&f.parent.is_inline_element))f.parent.multiline_content=!0};var Z7=["address","article","aside","blockquote","details","div","dl","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hr","main","menu","nav","ol","p","pre","section","table","ul"],J7=["a","audio","del","ins","map","noscript","video"];Jc.prototype._do_optional_end_element=function(c){var f=null;if(c.is_empty_element||!c.is_start_tag||!c.parent)return;if(c.tag_name==="body")f=f||this._tag_stack.try_pop("head");else if(c.tag_name==="li")f=f||this._tag_stack.try_pop("li",["ol","ul","menu"]);else if(c.tag_name==="dd"||c.tag_name==="dt")f=f||this._tag_stack.try_pop("dt",["dl"]),f=f||this._tag_stack.try_pop("dd",["dl"]);else if(c.parent.tag_name==="p"&&Z7.indexOf(c.tag_name)!==-1){var R=c.parent.parent;if(!R||J7.indexOf(R.tag_name)===-1)f=f||this._tag_stack.try_pop("p")}else if(c.tag_name==="rp"||c.tag_name==="rt")f=f||this._tag_stack.try_pop("rt",["ruby","rtc"]),f=f||this._tag_stack.try_pop("rp",["ruby","rtc"]);else if(c.tag_name==="optgroup")f=f||this._tag_stack.try_pop("optgroup",["select"]);else if(c.tag_name==="option")f=f||this._tag_stack.try_pop("option",["select","datalist","optgroup"]);else if(c.tag_name==="colgroup")f=f||this._tag_stack.try_pop("caption",["table"]);else if(c.tag_name==="thead")f=f||this._tag_stack.try_pop("caption",["table"]),f=f||this._tag_stack.try_pop("colgroup",["table"]);else if(c.tag_name==="tbody"||c.tag_name==="tfoot")f=f||this._tag_stack.try_pop("caption",["table"]),f=f||this._tag_stack.try_pop("colgroup",["table"]),f=f||this._tag_stack.try_pop("thead",["table"]),f=f||this._tag_stack.try_pop("tbody",["table"]);else if(c.tag_name==="tr")f=f||this._tag_stack.try_pop("caption",["table"]),f=f||this._tag_stack.try_pop("colgroup",["table"]),f=f||this._tag_stack.try_pop("tr",["table","thead","tbody","tfoot"]);else if(c.tag_name==="th"||c.tag_name==="td")f=f||this._tag_stack.try_pop("td",["table","thead","tbody","tfoot","tr"]),f=f||this._tag_stack.try_pop("th",["table","thead","tbody","tfoot","tr"]);return c.parent=this._tag_stack.get_parser_token(),f};z7.Beautifier=Jc});var Dy=p((IB,w8)=>{var M7=Qy().Beautifier,B7=B8().Options;function X7(c,f,R,h){var $=new M7(c,f,R,h);return $.beautify()}w8.exports=X7;w8.exports.defaultOptions=function(){return new B7}});var Iy=p((Q7,lh)=>{var wy=Hy(),jy=Yy(),Ly=Dy();function xy(c,f,R,h){return R=R||wy,h=h||jy,Ly(c,f,R,h)}xy.defaultOptions=Ly.defaultOptions;Q7.js=wy;Q7.css=jy;Q7.html=xy});var Oy=p((PB,Ky)=>{function Py(c,f,R){var h=function($,H){return c.js_beautify($,H)};return h.js=c.js_beautify,h.css=f.css_beautify,h.html=R.html_beautify,h.js_beautify=c.js_beautify,h.css_beautify=f.css_beautify,h.html_beautify=R.html_beautify,h}if(typeof define==="function"&&define.amd)define(["./lib/beautify","./lib/beautify-css","./lib/beautify-html"],function(c,f,R){return Py(c,f,R)});else(function(c){var f=Iy();f.js_beautify=f.js,f.css_beautify=f.css,f.html_beautify=f.html,c.exports=Py(f,f,f)})(Ky)});class Lf{}import{readdir as PF}from"fs/promises";class U0 extends Lf{folderPath;constructor(c=`${process.env.ROOT_DIR}/storage`){super();this.folderPath=c}async put(c){let f,R;if(c instanceof Blob)f=c,R=`${Bun.randomUUIDv7()}.${c.type.split("/")[1].split(";")[0]}`;else f=c.body,R=c.name;let h=f instanceof Buffer?f:f instanceof Blob||f instanceof File?Buffer.from(await f.arrayBuffer()):"",$=`${this.folderPath}/${R}`;return await Bun.write($,h),R}async fetch(c){let f=process.env.BUCKET_NAME,R;if(typeof c==="string")R=c;else f=c.bucket??f,R=c.name;if(!R)throw Error("Object name has to be specified");let h=`${this.folderPath}/${R}`,$=Bun.file(h),H=Bun.file(h).stream(),A=new Date($.lastModified).toUTCString();return new Response(H,{headers:{"Content-Type":$.type,"Content-Length":String($.size),"Cache-Control":"private, max-age=12000, must-revalidate","Last-Modified":A}})}async list(){return await PF(this.folderPath)}}class P4 extends l{driver=new U0;boot(){}}var K4=Y(kc(),1);function KF(c){return(f)=>async(R)=>{let{request:h}=R;if(c.expectContinueHeader!==!1&&K4.HttpRequest.isInstance(h)&&h.body&&c.runtime==="node"&&c.requestHandler?.constructor?.name!=="FetchHttpHandler"){let $=!0;if(typeof c.expectContinueHeader==="number")try{$=(Number(h.headers?.["content-length"])??c.bodyLengthChecker?.(h.body)??1/0)>=c.expectContinueHeader}catch(H){}else $=!!c.expectContinueHeader;if($)h.headers.Expect="100-continue"}return f({...R,request:h})}}var OF={step:"build",tags:["SET_EXPECT_HEADER","EXPECT_HEADER"],name:"addExpectContinueMiddleware",override:!0},O4=(c)=>({applyToStack:(f)=>{f.add(KF(c),OF)}});var Qc={WHEN_SUPPORTED:"WHEN_SUPPORTED",WHEN_REQUIRED:"WHEN_REQUIRED"},Y0=Qc.WHEN_SUPPORTED,Uf={WHEN_SUPPORTED:"WHEN_SUPPORTED",WHEN_REQUIRED:"WHEN_REQUIRED"},N0=Qc.WHEN_SUPPORTED,P;(function(c){c.MD5="MD5",c.CRC32="CRC32",c.CRC32C="CRC32C",c.CRC64NVME="CRC64NVME",c.SHA1="SHA1",c.SHA256="SHA256"})(P||(P={}));var b4;(function(c){c.HEADER="header",c.TRAILER="trailer"})(b4||(b4={}));var ZR=P.CRC32;var oc;(function(c){c.ENV="env",c.CONFIG="shared config entry"})(oc||(oc={}));var xf=(c,f,R,h)=>{if(!(f in c))return;let $=c[f].toUpperCase();if(!Object.values(R).includes($))throw TypeError(`Cannot load ${h} '${f}'. Expected one of ${Object.values(R)}, got '${c[f]}'.`);return $};var bF="AWS_REQUEST_CHECKSUM_CALCULATION",qF="request_checksum_calculation",q4={environmentVariableSelector:(c)=>xf(c,bF,Qc,oc.ENV),configFileSelector:(c)=>xf(c,qF,Qc,oc.CONFIG),default:Y0};var VF="AWS_RESPONSE_CHECKSUM_VALIDATION",EF="response_checksum_validation",V4={environmentVariableSelector:(c)=>xf(c,VF,Uf,oc.ENV),configFileSelector:(c)=>xf(c,EF,Uf,oc.CONFIG),default:N0};var Pf=Y(Kf(),1),d4=Y(kc(),1),_4=Y(X0(),1);var JR=[P.CRC32,P.CRC32C,P.CRC64NVME,P.SHA1,P.SHA256],E4=[P.SHA256,P.SHA1,P.CRC32,P.CRC32C,P.CRC64NVME];var T4=(c,{requestChecksumRequired:f,requestAlgorithmMember:R,requestChecksumCalculation:h})=>{if(!R)return h===Qc.WHEN_SUPPORTED||f?ZR:void 0;if(!c[R])return;let $=c[R];if(!JR.includes($))throw Error(`The checksum algorithm "${$}" is not supported by the client. Select one of ${JR}.`);return $};var If=(c)=>c===P.MD5?"content-md5":`x-amz-checksum-${c.toLowerCase()}`;var u4=(c,f)=>{let R=c.toLowerCase();for(let h of Object.keys(f))if(R===h.toLowerCase())return!0;return!1};var g4=(c,f)=>{let R=c.toLowerCase();for(let h of Object.keys(f))if(h.toLowerCase().startsWith(R))return!0;return!1};var C4=Y(TF(),1),Z0=(c)=>c!==void 0&&typeof c!=="string"&&!ArrayBuffer.isView(c)&&!C4.isArrayBuffer(c);var m4=Y(uF(),1),{__extends:EJ,__assign:TJ,__rest:uJ,__decorate:gJ,__param:CJ,__esDecorate:mJ,__runInitializers:pJ,__propKey:sJ,__setFunctionName:iJ,__metadata:kJ,__awaiter:J0,__generator:z0,__exportStar:lJ,__createBinding:dJ,__values:S0,__read:_J,__spread:nJ,__spreadArrays:oJ,__spreadArray:aJ,__await:tJ,__asyncGenerator:rJ,__asyncDelegator:eJ,__asyncValues:c5,__makeTemplateObject:f5,__importStar:R5,__importDefault:h5,__classPrivateFieldGet:$5,__classPrivateFieldSet:H5,__classPrivateFieldIn:A5,__addDisposableResource:G5,__disposeResources:y5,__rewriteRelativeImportExtension:F5}=m4.default;import{Buffer as p4}from"buffer";var s4=(c,f)=>{if(typeof c!=="string")throw TypeError(`The "input" argument must be of type string. Received type ${typeof c} (${c})`);return f?p4.from(c,f):p4.from(c)};var Z1=(c)=>{let f=s4(c,"utf8");return new Uint8Array(f.buffer,f.byteOffset,f.byteLength/Uint8Array.BYTES_PER_ELEMENT)};var gF=typeof Buffer<"u"&&Buffer.from?function(c){return Buffer.from(c,"utf8")}:Z1;function zR(c){if(c instanceof Uint8Array)return c;if(typeof c==="string")return gF(c);if(ArrayBuffer.isView(c))return new Uint8Array(c.buffer,c.byteOffset,c.byteLength/Uint8Array.BYTES_PER_ELEMENT);return new Uint8Array(c)}function SR(c){if(typeof c==="string")return c.length===0;return c.byteLength===0}function Yf(c){return new Uint8Array([(c&4278190080)>>24,(c&16711680)>>16,(c&65280)>>8,c&255])}function MR(c){if(!Uint32Array.from){var f=new Uint32Array(c.length),R=0;while(R<c.length)f[R]=c[R],R+=1;return f}return Uint32Array.from(c)}var z1=function(){function c(){this.crc32c=new J1}return c.prototype.update=function(f){if(SR(f))return;this.crc32c.update(zR(f))},c.prototype.digest=function(){return J0(this,void 0,void 0,function(){return z0(this,function(f){return[2,Yf(this.crc32c.digest())]})})},c.prototype.reset=function(){this.crc32c=new J1},c}();var J1=function(){function c(){this.checksum=4294967295}return c.prototype.update=function(f){var R,h;try{for(var $=S0(f),H=$.next();!H.done;H=$.next()){var A=H.value;this.checksum=this.checksum>>>8^mF[(this.checksum^A)&255]}}catch(G){R={error:G}}finally{try{if(H&&!H.done&&(h=$.return))h.call($)}finally{if(R)throw R.error}}return this},c.prototype.digest=function(){return(this.checksum^4294967295)>>>0},c}();var CF=[0,4067132163,3778769143,324072436,3348797215,904991772,648144872,3570033899,2329499855,2024987596,1809983544,2575936315,1296289744,3207089363,2893594407,1578318884,274646895,3795141740,4049975192,51262619,3619967088,632279923,922689671,3298075524,2592579488,1760304291,2075979607,2312596564,1562183871,2943781820,3156637768,1313733451,549293790,3537243613,3246849577,871202090,3878099393,357341890,102525238,4101499445,2858735121,1477399826,1264559846,3107202533,1845379342,2677391885,2361733625,2125378298,820201905,3263744690,3520608582,598981189,4151959214,85089709,373468761,3827903834,3124367742,1213305469,1526817161,2842354314,2107672161,2412447074,2627466902,1861252501,1098587580,3004210879,2688576843,1378610760,2262928035,1955203488,1742404180,2511436119,3416409459,969524848,714683780,3639785095,205050476,4266873199,3976438427,526918040,1361435347,2739821008,2954799652,1114974503,2529119692,1691668175,2005155131,2247081528,3690758684,697762079,986182379,3366744552,476452099,3993867776,4250756596,255256311,1640403810,2477592673,2164122517,1922457750,2791048317,1412925310,1197962378,3037525897,3944729517,427051182,170179418,4165941337,746937522,3740196785,3451792453,1070968646,1905808397,2213795598,2426610938,1657317369,3053634322,1147748369,1463399397,2773627110,4215344322,153784257,444234805,3893493558,1021025245,3467647198,3722505002,797665321,2197175160,1889384571,1674398607,2443626636,1164749927,3070701412,2757221520,1446797203,137323447,4198817972,3910406976,461344835,3484808360,1037989803,781091935,3705997148,2460548119,1623424788,1939049696,2180517859,1429367560,2807687179,3020495871,1180866812,410100952,3927582683,4182430767,186734380,3756733383,763408580,1053836080,3434856499,2722870694,1344288421,1131464017,2971354706,1708204729,2545590714,2229949006,1988219213,680717673,3673779818,3383336350,1002577565,4010310262,493091189,238226049,4233660802,2987750089,1082061258,1395524158,2705686845,1972364758,2279892693,2494862625,1725896226,952904198,3399985413,3656866545,731699698,4283874585,222117402,510512622,3959836397,3280807620,837199303,582374963,3504198960,68661723,4135334616,3844915500,390545967,1230274059,3141532936,2825850620,1510247935,2395924756,2091215383,1878366691,2644384480,3553878443,565732008,854102364,3229815391,340358836,3861050807,4117890627,119113024,1493875044,2875275879,3090270611,1247431312,2660249211,1828433272,2141937292,2378227087,3811616794,291187481,34330861,4032846830,615137029,3603020806,3314634738,939183345,1776939221,2609017814,2295496738,2058945313,2926798794,1545135305,1330124605,3173225534,4084100981,17165430,307568514,3762199681,888469610,3332340585,3587147933,665062302,2042050490,2346497209,2559330125,1793573966,3190661285,1279665062,1595330642,2910671697],mF=MR(CF);var pF=()=>{let f=[,,,,,,,,];for(let R=0;R<8;R++){let h=Array(512);for(let $=0;$<256;$++){let H=BigInt($);for(let A=0;A<8*(R+1);A++)if(H&1n)H=H>>1n^0x9a6c9329ac4bc9b5n;else H=H>>1n;h[$*2]=Number(H>>32n&0xffffffffn),h[$*2+1]=Number(H&0xffffffffn)}f[R]=new Uint32Array(h)}return f},S1,BR,M1,B1,X1,Q1,D1,w1,j1,sF=()=>{if(!S1)S1=pF(),[BR,M1,B1,X1,Q1,D1,w1,j1]=S1};class L1{c1=0;c2=0;constructor(){sF(),this.reset()}update(c){let f=c.length,R=0,h=this.c1,$=this.c2;while(R+8<=f){let H=(($^c[R++])&255)<<1,A=(($>>>8^c[R++])&255)<<1,G=(($>>>16^c[R++])&255)<<1,y=(($>>>24^c[R++])&255)<<1,F=((h^c[R++])&255)<<1,U=((h>>>8^c[R++])&255)<<1,N=((h>>>16^c[R++])&255)<<1,z=((h>>>24^c[R++])&255)<<1;h=j1[H]^w1[A]^D1[G]^Q1[y]^X1[F]^B1[U]^M1[N]^BR[z],$=j1[H+1]^w1[A+1]^D1[G+1]^Q1[y+1]^X1[F+1]^B1[U+1]^M1[N+1]^BR[z+1]}while(R<f){let H=(($^c[R])&255)<<1;$=($>>>8|(h&255)<<24)>>>0,h=h>>>8^BR[H],$^=BR[H+1],R++}this.c1=h,this.c2=$}async digest(){let c=this.c1^4294967295,f=this.c2^4294967295;return new Uint8Array([c>>>24,c>>>16&255,c>>>8&255,c&255,f>>>24,f>>>16&255,f>>>8&255,f&255])}reset(){this.c1=4294967295,this.c2=4294967295}}var x1={CrtCrc64Nvme:null};var I1=function(){function c(){this.crc32=new Nf}return c.prototype.update=function(f){if(SR(f))return;this.crc32.update(zR(f))},c.prototype.digest=function(){return J0(this,void 0,void 0,function(){return z0(this,function(f){return[2,Yf(this.crc32.digest())]})})},c.prototype.reset=function(){this.crc32=new Nf},c}();var Nf=function(){function c(){this.checksum=4294967295}return c.prototype.update=function(f){var R,h;try{for(var $=S0(f),H=$.next();!H.done;H=$.next()){var A=H.value;this.checksum=this.checksum>>>8^kF[(this.checksum^A)&255]}}catch(G){R={error:G}}finally{try{if(H&&!H.done&&(h=$.return))h.call($)}finally{if(R)throw R.error}}return this},c.prototype.digest=function(){return(this.checksum^4294967295)>>>0},c}();var iF=[0,1996959894,3993919788,2567524794,124634137,1886057615,3915621685,2657392035,249268274,2044508324,3772115230,2547177864,162941995,2125561021,3887607047,2428444049,498536548,1789927666,4089016648,2227061214,450548861,1843258603,4107580753,2211677639,325883990,1684777152,4251122042,2321926636,335633487,1661365465,4195302755,2366115317,997073096,1281953886,3579855332,2724688242,1006888145,1258607687,3524101629,2768942443,901097722,1119000684,3686517206,2898065728,853044451,1172266101,3705015759,2882616665,651767980,1373503546,3369554304,3218104598,565507253,1454621731,3485111705,3099436303,671266974,1594198024,3322730930,2970347812,795835527,1483230225,3244367275,3060149565,1994146192,31158534,2563907772,4023717930,1907459465,112637215,2680153253,3904427059,2013776290,251722036,2517215374,3775830040,2137656763,141376813,2439277719,3865271297,1802195444,476864866,2238001368,4066508878,1812370925,453092731,2181625025,4111451223,1706088902,314042704,2344532202,4240017532,1658658271,366619977,2362670323,4224994405,1303535960,984961486,2747007092,3569037538,1256170817,1037604311,2765210733,3554079995,1131014506,879679996,2909243462,3663771856,1141124467,855842277,2852801631,3708648649,1342533948,654459306,3188396048,3373015174,1466479909,544179635,3110523913,3462522015,1591671054,702138776,2966460450,3352799412,1504918807,783551873,3082640443,3233442989,3988292384,2596254646,62317068,1957810842,3939845945,2647816111,81470997,1943803523,3814918930,2489596804,225274430,2053790376,3826175755,2466906013,167816743,2097651377,4027552580,2265490386,503444072,1762050814,4150417245,2154129355,426522225,1852507879,4275313526,2312317920,282753626,1742555852,4189708143,2394877945,397917763,1622183637,3604390888,2714866558,953729732,1340076626,3518719985,2797360999,1068828381,1219638859,3624741850,2936675148,906185462,1090812512,3747672003,2825379669,829329135,1181335161,3412177804,3160834842,628085408,1382605366,3423369109,3138078467,570562233,1426400815,3317316542,2998733608,733239954,1555261956,3268935591,3050360625,752459403,1541320221,2607071920,3965973030,1969922972,40735498,2617837225,3943577151,1913087877,83908371,2512341634,3803740692,2075208622,213261112,2463272603,3855990285,2094854071,198958881,2262029012,4057260610,1759359992,534414190,2176718541,4139329115,1873836001,414664567,2282248934,4279200368,1711684554,285281116,2405801727,4167216745,1634467795,376229701,2685067896,3608007406,1308918612,956543938,2808555105,3495958263,1231636301,1047427035,2932959818,3654703836,1088359270,936918000,2847714899,3736837829,1202900863,817233897,3183342108,3401237130,1404277552,615818150,3134207493,3453421203,1423857449,601450431,3009837614,3294710456,1567103746,711928724,3020668471,3272380065,1510334235,755167117],kF=MR(iF);import*as P1 from"zlib";class i4{checksum=0;update(c){this.checksum=P1.crc32(c,this.checksum)}async digest(){return Yf(this.checksum)}reset(){this.checksum=0}}var k4=()=>{if(typeof P1.crc32>"u")return I1;return i4};var M0=(c,f)=>{switch(c){case P.MD5:return f.md5;case P.CRC32:return k4();case P.CRC32C:return z1;case P.CRC64NVME:if(typeof x1.CrtCrc64Nvme!=="function")return L1;return x1.CrtCrc64Nvme;case P.SHA1:return f.sha1;case P.SHA256:return f.sha256;default:throw Error(`Unsupported checksum algorithm: ${c}`)}};var l4=Y(K1(),1),B0=(c,f)=>{let R=new c;return R.update(l4.toUint8Array(f||"")),R.digest()};var n4={name:"flexibleChecksumsMiddleware",step:"build",tags:["BODY_CHECKSUM"],override:!0},o4=(c,f)=>(R,h)=>async($)=>{if(!d4.HttpRequest.isInstance($.request))return R($);if(g4("x-amz-checksum-",$.request.headers))return R($);let{request:H,input:A}=$,{body:G,headers:y}=H,{base64Encoder:F,streamHasher:U}=c,{requestChecksumRequired:N,requestAlgorithmMember:z}=f,Z=await c.requestChecksumCalculation(),w=z?.name,V=z?.httpHeader;if(w&&!A[w]){if(Z===Qc.WHEN_SUPPORTED||N){if(A[w]=ZR,V)y[V]=ZR}}let a=T4(A,{requestChecksumRequired:N,requestAlgorithmMember:z?.name,requestChecksumCalculation:Z}),Pc=G,Kc=y;if(a){switch(a){case P.CRC32:Pf.setFeature(h,"FLEXIBLE_CHECKSUMS_REQ_CRC32","U");break;case P.CRC32C:Pf.setFeature(h,"FLEXIBLE_CHECKSUMS_REQ_CRC32C","V");break;case P.CRC64NVME:Pf.setFeature(h,"FLEXIBLE_CHECKSUMS_REQ_CRC64","W");break;case P.SHA1:Pf.setFeature(h,"FLEXIBLE_CHECKSUMS_REQ_SHA1","X");break;case P.SHA256:Pf.setFeature(h,"FLEXIBLE_CHECKSUMS_REQ_SHA256","Y");break}let Yc=If(a),jf=M0(a,c);if(Z0(G)){let{getAwsChunkedEncodingStream:NR,bodyLengthChecker:N1}=c;Pc=NR(typeof c.requestStreamBufferSize==="number"&&c.requestStreamBufferSize>=8192?_4.createBufferedReadable(G,c.requestStreamBufferSize,h.logger):G,{base64Encoder:F,bodyLengthChecker:N1,checksumLocationName:Yc,checksumAlgorithmFn:jf,streamHasher:U}),Kc={...y,"content-encoding":y["content-encoding"]?`${y["content-encoding"]},aws-chunked`:"aws-chunked","transfer-encoding":"chunked","x-amz-decoded-content-length":y["content-length"],"x-amz-content-sha256":"STREAMING-UNSIGNED-PAYLOAD-TRAILER","x-amz-trailer":Yc},delete Kc["content-length"]}else if(!u4(Yc,y)){let NR=await B0(jf,G);Kc={...y,[Yc]:F(NR)}}}try{return await R({...$,request:{...H,headers:Kc,body:Pc}})}catch(Yc){if(Yc instanceof Error&&Yc.name==="InvalidChunkSizeError")try{if(!Yc.message.endsWith("."))Yc.message+=".";Yc.message+=" Set [requestStreamBufferSize=number e.g. 65_536] in client constructor to instruct AWS SDK to buffer your input stream."}catch(jf){}throw Yc}};var XR=Y(Kf(),1);var a4={name:"flexibleChecksumsInputMiddleware",toMiddleware:"serializerMiddleware",relation:"before",tags:["BODY_CHECKSUM"],override:!0},t4=(c,f)=>(R,h)=>async($)=>{let H=$.input,{requestValidationModeMember:A}=f,G=await c.requestChecksumCalculation(),y=await c.responseChecksumValidation();switch(G){case Qc.WHEN_REQUIRED:XR.setFeature(h,"FLEXIBLE_CHECKSUMS_REQ_WHEN_REQUIRED","a");break;case Qc.WHEN_SUPPORTED:XR.setFeature(h,"FLEXIBLE_CHECKSUMS_REQ_WHEN_SUPPORTED","Z");break}switch(y){case Uf.WHEN_REQUIRED:XR.setFeature(h,"FLEXIBLE_CHECKSUMS_RES_WHEN_REQUIRED","c");break;case Uf.WHEN_SUPPORTED:XR.setFeature(h,"FLEXIBLE_CHECKSUMS_RES_WHEN_SUPPORTED","b");break}if(A&&!H[A]){if(y===Uf.WHEN_SUPPORTED)H[A]="ENABLED"}return R($)};var RH=Y(kc(),1);var Q0=(c=[])=>{let f=[];for(let R of E4){if(!c.includes(R)||!JR.includes(R))continue;f.push(R)}return f};var r4=(c)=>{let f=c.lastIndexOf("-");if(f!==-1){let R=c.slice(f+1);if(!R.startsWith("0")){let h=parseInt(R,10);if(!isNaN(h)&&h>=1&&h<=1e4)return!0}}return!1};var cH=Y(X0(),1);var e4=async(c,{checksumAlgorithmFn:f,base64Encoder:R})=>R(await B0(f,c));var fH=async(c,{config:f,responseAlgorithms:R,logger:h})=>{let $=Q0(R),{body:H,headers:A}=c;for(let G of $){let y=If(G),F=A[y];if(F){let U;try{U=M0(G,f)}catch(Z){if(G===P.CRC64NVME){h?.warn(`Skipping ${P.CRC64NVME} checksum validation: ${Z.message}`);continue}throw Z}let{base64Encoder:N}=f;if(Z0(H)){c.body=cH.createChecksumStream({expectedChecksum:F,checksumSourceLocation:y,checksum:new U,source:H,base64Encoder:N});return}let z=await e4(H,{checksumAlgorithmFn:U,base64Encoder:N});if(z===F)break;throw Error(`Checksum mismatch: expected "${z}" but received "${F}" in response header "${y}".`)}}};var hH={name:"flexibleChecksumsResponseMiddleware",toMiddleware:"deserializerMiddleware",relation:"after",tags:["BODY_CHECKSUM"],override:!0},$H=(c,f)=>(R,h)=>async($)=>{if(!RH.HttpRequest.isInstance($.request))return R($);let H=$.input,A=await R($),G=A.response,{requestValidationModeMember:y,responseAlgorithms:F}=f;if(y&&H[y]==="ENABLED"){let{clientName:U,commandName:N}=h;if(U==="S3Client"&&N==="GetObjectCommand"&&Q0(F).every((Z)=>{let w=If(Z),V=G.headers[w];return!V||r4(V)}))return A;await fH(G,{config:c,responseAlgorithms:F,logger:h.logger})}return A};var D0=(c,f)=>({applyToStack:(R)=>{R.add(o4(c,f),n4),R.addRelativeTo(t4(c,f),a4),R.addRelativeTo($H(c,f),hH)}});var O1=Y(b1(),1);var HH=(c)=>{let{requestChecksumCalculation:f,responseChecksumValidation:R,requestStreamBufferSize:h}=c;return Object.assign(c,{requestChecksumCalculation:O1.normalizeProvider(f??Y0),responseChecksumValidation:O1.normalizeProvider(R??N0),requestStreamBufferSize:Number(h??0)})};var Fh=Y(Ov(),1),aG=Y(bv(),1),tG=Y(qv(),1);var AH=Y(kc(),1),GH=Y(Oc(),1),lF="content-length",dF="x-amz-decoded-content-length";function _F(){return(c,f)=>async(R)=>{let{request:h}=R;if(AH.HttpRequest.isInstance(h)){if(!(lF in h.headers)&&!(dF in h.headers))if(typeof f?.logger?.warn==="function"&&!(f.logger instanceof GH.NoOpLogger))f.logger.warn("Are you using a Stream of unknown length as the Body of a PutObject request? Consider using Upload instead from @aws-sdk/lib-storage.");else console.warn("Are you using a Stream of unknown length as the Body of a PutObject request? Consider using Upload instead from @aws-sdk/lib-storage.")}return c({...R})}}var nF={step:"finalizeRequest",tags:["CHECK_CONTENT_LENGTH_HEADER"],name:"getCheckContentLengthHeaderPlugin",override:!0},yH=(c)=>({applyToStack:(f)=>{f.add(_F(),nF)}});var FH=(c)=>{return(f,R)=>async(h)=>{let $=await c.region(),H=c.region,A=()=>{};if(R.__s3RegionRedirect)Object.defineProperty(c,"region",{writable:!1,value:async()=>{return R.__s3RegionRedirect}}),A=()=>Object.defineProperty(c,"region",{writable:!0,value:H});try{let G=await f(h);if(R.__s3RegionRedirect){A();let y=await c.region();if($!==y)throw Error("Region was not restored following S3 region redirect.")}return G}catch(G){throw A(),G}}},WH={tags:["REGION_REDIRECT","S3"],name:"regionRedirectEndpointMiddleware",override:!0,relation:"before",toMiddleware:"endpointV2Middleware"};function oF(c){return(f,R)=>async(h)=>{try{return await f(h)}catch($){if(c.followRegionRedirects){let H=$?.$metadata?.httpStatusCode,A=R.commandName==="HeadBucketCommand",G=$?.$response?.headers?.["x-amz-bucket-region"];if(G){if(H===301||H===400&&($?.name==="IllegalLocationConstraintException"||A)){try{let y=G;R.logger?.debug(`Redirecting from ${await c.region()} to ${y}`),R.__s3RegionRedirect=y}catch(y){throw Error("Region redirect failed: "+y)}return f(h)}}}throw $}}}var aF={step:"initialize",tags:["REGION_REDIRECT","S3"],name:"regionRedirectMiddleware",override:!0},vH=(c)=>({applyToStack:(f)=>{f.add(oF(c),aF),f.addRelativeTo(FH(c),WH)}});var UH=Y(kc(),1),YH=Y(Oc(),1),tF=(c)=>{return(f,R)=>async(h)=>{let $=await f(h),{response:H}=$;if(UH.HttpResponse.isInstance(H)){if(H.headers.expires){H.headers.expiresstring=H.headers.expires;try{YH.parseRfc7231DateTime(H.headers.expires)}catch(A){R.logger?.warn(`AWS SDK Warning for ${R.clientName}::${R.commandName} response parsing (${H.headers.expires}): ${A}`),delete H.headers.expires}}}return $}},rF={tags:["S3"],name:"s3ExpiresMiddleware",override:!0,relation:"after",toMiddleware:"deserializerMiddleware"},NH=(c)=>({applyToStack:(f)=>{f.addRelativeTo(tF(c),rF)}});class w0{data;lastPurgeTime=Date.now();static EXPIRED_CREDENTIAL_PURGE_INTERVAL_MS=30000;constructor(c={}){this.data=c}get(c){let f=this.data[c];if(!f)return;return f}set(c,f){return this.data[c]=f,f}delete(c){delete this.data[c]}async purgeExpired(){let c=Date.now();if(this.lastPurgeTime+w0.EXPIRED_CREDENTIAL_PURGE_INTERVAL_MS>c)return;for(let f in this.data){let R=this.data[f];if(!R.isRefreshing){let h=await R.identity;if(h.expiration){if(h.expiration.getTime()<c)delete this.data[f]}}}}}class QR{_identity;isRefreshing;accessed;constructor(c,f=!1,R=Date.now()){this._identity=c,this.isRefreshing=f,this.accessed=R}get identity(){return this.accessed=Date.now(),this._identity}}class DR{createSessionFn;cache;static REFRESH_WINDOW_MS=60000;constructor(c,f=new w0){this.createSessionFn=c,this.cache=f}async getS3ExpressIdentity(c,f){let R=f.Bucket,{cache:h}=this,$=h.get(R);if($)return $.identity.then((H)=>{if((H.expiration?.getTime()??0)<Date.now())return h.set(R,new QR(this.getIdentity(R))).identity;if((H.expiration?.getTime()??0)<Date.now()+DR.REFRESH_WINDOW_MS&&!$.isRefreshing)$.isRefreshing=!0,this.getIdentity(R).then((y)=>{h.set(R,new QR(Promise.resolve(y)))});return H});return h.set(R,new QR(this.getIdentity(R))).identity}async getIdentity(c){await this.cache.purgeExpired().catch((h)=>{console.warn(`Error while clearing expired entries in S3ExpressIdentityCache:
40
+ `+h)});let f=await this.createSessionFn(c);if(!f.Credentials?.AccessKeyId||!f.Credentials?.SecretAccessKey)throw Error("s3#createSession response credential missing AccessKeyId or SecretAccessKey.");return{accessKeyId:f.Credentials.AccessKeyId,secretAccessKey:f.Credentials.SecretAccessKey,sessionToken:f.Credentials.SessionToken,expiration:f.Credentials.Expiration?new Date(f.Credentials.Expiration):void 0}}}var QH=Y(XH(),1);var Of=Y(ZH(),1),JH="Directory",zH="S3Express",SH="sigv4-s3express",j0="X-Amz-S3session-Token",wR=j0.toLowerCase(),eF="AWS_S3_DISABLE_EXPRESS_SESSION_AUTH",cW="s3_disable_express_session_auth",q1={environmentVariableSelector:(c)=>Of.booleanSelector(c,eF,Of.SelectorType.ENV),configFileSelector:(c)=>Of.booleanSelector(c,cW,Of.SelectorType.CONFIG),default:!1};class L0 extends QH.SignatureV4{async signWithCredentials(c,f,R){let h=MH(f);c.headers[wR]=f.sessionToken;let $=this;return BH($,h),$.signRequest(c,R??{})}async presignWithCredentials(c,f,R){let h=MH(f);return delete c.headers[wR],c.headers[j0]=f.sessionToken,c.query=c.query??{},c.query[j0]=f.sessionToken,BH(this,h),this.presign(c,R)}}function MH(c){return{accessKeyId:c.accessKeyId,secretAccessKey:c.secretAccessKey,expiration:c.expiration}}function BH(c,f){let R=setTimeout(()=>{throw Error("SignatureV4S3Express credential override was created but not called.")},10),h=c.credentialProvider,$=()=>{return clearTimeout(R),c.credentialProvider=h,Promise.resolve(f)};c.credentialProvider=$}var DH=Y(Kf(),1),wH=Y(kc(),1);var jH=(c)=>{return(f,R)=>async(h)=>{if(R.endpointV2){let $=R.endpointV2,H=$.properties?.authSchemes?.[0]?.name===SH;if($.properties?.backend===zH||$.properties?.bucketType===JH)DH.setFeature(R,"S3_EXPRESS_BUCKET","J"),R.isS3ExpressBucket=!0;if(H){let G=h.input.Bucket;if(G){let y=await c.s3ExpressIdentityProvider.getS3ExpressIdentity(await c.credentials(),{Bucket:G});if(R.s3ExpressIdentity=y,wH.HttpRequest.isInstance(h.request)&&y.sessionToken)h.request.headers[wR]=y.sessionToken}}}return f(h)}},LH={name:"s3ExpressMiddleware",step:"build",tags:["S3","S3_EXPRESS"],override:!0},V1=(c)=>({applyToStack:(f)=>{f.add(jH(c),LH)}});var PH=Y(IH(),1),KH=Y(kc(),1);var OH=Y(b1(),1);var xH=async(c,f,R,h)=>{let $=await h.signWithCredentials(R,c,{});if($.headers["X-Amz-Security-Token"]||$.headers["x-amz-security-token"])throw Error("X-Amz-Security-Token must not be set for s3-express requests.");return $};var fW=(c)=>(f)=>{throw f},RW=(c,f)=>{};var bH=(c)=>(f,R)=>async(h)=>{if(!KH.HttpRequest.isInstance(h.request))return f(h);let H=OH.getSmithyContext(R).selectedHttpAuthScheme;if(!H)throw Error("No HttpAuthScheme was selected: unable to sign request");let{httpAuthOption:{signingProperties:A={}},identity:G,signer:y}=H,F;if(R.s3ExpressIdentity)F=await xH(R.s3ExpressIdentity,A,h.request,await c.signer());else F=await y.sign(h.request,G,A);let U=await f({...h,request:F}).catch((y.errorHandler||fW)(A));return(y.successHandler||RW)(U.response,A),U},E1=(c)=>({applyToStack:(f)=>{f.addRelativeTo(bH(c),PH.httpSigningMiddlewareOptions)}});var qH=(c,{session:f})=>{let[R,h]=f,{forcePathStyle:$,useAccelerateEndpoint:H,disableMultiregionAccessPoints:A,followRegionRedirects:G,s3ExpressIdentityProvider:y,bucketEndpoint:F,expectContinueHeader:U}=c;return Object.assign(c,{forcePathStyle:$??!1,useAccelerateEndpoint:H??!1,disableMultiregionAccessPoints:A??!1,followRegionRedirects:G??!1,s3ExpressIdentityProvider:y??new DR(async(N)=>R().send(new h({Bucket:N}))),bucketEndpoint:F??!1,expectContinueHeader:U??2097152})};var VH=Y(kc(),1),x0=Y(X0(),1),hW={CopyObjectCommand:!0,UploadPartCopyCommand:!0,CompleteMultipartUploadCommand:!0},$W=3000,HW=(c)=>(f,R)=>async(h)=>{let $=await f(h),{response:H}=$;if(!VH.HttpResponse.isInstance(H))return $;let{statusCode:A,body:G}=H;if(A<200||A>=300)return $;if(!(typeof G?.stream==="function"||typeof G?.pipe==="function"||typeof G?.tee==="function"))return $;let F=G,U=G;if(G&&typeof G==="object"&&!(G instanceof Uint8Array))[F,U]=await x0.splitStream(G);H.body=U;let N=await AW(F,{streamCollector:async(Z)=>{return x0.headStream(Z,$W)}});if(typeof F?.destroy==="function")F.destroy();let z=c.utf8Encoder(N.subarray(N.length-16));if(N.length===0&&hW[R.commandName]){let Z=Error("S3 aborted request");throw Z.name="InternalError",Z}if(z&&z.endsWith("</Error>"))H.statusCode=400;return $},AW=(c=new Uint8Array,f)=>{if(c instanceof Uint8Array)return Promise.resolve(c);return f.streamCollector(c)||Promise.resolve(new Uint8Array)},GW={relation:"after",toMiddleware:"deserializerMiddleware",tags:["THROW_200_EXCEPTIONS","S3"],name:"throw200ExceptionsMiddleware",override:!0},bf=(c)=>({applyToStack:(f)=>{f.addRelativeTo(HW(c),GW)}});var EH=(c)=>typeof c==="string"&&c.indexOf("arn:")===0&&c.split(":").length>=6;function TH(c){return(f,R)=>async(h)=>{if(c.bucketEndpoint){let $=R.endpointV2;if($){let H=h.input.Bucket;if(typeof H==="string")try{let A=new URL(H);R.endpointV2={...$,url:A}}catch(A){let G=`@aws-sdk/middleware-sdk-s3: bucketEndpoint=true was set but Bucket=${H} could not be parsed as URL.`;if(R.logger?.constructor?.name==="NoOpLogger")console.warn(G);else R.logger?.warn?.(G);throw A}}}return f(h)}}var uH={name:"bucketEndpointMiddleware",override:!0,relation:"after",toMiddleware:"endpointV2Middleware"};function yW({bucketEndpoint:c}){return(f)=>async(R)=>{let{input:{Bucket:h}}=R;if(!c&&typeof h==="string"&&!EH(h)&&h.indexOf("/")>=0){let $=Error(`Bucket name shouldn't contain '/', received '${h}'`);throw $.name="InvalidBucketName",$}return f({...R})}}var FW={step:"initialize",tags:["VALIDATE_BUCKET_NAME"],name:"validateBucketNameMiddleware",override:!0},gH=(c)=>({applyToStack:(f)=>{f.add(yW(c),FW),f.addRelativeTo(TH(c),uH)}});var Wh=Y(Vv(),1),rG=Y(pG(),1),sf=Y(IH(),1),eG=Y(hG(),1);var CH=(c)=>Object.assign(c,{eventStreamMarshaller:c.eventStreamSerdeProvider(c)});var c6=Y(Ev(),1),f6=Y(uf(),1),vh=Y(sG(),1),R6=Y(Oc(),1);var q0=Y(Kf(),1);var T1=Y(XH(),1);var jR={CrtSignerV4:null};class LR{sigv4aSigner;sigv4Signer;signerOptions;static sigv4aDependency(){if(typeof jR.CrtSignerV4==="function")return"crt";else if(typeof T1.signatureV4aContainer.SignatureV4a==="function")return"js";return"none"}constructor(c){this.sigv4Signer=new L0(c),this.signerOptions=c}async sign(c,f={}){if(f.signingRegion==="*")return this.getSigv4aSigner().sign(c,f);return this.sigv4Signer.sign(c,f)}async signWithCredentials(c,f,R={}){if(R.signingRegion==="*"){let h=this.getSigv4aSigner(),$=jR.CrtSignerV4;if($&&h instanceof $)return h.signWithCredentials(c,f,R);else throw Error(`signWithCredentials with signingRegion '*' is only supported when using the CRT dependency @aws-sdk/signature-v4-crt. Please check whether you have installed the "@aws-sdk/signature-v4-crt" package explicitly. You must also register the package by calling [require("@aws-sdk/signature-v4-crt");] or an ESM equivalent such as [import "@aws-sdk/signature-v4-crt";]. For more information please go to https://github.com/aws/aws-sdk-js-v3#functionality-requiring-aws-common-runtime-crt`)}return this.sigv4Signer.signWithCredentials(c,f,R)}async presign(c,f={}){if(f.signingRegion==="*"){let R=this.getSigv4aSigner(),h=jR.CrtSignerV4;if(h&&R instanceof h)return R.presign(c,f);else throw Error(`presign with signingRegion '*' is only supported when using the CRT dependency @aws-sdk/signature-v4-crt. Please check whether you have installed the "@aws-sdk/signature-v4-crt" package explicitly. You must also register the package by calling [require("@aws-sdk/signature-v4-crt");] or an ESM equivalent such as [import "@aws-sdk/signature-v4-crt";]. For more information please go to https://github.com/aws/aws-sdk-js-v3#functionality-requiring-aws-common-runtime-crt`)}return this.sigv4Signer.presign(c,f)}async presignWithCredentials(c,f,R={}){if(R.signingRegion==="*")throw Error("Method presignWithCredentials is not supported for [signingRegion=*].");return this.sigv4Signer.presignWithCredentials(c,f,R)}getSigv4aSigner(){if(!this.sigv4aSigner){let c=jR.CrtSignerV4,f=T1.signatureV4aContainer.SignatureV4a;if(this.signerOptions.runtime==="node"){if(!c&&!f)throw Error("Neither CRT nor JS SigV4a implementation is available. Please load either @aws-sdk/signature-v4-crt or @aws-sdk/signature-v4a. For more information please go to https://github.com/aws/aws-sdk-js-v3#functionality-requiring-aws-common-runtime-crt");if(c&&typeof c==="function")this.sigv4aSigner=new c({...this.signerOptions,signingAlgorithm:1});else if(f&&typeof f==="function")this.sigv4aSigner=new f({...this.signerOptions});else throw Error("Available SigV4a implementation is not a valid constructor. Please ensure you've properly imported @aws-sdk/signature-v4-crt or @aws-sdk/signature-v4a.For more information please go to https://github.com/aws/aws-sdk-js-v3#functionality-requiring-aws-common-runtime-crt")}else{if(!f||typeof f!=="function")throw Error("JS SigV4a implementation is not available or not a valid constructor. Please check whether you have installed the @aws-sdk/signature-v4a package explicitly. The CRT implementation is not available for browsers. You must also register the package by calling [require('@aws-sdk/signature-v4a');] or an ESM equivalent such as [import '@aws-sdk/signature-v4a';]. For more information please go to https://github.com/aws/aws-sdk-js-v3#using-javascript-non-crt-implementation-of-sigv4a");this.sigv4aSigner=new f({...this.signerOptions})}}return this.sigv4aSigner}}var nA=Y(uf(),1),gf=Y(b1(),1);var _A=Y(BW(),1),Tf=Y(MW(),1);var qf={["required"]:!1,["type"]:"string"},Vf={["required"]:!0,default:!1,["type"]:"boolean"},xR={["required"]:!1,["type"]:"boolean"},wc={["fn"]:"booleanEquals",["argv"]:[{["ref"]:"Accelerate"},!0]},C={["fn"]:"booleanEquals",["argv"]:[{["ref"]:"UseFIPS"},!0]},T={["fn"]:"booleanEquals",["argv"]:[{["ref"]:"UseDualStack"},!0]},k={["fn"]:"isSet",["argv"]:[{["ref"]:"Endpoint"}]},CA={["fn"]:"aws.partition",["argv"]:[{["ref"]:"Region"}],["assign"]:"partitionResult"},mH={["fn"]:"stringEquals",["argv"]:[{["fn"]:"getAttr",["argv"]:[{["ref"]:"partitionResult"},"name"]},"aws-cn"]},PR={["fn"]:"isSet",["argv"]:[{["ref"]:"Bucket"}]},I={["ref"]:"Bucket"},pH={["conditions"]:[wc],["error"]:"S3Express does not support S3 Accelerate.",["type"]:"error"},sH={["conditions"]:[k,{["fn"]:"parseURL",["argv"]:[{["ref"]:"Endpoint"}],["assign"]:"url"}],["rules"]:[{["conditions"]:[{["fn"]:"isSet",["argv"]:[{["ref"]:"DisableS3ExpressSessionAuth"}]},{["fn"]:"booleanEquals",["argv"]:[{["ref"]:"DisableS3ExpressSessionAuth"},!0]}],["rules"]:[{["conditions"]:[{["fn"]:"booleanEquals",["argv"]:[{["fn"]:"getAttr",["argv"]:[{["ref"]:"url"},"isIp"]},!0]}],["rules"]:[{["conditions"]:[{["fn"]:"uriEncode",["argv"]:[I],["assign"]:"uri_encoded_bucket"}],["rules"]:[{["endpoint"]:{["url"]:"{url#scheme}://{url#authority}/{uri_encoded_bucket}{url#path}",["properties"]:{["backend"]:"S3Express",["authSchemes"]:[{["disableDoubleEncoding"]:!0,["name"]:"sigv4",["signingName"]:"s3express",["signingRegion"]:"{Region}"}]},["headers"]:{}},["type"]:"endpoint"}],["type"]:"tree"}],["type"]:"tree"},{["conditions"]:[{["fn"]:"aws.isVirtualHostableS3Bucket",["argv"]:[I,!1]}],["rules"]:[{["endpoint"]:{["url"]:"{url#scheme}://{Bucket}.{url#authority}{url#path}",["properties"]:{["backend"]:"S3Express",["authSchemes"]:[{["disableDoubleEncoding"]:!0,["name"]:"sigv4",["signingName"]:"s3express",["signingRegion"]:"{Region}"}]},["headers"]:{}},["type"]:"endpoint"}],["type"]:"tree"},{["error"]:"S3Express bucket name is not a valid virtual hostable name.",["type"]:"error"}],["type"]:"tree"},{["conditions"]:[{["fn"]:"booleanEquals",["argv"]:[{["fn"]:"getAttr",["argv"]:[{["ref"]:"url"},"isIp"]},!0]}],["rules"]:[{["conditions"]:[{["fn"]:"uriEncode",["argv"]:[I],["assign"]:"uri_encoded_bucket"}],["rules"]:[{["endpoint"]:{["url"]:"{url#scheme}://{url#authority}/{uri_encoded_bucket}{url#path}",["properties"]:{["backend"]:"S3Express",["authSchemes"]:[{["disableDoubleEncoding"]:!0,["name"]:"sigv4-s3express",["signingName"]:"s3express",["signingRegion"]:"{Region}"}]},["headers"]:{}},["type"]:"endpoint"}],["type"]:"tree"}],["type"]:"tree"},{["conditions"]:[{["fn"]:"aws.isVirtualHostableS3Bucket",["argv"]:[I,!1]}],["rules"]:[{["endpoint"]:{["url"]:"{url#scheme}://{Bucket}.{url#authority}{url#path}",["properties"]:{["backend"]:"S3Express",["authSchemes"]:[{["disableDoubleEncoding"]:!0,["name"]:"sigv4-s3express",["signingName"]:"s3express",["signingRegion"]:"{Region}"}]},["headers"]:{}},["type"]:"endpoint"}],["type"]:"tree"},{["error"]:"S3Express bucket name is not a valid virtual hostable name.",["type"]:"error"}],["type"]:"tree"},Uc={["fn"]:"parseURL",["argv"]:[{["ref"]:"Endpoint"}],["assign"]:"url"},u1={["fn"]:"booleanEquals",["argv"]:[{["fn"]:"getAttr",["argv"]:[{["ref"]:"url"},"isIp"]},!0]},mA={["ref"]:"url"},pA={["fn"]:"uriEncode",["argv"]:[I],["assign"]:"uri_encoded_bucket"},zc={["backend"]:"S3Express",["authSchemes"]:[{["disableDoubleEncoding"]:!0,["name"]:"sigv4",["signingName"]:"s3express",["signingRegion"]:"{Region}"}]},B={},sA={["fn"]:"aws.isVirtualHostableS3Bucket",["argv"]:[I,!1]},iH={["error"]:"S3Express bucket name is not a valid virtual hostable name.",["type"]:"error"},kH={["fn"]:"isSet",["argv"]:[{["ref"]:"UseS3ExpressControlEndpoint"}]},lH={["fn"]:"booleanEquals",["argv"]:[{["ref"]:"UseS3ExpressControlEndpoint"},!0]},X={["fn"]:"not",["argv"]:[k]},j={["fn"]:"booleanEquals",["argv"]:[{["ref"]:"UseDualStack"},!1]},D={["fn"]:"booleanEquals",["argv"]:[{["ref"]:"UseFIPS"},!1]},I0={["error"]:"Unrecognized S3Express bucket name format.",["type"]:"error"},dH={["fn"]:"not",["argv"]:[PR]},_H={["ref"]:"hardwareType"},nH={["conditions"]:[X],["error"]:"Expected a endpoint to be specified but no endpoint was found",["type"]:"error"},P0={["authSchemes"]:[{["disableDoubleEncoding"]:!0,["name"]:"sigv4a",["signingName"]:"s3-outposts",["signingRegionSet"]:["*"]},{["disableDoubleEncoding"]:!0,["name"]:"sigv4",["signingName"]:"s3-outposts",["signingRegion"]:"{Region}"}]},g1={["fn"]:"booleanEquals",["argv"]:[{["ref"]:"ForcePathStyle"},!1]},WW={["ref"]:"ForcePathStyle"},d={["fn"]:"booleanEquals",["argv"]:[{["ref"]:"Accelerate"},!1]},n={["fn"]:"stringEquals",["argv"]:[{["ref"]:"Region"},"aws-global"]},t={["authSchemes"]:[{["disableDoubleEncoding"]:!0,["name"]:"sigv4",["signingName"]:"s3",["signingRegion"]:"us-east-1"}]},x={["fn"]:"not",["argv"]:[n]},r={["fn"]:"booleanEquals",["argv"]:[{["ref"]:"UseGlobalEndpoint"},!0]},oH={["url"]:"https://{Bucket}.s3-fips.dualstack.{Region}.{partitionResult#dnsSuffix}",["properties"]:{["authSchemes"]:[{["disableDoubleEncoding"]:!0,["name"]:"sigv4",["signingName"]:"s3",["signingRegion"]:"{Region}"}]},["headers"]:{}},_={["authSchemes"]:[{["disableDoubleEncoding"]:!0,["name"]:"sigv4",["signingName"]:"s3",["signingRegion"]:"{Region}"}]},e={["fn"]:"booleanEquals",["argv"]:[{["ref"]:"UseGlobalEndpoint"},!1]},aH={["url"]:"https://{Bucket}.s3-fips.{Region}.{partitionResult#dnsSuffix}",["properties"]:_,["headers"]:{}},tH={["url"]:"https://{Bucket}.s3-accelerate.dualstack.{partitionResult#dnsSuffix}",["properties"]:_,["headers"]:{}},rH={["url"]:"https://{Bucket}.s3.dualstack.{Region}.{partitionResult#dnsSuffix}",["properties"]:_,["headers"]:{}},C1={["fn"]:"booleanEquals",["argv"]:[{["fn"]:"getAttr",["argv"]:[mA,"isIp"]},!1]},m1={["url"]:"{url#scheme}://{url#authority}{url#normalizedPath}{Bucket}",["properties"]:_,["headers"]:{}},A$={["url"]:"{url#scheme}://{Bucket}.{url#authority}{url#path}",["properties"]:_,["headers"]:{}},eH={["endpoint"]:A$,["type"]:"endpoint"},p1={["url"]:"https://{Bucket}.s3-accelerate.{partitionResult#dnsSuffix}",["properties"]:_,["headers"]:{}},cA={["url"]:"https://{Bucket}.s3.{Region}.{partitionResult#dnsSuffix}",["properties"]:_,["headers"]:{}},K0={["error"]:"Invalid region: region was not a valid DNS name.",["type"]:"error"},Nc={["ref"]:"bucketArn"},iA={["ref"]:"arnType"},s1={["fn"]:"getAttr",["argv"]:[Nc,"service"]},G$={["ref"]:"accessPointName"},fA={["conditions"]:[T],["error"]:"S3 Object Lambda does not support Dual-stack",["type"]:"error"},RA={["conditions"]:[wc],["error"]:"S3 Object Lambda does not support S3 Accelerate",["type"]:"error"},hA={["conditions"]:[{["fn"]:"isSet",["argv"]:[{["ref"]:"DisableAccessPoints"}]},{["fn"]:"booleanEquals",["argv"]:[{["ref"]:"DisableAccessPoints"},!0]}],["error"]:"Access points are not supported for this operation",["type"]:"error"},i1={["conditions"]:[{["fn"]:"isSet",["argv"]:[{["ref"]:"UseArnRegion"}]},{["fn"]:"booleanEquals",["argv"]:[{["ref"]:"UseArnRegion"},!1]},{["fn"]:"not",["argv"]:[{["fn"]:"stringEquals",["argv"]:[{["fn"]:"getAttr",["argv"]:[Nc,"region"]},"{Region}"]}]}],["error"]:"Invalid configuration: region from ARN `{bucketArn#region}` does not match client region `{Region}` and UseArnRegion is `false`",["type"]:"error"},kA={["fn"]:"getAttr",["argv"]:[{["ref"]:"bucketPartition"},"name"]},lA={["fn"]:"getAttr",["argv"]:[Nc,"accountId"]},k1={["authSchemes"]:[{["disableDoubleEncoding"]:!0,["name"]:"sigv4",["signingName"]:"s3-object-lambda",["signingRegion"]:"{bucketArn#region}"}]},$A={["error"]:"Invalid ARN: The access point name may only contain a-z, A-Z, 0-9 and `-`. Found: `{accessPointName}`",["type"]:"error"},l1={["error"]:"Invalid ARN: The account id may only contain a-z, A-Z, 0-9 and `-`. Found: `{bucketArn#accountId}`",["type"]:"error"},d1={["error"]:"Invalid region in ARN: `{bucketArn#region}` (invalid DNS name)",["type"]:"error"},_1={["error"]:"Client was configured for partition `{partitionResult#name}` but ARN (`{Bucket}`) has `{bucketPartition#name}`",["type"]:"error"},HA={["error"]:"Invalid ARN: The ARN may only contain a single resource component after `accesspoint`.",["type"]:"error"},AA={["error"]:"Invalid ARN: Expected a resource of the format `accesspoint:<accesspoint name>` but no name was provided",["type"]:"error"},IR={["authSchemes"]:[{["disableDoubleEncoding"]:!0,["name"]:"sigv4",["signingName"]:"s3",["signingRegion"]:"{bucketArn#region}"}]},GA={["authSchemes"]:[{["disableDoubleEncoding"]:!0,["name"]:"sigv4a",["signingName"]:"s3-outposts",["signingRegionSet"]:["*"]},{["disableDoubleEncoding"]:!0,["name"]:"sigv4",["signingName"]:"s3-outposts",["signingRegion"]:"{bucketArn#region}"}]},yA={["fn"]:"aws.parseArn",["argv"]:[I]},FA={["url"]:"https://s3-fips.dualstack.{Region}.{partitionResult#dnsSuffix}/{uri_encoded_bucket}",["properties"]:_,["headers"]:{}},WA={["url"]:"https://s3-fips.{Region}.{partitionResult#dnsSuffix}/{uri_encoded_bucket}",["properties"]:_,["headers"]:{}},vA={["url"]:"https://s3.dualstack.{Region}.{partitionResult#dnsSuffix}/{uri_encoded_bucket}",["properties"]:_,["headers"]:{}},n1={["url"]:"{url#scheme}://{url#authority}{url#normalizedPath}{uri_encoded_bucket}",["properties"]:_,["headers"]:{}},UA={["url"]:"https://s3.{Region}.{partitionResult#dnsSuffix}/{uri_encoded_bucket}",["properties"]:_,["headers"]:{}},YA={["ref"]:"UseObjectLambdaEndpoint"},o1={["authSchemes"]:[{["disableDoubleEncoding"]:!0,["name"]:"sigv4",["signingName"]:"s3-object-lambda",["signingRegion"]:"{Region}"}]},NA={["url"]:"https://s3-fips.dualstack.{Region}.{partitionResult#dnsSuffix}",["properties"]:_,["headers"]:{}},ZA={["url"]:"https://s3-fips.{Region}.{partitionResult#dnsSuffix}",["properties"]:_,["headers"]:{}},JA={["url"]:"https://s3.dualstack.{Region}.{partitionResult#dnsSuffix}",["properties"]:_,["headers"]:{}},a1={["url"]:"{url#scheme}://{url#authority}{url#path}",["properties"]:_,["headers"]:{}},zA={["url"]:"https://s3.{Region}.{partitionResult#dnsSuffix}",["properties"]:_,["headers"]:{}},t1=[{["ref"]:"Region"}],vW=[{["ref"]:"Endpoint"}],UW=[I],r1=[wc],Ef=[k,Uc],SA=[{["fn"]:"isSet",["argv"]:[{["ref"]:"DisableS3ExpressSessionAuth"}]},{["fn"]:"booleanEquals",["argv"]:[{["ref"]:"DisableS3ExpressSessionAuth"},!0]}],YW=[pA],e1=[sA],Dc=[CA],c$=[C,T],KR=[C,j],OR=[D,T],bR=[D,j],MA=[{["fn"]:"substring",["argv"]:[I,6,14,!0],["assign"]:"s3expressAvailabilityZoneId"},{["fn"]:"substring",["argv"]:[I,14,16,!0],["assign"]:"s3expressAvailabilityZoneDelim"},{["fn"]:"stringEquals",["argv"]:[{["ref"]:"s3expressAvailabilityZoneDelim"},"--"]}],gc=[{["conditions"]:[C,T],["endpoint"]:{["url"]:"https://{Bucket}.s3express-fips-{s3expressAvailabilityZoneId}.dualstack.{Region}.{partitionResult#dnsSuffix}",["properties"]:zc,["headers"]:{}},["type"]:"endpoint"},{["conditions"]:KR,["endpoint"]:{["url"]:"https://{Bucket}.s3express-fips-{s3expressAvailabilityZoneId}.{Region}.{partitionResult#dnsSuffix}",["properties"]:zc,["headers"]:{}},["type"]:"endpoint"},{["conditions"]:OR,["endpoint"]:{["url"]:"https://{Bucket}.s3express-{s3expressAvailabilityZoneId}.dualstack.{Region}.{partitionResult#dnsSuffix}",["properties"]:zc,["headers"]:{}},["type"]:"endpoint"},{["conditions"]:bR,["endpoint"]:{["url"]:"https://{Bucket}.s3express-{s3expressAvailabilityZoneId}.{Region}.{partitionResult#dnsSuffix}",["properties"]:zc,["headers"]:{}},["type"]:"endpoint"}],BA=[{["fn"]:"substring",["argv"]:[I,6,15,!0],["assign"]:"s3expressAvailabilityZoneId"},{["fn"]:"substring",["argv"]:[I,15,17,!0],["assign"]:"s3expressAvailabilityZoneDelim"},{["fn"]:"stringEquals",["argv"]:[{["ref"]:"s3expressAvailabilityZoneDelim"},"--"]}],XA=[{["fn"]:"substring",["argv"]:[I,6,19,!0],["assign"]:"s3expressAvailabilityZoneId"},{["fn"]:"substring",["argv"]:[I,19,21,!0],["assign"]:"s3expressAvailabilityZoneDelim"},{["fn"]:"stringEquals",["argv"]:[{["ref"]:"s3expressAvailabilityZoneDelim"},"--"]}],QA=[{["fn"]:"substring",["argv"]:[I,6,20,!0],["assign"]:"s3expressAvailabilityZoneId"},{["fn"]:"substring",["argv"]:[I,20,22,!0],["assign"]:"s3expressAvailabilityZoneDelim"},{["fn"]:"stringEquals",["argv"]:[{["ref"]:"s3expressAvailabilityZoneDelim"},"--"]}],DA=[{["fn"]:"substring",["argv"]:[I,6,26,!0],["assign"]:"s3expressAvailabilityZoneId"},{["fn"]:"substring",["argv"]:[I,26,28,!0],["assign"]:"s3expressAvailabilityZoneDelim"},{["fn"]:"stringEquals",["argv"]:[{["ref"]:"s3expressAvailabilityZoneDelim"},"--"]}],Cc=[{["conditions"]:[C,T],["endpoint"]:{["url"]:"https://{Bucket}.s3express-fips-{s3expressAvailabilityZoneId}.dualstack.{Region}.{partitionResult#dnsSuffix}",["properties"]:{["backend"]:"S3Express",["authSchemes"]:[{["disableDoubleEncoding"]:!0,["name"]:"sigv4-s3express",["signingName"]:"s3express",["signingRegion"]:"{Region}"}]},["headers"]:{}},["type"]:"endpoint"},{["conditions"]:KR,["endpoint"]:{["url"]:"https://{Bucket}.s3express-fips-{s3expressAvailabilityZoneId}.{Region}.{partitionResult#dnsSuffix}",["properties"]:{["backend"]:"S3Express",["authSchemes"]:[{["disableDoubleEncoding"]:!0,["name"]:"sigv4-s3express",["signingName"]:"s3express",["signingRegion"]:"{Region}"}]},["headers"]:{}},["type"]:"endpoint"},{["conditions"]:OR,["endpoint"]:{["url"]:"https://{Bucket}.s3express-{s3expressAvailabilityZoneId}.dualstack.{Region}.{partitionResult#dnsSuffix}",["properties"]:{["backend"]:"S3Express",["authSchemes"]:[{["disableDoubleEncoding"]:!0,["name"]:"sigv4-s3express",["signingName"]:"s3express",["signingRegion"]:"{Region}"}]},["headers"]:{}},["type"]:"endpoint"},{["conditions"]:bR,["endpoint"]:{["url"]:"https://{Bucket}.s3express-{s3expressAvailabilityZoneId}.{Region}.{partitionResult#dnsSuffix}",["properties"]:{["backend"]:"S3Express",["authSchemes"]:[{["disableDoubleEncoding"]:!0,["name"]:"sigv4-s3express",["signingName"]:"s3express",["signingRegion"]:"{Region}"}]},["headers"]:{}},["type"]:"endpoint"}],wA=[I,0,7,!0],jA=[{["fn"]:"substring",["argv"]:[I,7,15,!0],["assign"]:"s3expressAvailabilityZoneId"},{["fn"]:"substring",["argv"]:[I,15,17,!0],["assign"]:"s3expressAvailabilityZoneDelim"},{["fn"]:"stringEquals",["argv"]:[{["ref"]:"s3expressAvailabilityZoneDelim"},"--"]}],LA=[{["fn"]:"substring",["argv"]:[I,7,16,!0],["assign"]:"s3expressAvailabilityZoneId"},{["fn"]:"substring",["argv"]:[I,16,18,!0],["assign"]:"s3expressAvailabilityZoneDelim"},{["fn"]:"stringEquals",["argv"]:[{["ref"]:"s3expressAvailabilityZoneDelim"},"--"]}],xA=[{["fn"]:"substring",["argv"]:[I,7,20,!0],["assign"]:"s3expressAvailabilityZoneId"},{["fn"]:"substring",["argv"]:[I,20,22,!0],["assign"]:"s3expressAvailabilityZoneDelim"},{["fn"]:"stringEquals",["argv"]:[{["ref"]:"s3expressAvailabilityZoneDelim"},"--"]}],IA=[{["fn"]:"substring",["argv"]:[I,7,21,!0],["assign"]:"s3expressAvailabilityZoneId"},{["fn"]:"substring",["argv"]:[I,21,23,!0],["assign"]:"s3expressAvailabilityZoneDelim"},{["fn"]:"stringEquals",["argv"]:[{["ref"]:"s3expressAvailabilityZoneDelim"},"--"]}],PA=[{["fn"]:"substring",["argv"]:[I,7,27,!0],["assign"]:"s3expressAvailabilityZoneId"},{["fn"]:"substring",["argv"]:[I,27,29,!0],["assign"]:"s3expressAvailabilityZoneDelim"},{["fn"]:"stringEquals",["argv"]:[{["ref"]:"s3expressAvailabilityZoneDelim"},"--"]}],NW=[PR],KA=[{["fn"]:"isValidHostLabel",["argv"]:[{["ref"]:"outpostId"},!1]}],OA=[{["fn"]:"stringEquals",["argv"]:[{["ref"]:"regionPrefix"},"beta"]}],ZW=["*"],bA=[{["fn"]:"isValidHostLabel",["argv"]:[{["ref"]:"Region"},!1]}],ac=[{["fn"]:"stringEquals",["argv"]:[{["ref"]:"Region"},"us-east-1"]}],f$=[{["fn"]:"stringEquals",["argv"]:[iA,"accesspoint"]}],qA=[{["fn"]:"getAttr",["argv"]:[Nc,"resourceId[1]"],["assign"]:"accessPointName"},{["fn"]:"not",["argv"]:[{["fn"]:"stringEquals",["argv"]:[G$,""]}]}],JW=[Nc,"resourceId[1]"],VA=[T],R$=[{["fn"]:"not",["argv"]:[{["fn"]:"stringEquals",["argv"]:[{["fn"]:"getAttr",["argv"]:[Nc,"region"]},""]}]}],EA=[{["fn"]:"not",["argv"]:[{["fn"]:"isSet",["argv"]:[{["fn"]:"getAttr",["argv"]:[Nc,"resourceId[2]"]}]}]}],zW=[Nc,"resourceId[2]"],h$=[{["fn"]:"aws.partition",["argv"]:[{["fn"]:"getAttr",["argv"]:[Nc,"region"]}],["assign"]:"bucketPartition"}],TA=[{["fn"]:"stringEquals",["argv"]:[kA,{["fn"]:"getAttr",["argv"]:[{["ref"]:"partitionResult"},"name"]}]}],$$=[{["fn"]:"isValidHostLabel",["argv"]:[{["fn"]:"getAttr",["argv"]:[Nc,"region"]},!0]}],H$=[{["fn"]:"isValidHostLabel",["argv"]:[lA,!1]}],uA=[{["fn"]:"isValidHostLabel",["argv"]:[G$,!1]}],O0=[C],gA=[{["fn"]:"isValidHostLabel",["argv"]:[{["ref"]:"Region"},!0]}],SW={version:"1.0",parameters:{Bucket:qf,Region:qf,UseFIPS:Vf,UseDualStack:Vf,Endpoint:qf,ForcePathStyle:Vf,Accelerate:Vf,UseGlobalEndpoint:Vf,UseObjectLambdaEndpoint:xR,Key:qf,Prefix:qf,CopySource:qf,DisableAccessPoints:xR,DisableMultiRegionAccessPoints:Vf,UseArnRegion:xR,UseS3ExpressControlEndpoint:xR,DisableS3ExpressSessionAuth:xR},["rules"]:[{["conditions"]:[{["fn"]:"isSet",["argv"]:t1}],["rules"]:[{["conditions"]:[wc,C],error:"Accelerate cannot be used with FIPS",["type"]:"error"},{["conditions"]:[T,k],error:"Cannot set dual-stack in combination with a custom endpoint.",["type"]:"error"},{["conditions"]:[k,C],error:"A custom endpoint cannot be combined with FIPS",["type"]:"error"},{["conditions"]:[k,wc],error:"A custom endpoint cannot be combined with S3 Accelerate",["type"]:"error"},{["conditions"]:[C,CA,mH],error:"Partition does not support FIPS",["type"]:"error"},{["conditions"]:[PR,{["fn"]:"substring",["argv"]:[I,0,6,!0],["assign"]:"bucketSuffix"},{["fn"]:"stringEquals",["argv"]:[{["ref"]:"bucketSuffix"},"--x-s3"]}],["rules"]:[pH,sH,{["conditions"]:[kH,lH],["rules"]:[{["conditions"]:Dc,["rules"]:[{["conditions"]:[pA,X],["rules"]:[{["conditions"]:c$,endpoint:{["url"]:"https://s3express-control-fips.dualstack.{Region}.{partitionResult#dnsSuffix}/{uri_encoded_bucket}",["properties"]:zc,["headers"]:B},["type"]:"endpoint"},{["conditions"]:KR,endpoint:{["url"]:"https://s3express-control-fips.{Region}.{partitionResult#dnsSuffix}/{uri_encoded_bucket}",["properties"]:zc,["headers"]:B},["type"]:"endpoint"},{["conditions"]:OR,endpoint:{["url"]:"https://s3express-control.dualstack.{Region}.{partitionResult#dnsSuffix}/{uri_encoded_bucket}",["properties"]:zc,["headers"]:B},["type"]:"endpoint"},{["conditions"]:bR,endpoint:{["url"]:"https://s3express-control.{Region}.{partitionResult#dnsSuffix}/{uri_encoded_bucket}",["properties"]:zc,["headers"]:B},["type"]:"endpoint"}],["type"]:"tree"}],["type"]:"tree"}],["type"]:"tree"},{["conditions"]:e1,["rules"]:[{["conditions"]:Dc,["rules"]:[{["conditions"]:SA,["rules"]:[{["conditions"]:MA,["rules"]:gc,["type"]:"tree"},{["conditions"]:BA,["rules"]:gc,["type"]:"tree"},{["conditions"]:XA,["rules"]:gc,["type"]:"tree"},{["conditions"]:QA,["rules"]:gc,["type"]:"tree"},{["conditions"]:DA,["rules"]:gc,["type"]:"tree"},I0],["type"]:"tree"},{["conditions"]:MA,["rules"]:Cc,["type"]:"tree"},{["conditions"]:BA,["rules"]:Cc,["type"]:"tree"},{["conditions"]:XA,["rules"]:Cc,["type"]:"tree"},{["conditions"]:QA,["rules"]:Cc,["type"]:"tree"},{["conditions"]:DA,["rules"]:Cc,["type"]:"tree"},I0],["type"]:"tree"}],["type"]:"tree"},iH],["type"]:"tree"},{["conditions"]:[PR,{["fn"]:"substring",["argv"]:wA,["assign"]:"accessPointSuffix"},{["fn"]:"stringEquals",["argv"]:[{["ref"]:"accessPointSuffix"},"--xa-s3"]}],["rules"]:[pH,sH,{["conditions"]:e1,["rules"]:[{["conditions"]:Dc,["rules"]:[{["conditions"]:SA,["rules"]:[{["conditions"]:jA,["rules"]:gc,["type"]:"tree"},{["conditions"]:LA,["rules"]:gc,["type"]:"tree"},{["conditions"]:xA,["rules"]:gc,["type"]:"tree"},{["conditions"]:IA,["rules"]:gc,["type"]:"tree"},{["conditions"]:PA,["rules"]:gc,["type"]:"tree"},I0],["type"]:"tree"},{["conditions"]:jA,["rules"]:Cc,["type"]:"tree"},{["conditions"]:LA,["rules"]:Cc,["type"]:"tree"},{["conditions"]:xA,["rules"]:Cc,["type"]:"tree"},{["conditions"]:IA,["rules"]:Cc,["type"]:"tree"},{["conditions"]:PA,["rules"]:Cc,["type"]:"tree"},I0],["type"]:"tree"}],["type"]:"tree"},iH],["type"]:"tree"},{["conditions"]:[dH,kH,lH],["rules"]:[{["conditions"]:Dc,["rules"]:[{["conditions"]:Ef,endpoint:{["url"]:"{url#scheme}://{url#authority}{url#path}",["properties"]:zc,["headers"]:B},["type"]:"endpoint"},{["conditions"]:c$,endpoint:{["url"]:"https://s3express-control-fips.dualstack.{Region}.{partitionResult#dnsSuffix}",["properties"]:zc,["headers"]:B},["type"]:"endpoint"},{["conditions"]:KR,endpoint:{["url"]:"https://s3express-control-fips.{Region}.{partitionResult#dnsSuffix}",["properties"]:zc,["headers"]:B},["type"]:"endpoint"},{["conditions"]:OR,endpoint:{["url"]:"https://s3express-control.dualstack.{Region}.{partitionResult#dnsSuffix}",["properties"]:zc,["headers"]:B},["type"]:"endpoint"},{["conditions"]:bR,endpoint:{["url"]:"https://s3express-control.{Region}.{partitionResult#dnsSuffix}",["properties"]:zc,["headers"]:B},["type"]:"endpoint"}],["type"]:"tree"}],["type"]:"tree"},{["conditions"]:[PR,{["fn"]:"substring",["argv"]:[I,49,50,!0],["assign"]:"hardwareType"},{["fn"]:"substring",["argv"]:[I,8,12,!0],["assign"]:"regionPrefix"},{["fn"]:"substring",["argv"]:wA,["assign"]:"bucketAliasSuffix"},{["fn"]:"substring",["argv"]:[I,32,49,!0],["assign"]:"outpostId"},{["fn"]:"aws.partition",["argv"]:t1,["assign"]:"regionPartition"},{["fn"]:"stringEquals",["argv"]:[{["ref"]:"bucketAliasSuffix"},"--op-s3"]}],["rules"]:[{["conditions"]:KA,["rules"]:[{["conditions"]:e1,["rules"]:[{["conditions"]:[{["fn"]:"stringEquals",["argv"]:[_H,"e"]}],["rules"]:[{["conditions"]:OA,["rules"]:[nH,{["conditions"]:Ef,endpoint:{["url"]:"https://{Bucket}.ec2.{url#authority}",["properties"]:P0,["headers"]:B},["type"]:"endpoint"}],["type"]:"tree"},{endpoint:{["url"]:"https://{Bucket}.ec2.s3-outposts.{Region}.{regionPartition#dnsSuffix}",["properties"]:P0,["headers"]:B},["type"]:"endpoint"}],["type"]:"tree"},{["conditions"]:[{["fn"]:"stringEquals",["argv"]:[_H,"o"]}],["rules"]:[{["conditions"]:OA,["rules"]:[nH,{["conditions"]:Ef,endpoint:{["url"]:"https://{Bucket}.op-{outpostId}.{url#authority}",["properties"]:P0,["headers"]:B},["type"]:"endpoint"}],["type"]:"tree"},{endpoint:{["url"]:"https://{Bucket}.op-{outpostId}.s3-outposts.{Region}.{regionPartition#dnsSuffix}",["properties"]:P0,["headers"]:B},["type"]:"endpoint"}],["type"]:"tree"},{error:'Unrecognized hardware type: "Expected hardware type o or e but got {hardwareType}"',["type"]:"error"}],["type"]:"tree"},{error:"Invalid Outposts Bucket alias - it must be a valid bucket name.",["type"]:"error"}],["type"]:"tree"},{error:"Invalid ARN: The outpost Id must only contain a-z, A-Z, 0-9 and `-`.",["type"]:"error"}],["type"]:"tree"},{["conditions"]:NW,["rules"]:[{["conditions"]:[k,{["fn"]:"not",["argv"]:[{["fn"]:"isSet",["argv"]:[{["fn"]:"parseURL",["argv"]:vW}]}]}],error:"Custom endpoint `{Endpoint}` was not a valid URI",["type"]:"error"},{["conditions"]:[g1,sA],["rules"]:[{["conditions"]:Dc,["rules"]:[{["conditions"]:bA,["rules"]:[{["conditions"]:[wc,mH],error:"S3 Accelerate cannot be used in this region",["type"]:"error"},{["conditions"]:[T,C,d,X,n],endpoint:{["url"]:"https://{Bucket}.s3-fips.dualstack.us-east-1.{partitionResult#dnsSuffix}",["properties"]:t,["headers"]:B},["type"]:"endpoint"},{["conditions"]:[T,C,d,X,x,r],["rules"]:[{endpoint:oH,["type"]:"endpoint"}],["type"]:"tree"},{["conditions"]:[T,C,d,X,x,e],endpoint:oH,["type"]:"endpoint"},{["conditions"]:[j,C,d,X,n],endpoint:{["url"]:"https://{Bucket}.s3-fips.us-east-1.{partitionResult#dnsSuffix}",["properties"]:t,["headers"]:B},["type"]:"endpoint"},{["conditions"]:[j,C,d,X,x,r],["rules"]:[{endpoint:aH,["type"]:"endpoint"}],["type"]:"tree"},{["conditions"]:[j,C,d,X,x,e],endpoint:aH,["type"]:"endpoint"},{["conditions"]:[T,D,wc,X,n],endpoint:{["url"]:"https://{Bucket}.s3-accelerate.dualstack.us-east-1.{partitionResult#dnsSuffix}",["properties"]:t,["headers"]:B},["type"]:"endpoint"},{["conditions"]:[T,D,wc,X,x,r],["rules"]:[{endpoint:tH,["type"]:"endpoint"}],["type"]:"tree"},{["conditions"]:[T,D,wc,X,x,e],endpoint:tH,["type"]:"endpoint"},{["conditions"]:[T,D,d,X,n],endpoint:{["url"]:"https://{Bucket}.s3.dualstack.us-east-1.{partitionResult#dnsSuffix}",["properties"]:t,["headers"]:B},["type"]:"endpoint"},{["conditions"]:[T,D,d,X,x,r],["rules"]:[{endpoint:rH,["type"]:"endpoint"}],["type"]:"tree"},{["conditions"]:[T,D,d,X,x,e],endpoint:rH,["type"]:"endpoint"},{["conditions"]:[j,D,d,k,Uc,u1,n],endpoint:{["url"]:"{url#scheme}://{url#authority}{url#normalizedPath}{Bucket}",["properties"]:t,["headers"]:B},["type"]:"endpoint"},{["conditions"]:[j,D,d,k,Uc,C1,n],endpoint:{["url"]:"{url#scheme}://{Bucket}.{url#authority}{url#path}",["properties"]:t,["headers"]:B},["type"]:"endpoint"},{["conditions"]:[j,D,d,k,Uc,u1,x,r],["rules"]:[{["conditions"]:ac,endpoint:m1,["type"]:"endpoint"},{endpoint:m1,["type"]:"endpoint"}],["type"]:"tree"},{["conditions"]:[j,D,d,k,Uc,C1,x,r],["rules"]:[{["conditions"]:ac,endpoint:A$,["type"]:"endpoint"},eH],["type"]:"tree"},{["conditions"]:[j,D,d,k,Uc,u1,x,e],endpoint:m1,["type"]:"endpoint"},{["conditions"]:[j,D,d,k,Uc,C1,x,e],endpoint:A$,["type"]:"endpoint"},{["conditions"]:[j,D,wc,X,n],endpoint:{["url"]:"https://{Bucket}.s3-accelerate.{partitionResult#dnsSuffix}",["properties"]:t,["headers"]:B},["type"]:"endpoint"},{["conditions"]:[j,D,wc,X,x,r],["rules"]:[{["conditions"]:ac,endpoint:p1,["type"]:"endpoint"},{endpoint:p1,["type"]:"endpoint"}],["type"]:"tree"},{["conditions"]:[j,D,wc,X,x,e],endpoint:p1,["type"]:"endpoint"},{["conditions"]:[j,D,d,X,n],endpoint:{["url"]:"https://{Bucket}.s3.{partitionResult#dnsSuffix}",["properties"]:t,["headers"]:B},["type"]:"endpoint"},{["conditions"]:[j,D,d,X,x,r],["rules"]:[{["conditions"]:ac,endpoint:{["url"]:"https://{Bucket}.s3.{partitionResult#dnsSuffix}",["properties"]:_,["headers"]:B},["type"]:"endpoint"},{endpoint:cA,["type"]:"endpoint"}],["type"]:"tree"},{["conditions"]:[j,D,d,X,x,e],endpoint:cA,["type"]:"endpoint"}],["type"]:"tree"},K0],["type"]:"tree"}],["type"]:"tree"},{["conditions"]:[k,Uc,{["fn"]:"stringEquals",["argv"]:[{["fn"]:"getAttr",["argv"]:[mA,"scheme"]},"http"]},{["fn"]:"aws.isVirtualHostableS3Bucket",["argv"]:[I,!0]},g1,D,j,d],["rules"]:[{["conditions"]:Dc,["rules"]:[{["conditions"]:bA,["rules"]:[eH],["type"]:"tree"},K0],["type"]:"tree"}],["type"]:"tree"},{["conditions"]:[g1,{["fn"]:"aws.parseArn",["argv"]:UW,["assign"]:"bucketArn"}],["rules"]:[{["conditions"]:[{["fn"]:"getAttr",["argv"]:[Nc,"resourceId[0]"],["assign"]:"arnType"},{["fn"]:"not",["argv"]:[{["fn"]:"stringEquals",["argv"]:[iA,""]}]}],["rules"]:[{["conditions"]:[{["fn"]:"stringEquals",["argv"]:[s1,"s3-object-lambda"]}],["rules"]:[{["conditions"]:f$,["rules"]:[{["conditions"]:qA,["rules"]:[fA,RA,{["conditions"]:R$,["rules"]:[hA,{["conditions"]:EA,["rules"]:[i1,{["conditions"]:h$,["rules"]:[{["conditions"]:Dc,["rules"]:[{["conditions"]:TA,["rules"]:[{["conditions"]:$$,["rules"]:[{["conditions"]:[{["fn"]:"stringEquals",["argv"]:[lA,""]}],error:"Invalid ARN: Missing account id",["type"]:"error"},{["conditions"]:H$,["rules"]:[{["conditions"]:uA,["rules"]:[{["conditions"]:Ef,endpoint:{["url"]:"{url#scheme}://{accessPointName}-{bucketArn#accountId}.{url#authority}{url#path}",["properties"]:k1,["headers"]:B},["type"]:"endpoint"},{["conditions"]:O0,endpoint:{["url"]:"https://{accessPointName}-{bucketArn#accountId}.s3-object-lambda-fips.{bucketArn#region}.{bucketPartition#dnsSuffix}",["properties"]:k1,["headers"]:B},["type"]:"endpoint"},{endpoint:{["url"]:"https://{accessPointName}-{bucketArn#accountId}.s3-object-lambda.{bucketArn#region}.{bucketPartition#dnsSuffix}",["properties"]:k1,["headers"]:B},["type"]:"endpoint"}],["type"]:"tree"},$A],["type"]:"tree"},l1],["type"]:"tree"},d1],["type"]:"tree"},_1],["type"]:"tree"}],["type"]:"tree"}],["type"]:"tree"},HA],["type"]:"tree"},{error:"Invalid ARN: bucket ARN is missing a region",["type"]:"error"}],["type"]:"tree"},AA],["type"]:"tree"},{error:"Invalid ARN: Object Lambda ARNs only support `accesspoint` arn types, but found: `{arnType}`",["type"]:"error"}],["type"]:"tree"},{["conditions"]:f$,["rules"]:[{["conditions"]:qA,["rules"]:[{["conditions"]:R$,["rules"]:[{["conditions"]:f$,["rules"]:[{["conditions"]:R$,["rules"]:[hA,{["conditions"]:EA,["rules"]:[i1,{["conditions"]:h$,["rules"]:[{["conditions"]:Dc,["rules"]:[{["conditions"]:[{["fn"]:"stringEquals",["argv"]:[kA,"{partitionResult#name}"]}],["rules"]:[{["conditions"]:$$,["rules"]:[{["conditions"]:[{["fn"]:"stringEquals",["argv"]:[s1,"s3"]}],["rules"]:[{["conditions"]:H$,["rules"]:[{["conditions"]:uA,["rules"]:[{["conditions"]:r1,error:"Access Points do not support S3 Accelerate",["type"]:"error"},{["conditions"]:c$,endpoint:{["url"]:"https://{accessPointName}-{bucketArn#accountId}.s3-accesspoint-fips.dualstack.{bucketArn#region}.{bucketPartition#dnsSuffix}",["properties"]:IR,["headers"]:B},["type"]:"endpoint"},{["conditions"]:KR,endpoint:{["url"]:"https://{accessPointName}-{bucketArn#accountId}.s3-accesspoint-fips.{bucketArn#region}.{bucketPartition#dnsSuffix}",["properties"]:IR,["headers"]:B},["type"]:"endpoint"},{["conditions"]:OR,endpoint:{["url"]:"https://{accessPointName}-{bucketArn#accountId}.s3-accesspoint.dualstack.{bucketArn#region}.{bucketPartition#dnsSuffix}",["properties"]:IR,["headers"]:B},["type"]:"endpoint"},{["conditions"]:[D,j,k,Uc],endpoint:{["url"]:"{url#scheme}://{accessPointName}-{bucketArn#accountId}.{url#authority}{url#path}",["properties"]:IR,["headers"]:B},["type"]:"endpoint"},{["conditions"]:bR,endpoint:{["url"]:"https://{accessPointName}-{bucketArn#accountId}.s3-accesspoint.{bucketArn#region}.{bucketPartition#dnsSuffix}",["properties"]:IR,["headers"]:B},["type"]:"endpoint"}],["type"]:"tree"},$A],["type"]:"tree"},l1],["type"]:"tree"},{error:"Invalid ARN: The ARN was not for the S3 service, found: {bucketArn#service}",["type"]:"error"}],["type"]:"tree"},d1],["type"]:"tree"},_1],["type"]:"tree"}],["type"]:"tree"}],["type"]:"tree"},HA],["type"]:"tree"}],["type"]:"tree"}],["type"]:"tree"},{["conditions"]:[{["fn"]:"isValidHostLabel",["argv"]:[G$,!0]}],["rules"]:[{["conditions"]:VA,error:"S3 MRAP does not support dual-stack",["type"]:"error"},{["conditions"]:O0,error:"S3 MRAP does not support FIPS",["type"]:"error"},{["conditions"]:r1,error:"S3 MRAP does not support S3 Accelerate",["type"]:"error"},{["conditions"]:[{["fn"]:"booleanEquals",["argv"]:[{["ref"]:"DisableMultiRegionAccessPoints"},!0]}],error:"Invalid configuration: Multi-Region Access Point ARNs are disabled.",["type"]:"error"},{["conditions"]:[{["fn"]:"aws.partition",["argv"]:t1,["assign"]:"mrapPartition"}],["rules"]:[{["conditions"]:[{["fn"]:"stringEquals",["argv"]:[{["fn"]:"getAttr",["argv"]:[{["ref"]:"mrapPartition"},"name"]},{["fn"]:"getAttr",["argv"]:[Nc,"partition"]}]}],["rules"]:[{endpoint:{["url"]:"https://{accessPointName}.accesspoint.s3-global.{mrapPartition#dnsSuffix}",["properties"]:{["authSchemes"]:[{["disableDoubleEncoding"]:!0,name:"sigv4a",["signingName"]:"s3",["signingRegionSet"]:ZW}]},["headers"]:B},["type"]:"endpoint"}],["type"]:"tree"},{error:"Client was configured for partition `{mrapPartition#name}` but bucket referred to partition `{bucketArn#partition}`",["type"]:"error"}],["type"]:"tree"}],["type"]:"tree"},{error:"Invalid Access Point Name",["type"]:"error"}],["type"]:"tree"},AA],["type"]:"tree"},{["conditions"]:[{["fn"]:"stringEquals",["argv"]:[s1,"s3-outposts"]}],["rules"]:[{["conditions"]:VA,error:"S3 Outposts does not support Dual-stack",["type"]:"error"},{["conditions"]:O0,error:"S3 Outposts does not support FIPS",["type"]:"error"},{["conditions"]:r1,error:"S3 Outposts does not support S3 Accelerate",["type"]:"error"},{["conditions"]:[{["fn"]:"isSet",["argv"]:[{["fn"]:"getAttr",["argv"]:[Nc,"resourceId[4]"]}]}],error:"Invalid Arn: Outpost Access Point ARN contains sub resources",["type"]:"error"},{["conditions"]:[{["fn"]:"getAttr",["argv"]:JW,["assign"]:"outpostId"}],["rules"]:[{["conditions"]:KA,["rules"]:[i1,{["conditions"]:h$,["rules"]:[{["conditions"]:Dc,["rules"]:[{["conditions"]:TA,["rules"]:[{["conditions"]:$$,["rules"]:[{["conditions"]:H$,["rules"]:[{["conditions"]:[{["fn"]:"getAttr",["argv"]:zW,["assign"]:"outpostType"}],["rules"]:[{["conditions"]:[{["fn"]:"getAttr",["argv"]:[Nc,"resourceId[3]"],["assign"]:"accessPointName"}],["rules"]:[{["conditions"]:[{["fn"]:"stringEquals",["argv"]:[{["ref"]:"outpostType"},"accesspoint"]}],["rules"]:[{["conditions"]:Ef,endpoint:{["url"]:"https://{accessPointName}-{bucketArn#accountId}.{outpostId}.{url#authority}",["properties"]:GA,["headers"]:B},["type"]:"endpoint"},{endpoint:{["url"]:"https://{accessPointName}-{bucketArn#accountId}.{outpostId}.s3-outposts.{bucketArn#region}.{bucketPartition#dnsSuffix}",["properties"]:GA,["headers"]:B},["type"]:"endpoint"}],["type"]:"tree"},{error:"Expected an outpost type `accesspoint`, found {outpostType}",["type"]:"error"}],["type"]:"tree"},{error:"Invalid ARN: expected an access point name",["type"]:"error"}],["type"]:"tree"},{error:"Invalid ARN: Expected a 4-component resource",["type"]:"error"}],["type"]:"tree"},l1],["type"]:"tree"},d1],["type"]:"tree"},_1],["type"]:"tree"}],["type"]:"tree"}],["type"]:"tree"},{error:"Invalid ARN: The outpost Id may only contain a-z, A-Z, 0-9 and `-`. Found: `{outpostId}`",["type"]:"error"}],["type"]:"tree"},{error:"Invalid ARN: The Outpost Id was not set",["type"]:"error"}],["type"]:"tree"},{error:"Invalid ARN: Unrecognized format: {Bucket} (type: {arnType})",["type"]:"error"}],["type"]:"tree"},{error:"Invalid ARN: No ARN type specified",["type"]:"error"}],["type"]:"tree"},{["conditions"]:[{["fn"]:"substring",["argv"]:[I,0,4,!1],["assign"]:"arnPrefix"},{["fn"]:"stringEquals",["argv"]:[{["ref"]:"arnPrefix"},"arn:"]},{["fn"]:"not",["argv"]:[{["fn"]:"isSet",["argv"]:[yA]}]}],error:"Invalid ARN: `{Bucket}` was not a valid ARN",["type"]:"error"},{["conditions"]:[{["fn"]:"booleanEquals",["argv"]:[WW,!0]},yA],error:"Path-style addressing cannot be used with ARN buckets",["type"]:"error"},{["conditions"]:YW,["rules"]:[{["conditions"]:Dc,["rules"]:[{["conditions"]:[d],["rules"]:[{["conditions"]:[T,X,C,n],endpoint:{["url"]:"https://s3-fips.dualstack.us-east-1.{partitionResult#dnsSuffix}/{uri_encoded_bucket}",["properties"]:t,["headers"]:B},["type"]:"endpoint"},{["conditions"]:[T,X,C,x,r],["rules"]:[{endpoint:FA,["type"]:"endpoint"}],["type"]:"tree"},{["conditions"]:[T,X,C,x,e],endpoint:FA,["type"]:"endpoint"},{["conditions"]:[j,X,C,n],endpoint:{["url"]:"https://s3-fips.us-east-1.{partitionResult#dnsSuffix}/{uri_encoded_bucket}",["properties"]:t,["headers"]:B},["type"]:"endpoint"},{["conditions"]:[j,X,C,x,r],["rules"]:[{endpoint:WA,["type"]:"endpoint"}],["type"]:"tree"},{["conditions"]:[j,X,C,x,e],endpoint:WA,["type"]:"endpoint"},{["conditions"]:[T,X,D,n],endpoint:{["url"]:"https://s3.dualstack.us-east-1.{partitionResult#dnsSuffix}/{uri_encoded_bucket}",["properties"]:t,["headers"]:B},["type"]:"endpoint"},{["conditions"]:[T,X,D,x,r],["rules"]:[{endpoint:vA,["type"]:"endpoint"}],["type"]:"tree"},{["conditions"]:[T,X,D,x,e],endpoint:vA,["type"]:"endpoint"},{["conditions"]:[j,k,Uc,D,n],endpoint:{["url"]:"{url#scheme}://{url#authority}{url#normalizedPath}{uri_encoded_bucket}",["properties"]:t,["headers"]:B},["type"]:"endpoint"},{["conditions"]:[j,k,Uc,D,x,r],["rules"]:[{["conditions"]:ac,endpoint:n1,["type"]:"endpoint"},{endpoint:n1,["type"]:"endpoint"}],["type"]:"tree"},{["conditions"]:[j,k,Uc,D,x,e],endpoint:n1,["type"]:"endpoint"},{["conditions"]:[j,X,D,n],endpoint:{["url"]:"https://s3.{partitionResult#dnsSuffix}/{uri_encoded_bucket}",["properties"]:t,["headers"]:B},["type"]:"endpoint"},{["conditions"]:[j,X,D,x,r],["rules"]:[{["conditions"]:ac,endpoint:{["url"]:"https://s3.{partitionResult#dnsSuffix}/{uri_encoded_bucket}",["properties"]:_,["headers"]:B},["type"]:"endpoint"},{endpoint:UA,["type"]:"endpoint"}],["type"]:"tree"},{["conditions"]:[j,X,D,x,e],endpoint:UA,["type"]:"endpoint"}],["type"]:"tree"},{error:"Path-style addressing cannot be used with S3 Accelerate",["type"]:"error"}],["type"]:"tree"}],["type"]:"tree"}],["type"]:"tree"},{["conditions"]:[{["fn"]:"isSet",["argv"]:[YA]},{["fn"]:"booleanEquals",["argv"]:[YA,!0]}],["rules"]:[{["conditions"]:Dc,["rules"]:[{["conditions"]:gA,["rules"]:[fA,RA,{["conditions"]:Ef,endpoint:{["url"]:"{url#scheme}://{url#authority}{url#path}",["properties"]:o1,["headers"]:B},["type"]:"endpoint"},{["conditions"]:O0,endpoint:{["url"]:"https://s3-object-lambda-fips.{Region}.{partitionResult#dnsSuffix}",["properties"]:o1,["headers"]:B},["type"]:"endpoint"},{endpoint:{["url"]:"https://s3-object-lambda.{Region}.{partitionResult#dnsSuffix}",["properties"]:o1,["headers"]:B},["type"]:"endpoint"}],["type"]:"tree"},K0],["type"]:"tree"}],["type"]:"tree"},{["conditions"]:[dH],["rules"]:[{["conditions"]:Dc,["rules"]:[{["conditions"]:gA,["rules"]:[{["conditions"]:[C,T,X,n],endpoint:{["url"]:"https://s3-fips.dualstack.us-east-1.{partitionResult#dnsSuffix}",["properties"]:t,["headers"]:B},["type"]:"endpoint"},{["conditions"]:[C,T,X,x,r],["rules"]:[{endpoint:NA,["type"]:"endpoint"}],["type"]:"tree"},{["conditions"]:[C,T,X,x,e],endpoint:NA,["type"]:"endpoint"},{["conditions"]:[C,j,X,n],endpoint:{["url"]:"https://s3-fips.us-east-1.{partitionResult#dnsSuffix}",["properties"]:t,["headers"]:B},["type"]:"endpoint"},{["conditions"]:[C,j,X,x,r],["rules"]:[{endpoint:ZA,["type"]:"endpoint"}],["type"]:"tree"},{["conditions"]:[C,j,X,x,e],endpoint:ZA,["type"]:"endpoint"},{["conditions"]:[D,T,X,n],endpoint:{["url"]:"https://s3.dualstack.us-east-1.{partitionResult#dnsSuffix}",["properties"]:t,["headers"]:B},["type"]:"endpoint"},{["conditions"]:[D,T,X,x,r],["rules"]:[{endpoint:JA,["type"]:"endpoint"}],["type"]:"tree"},{["conditions"]:[D,T,X,x,e],endpoint:JA,["type"]:"endpoint"},{["conditions"]:[D,j,k,Uc,n],endpoint:{["url"]:"{url#scheme}://{url#authority}{url#path}",["properties"]:t,["headers"]:B},["type"]:"endpoint"},{["conditions"]:[D,j,k,Uc,x,r],["rules"]:[{["conditions"]:ac,endpoint:a1,["type"]:"endpoint"},{endpoint:a1,["type"]:"endpoint"}],["type"]:"tree"},{["conditions"]:[D,j,k,Uc,x,e],endpoint:a1,["type"]:"endpoint"},{["conditions"]:[D,j,X,n],endpoint:{["url"]:"https://s3.{partitionResult#dnsSuffix}",["properties"]:t,["headers"]:B},["type"]:"endpoint"},{["conditions"]:[D,j,X,x,r],["rules"]:[{["conditions"]:ac,endpoint:{["url"]:"https://s3.{partitionResult#dnsSuffix}",["properties"]:_,["headers"]:B},["type"]:"endpoint"},{endpoint:zA,["type"]:"endpoint"}],["type"]:"tree"},{["conditions"]:[D,j,X,x,e],endpoint:zA,["type"]:"endpoint"}],["type"]:"tree"},K0],["type"]:"tree"}],["type"]:"tree"}],["type"]:"tree"},{error:"A region must be set when sending requests to S3.",["type"]:"error"}]},dA=SW;var XW=new Tf.EndpointCache({size:50,params:["Accelerate","Bucket","DisableAccessPoints","DisableMultiRegionAccessPoints","DisableS3ExpressSessionAuth","Endpoint","ForcePathStyle","Region","UseArnRegion","UseDualStack","UseFIPS","UseGlobalEndpoint","UseObjectLambdaEndpoint","UseS3ExpressControlEndpoint"]}),b0=(c,f={})=>{return XW.get(c,()=>Tf.resolveEndpoint(dA,{endpointParams:c,logger:f.logger}))};Tf.customEndpointFunctions.aws=_A.awsEndpointFunctions;var QW=(c)=>async(f,R,h)=>{if(!h)throw Error("Could not find `input` for `defaultEndpointRuleSetHttpAuthSchemeParametersProvider`");let $=await c(f,R,h),H=gf.getSmithyContext(R)?.commandInstance?.constructor?.getEndpointParameterInstructions;if(!H)throw Error(`getEndpointParameterInstructions() is not defined on '${R.commandName}'`);let A=await nA.resolveParams(h,{getEndpointParameterInstructions:H},f);return Object.assign($,A)},DW=async(c,f,R)=>{return{operation:gf.getSmithyContext(f).operation,region:await gf.normalizeProvider(c.region)()||(()=>{throw Error("expected `region` to be configured for `aws.auth#sigv4`")})()}},oA=QW(DW);function aA(c){return{schemeId:"aws.auth#sigv4",signingProperties:{name:"s3",region:c.region},propertiesExtractor:(f,R)=>({signingProperties:{config:f,context:R}})}}function tA(c){return{schemeId:"aws.auth#sigv4a",signingProperties:{name:"s3",region:c.region},propertiesExtractor:(f,R)=>({signingProperties:{config:f,context:R}})}}var wW=(c,f,R)=>{return($)=>{let A=c($).properties?.authSchemes;if(!A)return f($);let G=[];for(let y of A){let{name:F,properties:U={},...N}=y,z=F.toLowerCase();if(F!==z)console.warn(`HttpAuthScheme has been normalized with lowercasing: '${F}' to '${z}'`);let Z;if(z==="sigv4a"){Z="aws.auth#sigv4a";let a=A.find((Pc)=>{let Kc=Pc.name.toLowerCase();return Kc!=="sigv4a"&&Kc.startsWith("sigv4")});if(LR.sigv4aDependency()==="none"&&a)continue}else if(z.startsWith("sigv4"))Z="aws.auth#sigv4";else throw Error(`Unknown HttpAuthScheme found in '@smithy.rules#endpointRuleSet': '${z}'`);let w=R[Z];if(!w)throw Error(`Could not find HttpAuthOption create function for '${Z}'`);let V=w($);V.schemeId=Z,V.signingProperties={...V.signingProperties||{},...N,...U},G.push(V)}return G}},jW=(c)=>{let f=[];switch(c.operation){default:f.push(aA(c)),f.push(tA(c))}return f},rA=wW(b0,jW,{"aws.auth#sigv4":aA,"aws.auth#sigv4a":tA}),eA=(c)=>{let f=q0.resolveAwsSdkSigV4Config(c),R=q0.resolveAwsSdkSigV4AConfig(f);return Object.assign(R,{authSchemePreference:gf.normalizeProvider(c.authSchemePreference??[])})};var WG=Y(uf(),1),vG=Y(Oc(),1);var cG=(c)=>{return Object.assign(c,{useFipsEndpoint:c.useFipsEndpoint??!1,useDualstackEndpoint:c.useDualstackEndpoint??!1,forcePathStyle:c.forcePathStyle??!1,useAccelerateEndpoint:c.useAccelerateEndpoint??!1,useGlobalEndpoint:c.useGlobalEndpoint??!1,disableMultiregionAccessPoints:c.disableMultiregionAccessPoints??!1,defaultSigningName:"s3",clientContextParams:c.clientContextParams??{}})},tc={ForcePathStyle:{type:"clientContextParams",name:"forcePathStyle"},UseArnRegion:{type:"clientContextParams",name:"useArnRegion"},DisableMultiRegionAccessPoints:{type:"clientContextParams",name:"disableMultiregionAccessPoints"},Accelerate:{type:"clientContextParams",name:"useAccelerateEndpoint"},DisableS3ExpressSessionAuth:{type:"clientContextParams",name:"disableS3ExpressSessionAuth"},UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}};var Wc=Y(hG(),1);var fG=Y(Oc(),1);class o extends fG.ServiceException{constructor(c){super(c);Object.setPrototypeOf(this,o.prototype)}}class V0 extends o{name="NoSuchUpload";$fault="client";constructor(c){super({name:"NoSuchUpload",$fault:"client",...c});Object.setPrototypeOf(this,V0.prototype)}}class E0 extends o{name="ObjectNotInActiveTierError";$fault="client";constructor(c){super({name:"ObjectNotInActiveTierError",$fault:"client",...c});Object.setPrototypeOf(this,E0.prototype)}}class T0 extends o{name="BucketAlreadyExists";$fault="client";constructor(c){super({name:"BucketAlreadyExists",$fault:"client",...c});Object.setPrototypeOf(this,T0.prototype)}}class u0 extends o{name="BucketAlreadyOwnedByYou";$fault="client";constructor(c){super({name:"BucketAlreadyOwnedByYou",$fault:"client",...c});Object.setPrototypeOf(this,u0.prototype)}}class g0 extends o{name="NoSuchBucket";$fault="client";constructor(c){super({name:"NoSuchBucket",$fault:"client",...c});Object.setPrototypeOf(this,g0.prototype)}}class C0 extends o{name="InvalidObjectState";$fault="client";StorageClass;AccessTier;constructor(c){super({name:"InvalidObjectState",$fault:"client",...c});Object.setPrototypeOf(this,C0.prototype),this.StorageClass=c.StorageClass,this.AccessTier=c.AccessTier}}class m0 extends o{name="NoSuchKey";$fault="client";constructor(c){super({name:"NoSuchKey",$fault:"client",...c});Object.setPrototypeOf(this,m0.prototype)}}class p0 extends o{name="NotFound";$fault="client";constructor(c){super({name:"NotFound",$fault:"client",...c});Object.setPrototypeOf(this,p0.prototype)}}class s0 extends o{name="EncryptionTypeMismatch";$fault="client";constructor(c){super({name:"EncryptionTypeMismatch",$fault:"client",...c});Object.setPrototypeOf(this,s0.prototype)}}class i0 extends o{name="InvalidRequest";$fault="client";constructor(c){super({name:"InvalidRequest",$fault:"client",...c});Object.setPrototypeOf(this,i0.prototype)}}class k0 extends o{name="InvalidWriteOffset";$fault="client";constructor(c){super({name:"InvalidWriteOffset",$fault:"client",...c});Object.setPrototypeOf(this,k0.prototype)}}class l0 extends o{name="TooManyParts";$fault="client";constructor(c){super({name:"TooManyParts",$fault:"client",...c});Object.setPrototypeOf(this,l0.prototype)}}class d0 extends o{name="IdempotencyParameterMismatch";$fault="client";constructor(c){super({name:"IdempotencyParameterMismatch",$fault:"client",...c});Object.setPrototypeOf(this,d0.prototype)}}class _0 extends o{name="ObjectAlreadyInActiveTierError";$fault="client";constructor(c){super({name:"ObjectAlreadyInActiveTierError",$fault:"client",...c});Object.setPrototypeOf(this,_0.prototype)}}var RG=[0,"com.amazonaws.s3","SessionCredentialValue",8,0],$G=[0,"com.amazonaws.s3","SSECustomerKey",8,0],n0=[0,"com.amazonaws.s3","SSEKMSEncryptionContext",8,0],qR=[0,"com.amazonaws.s3","SSEKMSKeyId",8,0],HG=[0,"com.amazonaws.s3","StreamingBlob",{["streaming"]:1},42];var LW=[-3,"com.amazonaws.s3","BucketAlreadyExists",{["error"]:"client",["httpError"]:409},[],[]];Wc.TypeRegistry.for("com.amazonaws.s3").registerError(LW,T0);var xW=[-3,"com.amazonaws.s3","BucketAlreadyOwnedByYou",{["error"]:"client",["httpError"]:409},[],[]];Wc.TypeRegistry.for("com.amazonaws.s3").registerError(xW,u0);var IW=[3,"com.amazonaws.s3","CommonPrefix",0,["Prefix"],[0]];var PW=[3,"com.amazonaws.s3","CreateSessionOutput",{["xmlName"]:"CreateSessionResult"},["ServerSideEncryption","SSEKMSKeyId","SSEKMSEncryptionContext","BucketKeyEnabled","Credentials"],[[0,{["httpHeader"]:"x-amz-server-side-encryption"}],[()=>qR,{["httpHeader"]:"x-amz-server-side-encryption-aws-kms-key-id"}],[()=>n0,{["httpHeader"]:"x-amz-server-side-encryption-context"}],[2,{["httpHeader"]:"x-amz-server-side-encryption-bucket-key-enabled"}],[()=>tW,{["xmlName"]:"Credentials"}]]],KW=[3,"com.amazonaws.s3","CreateSessionRequest",0,["SessionMode","Bucket","ServerSideEncryption","SSEKMSKeyId","SSEKMSEncryptionContext","BucketKeyEnabled"],[[0,{["httpHeader"]:"x-amz-create-session-mode"}],[0,1],[0,{["httpHeader"]:"x-amz-server-side-encryption"}],[()=>qR,{["httpHeader"]:"x-amz-server-side-encryption-aws-kms-key-id"}],[()=>n0,{["httpHeader"]:"x-amz-server-side-encryption-context"}],[2,{["httpHeader"]:"x-amz-server-side-encryption-bucket-key-enabled"}]]];var OW=[-3,"com.amazonaws.s3","EncryptionTypeMismatch",{["error"]:"client",["httpError"]:400},[],[]];Wc.TypeRegistry.for("com.amazonaws.s3").registerError(OW,s0);var bW=[3,"com.amazonaws.s3","GetObjectOutput",0,["Body","DeleteMarker","AcceptRanges","Expiration","Restore","LastModified","ContentLength","ETag","ChecksumCRC32","ChecksumCRC32C","ChecksumCRC64NVME","ChecksumSHA1","ChecksumSHA256","ChecksumType","MissingMeta","VersionId","CacheControl","ContentDisposition","ContentEncoding","ContentLanguage","ContentRange","ContentType","Expires","ExpiresString","WebsiteRedirectLocation","ServerSideEncryption","Metadata","SSECustomerAlgorithm","SSECustomerKeyMD5","SSEKMSKeyId","BucketKeyEnabled","StorageClass","RequestCharged","ReplicationStatus","PartsCount","TagCount","ObjectLockMode","ObjectLockRetainUntilDate","ObjectLockLegalHoldStatus"],[[()=>HG,16],[2,{["httpHeader"]:"x-amz-delete-marker"}],[0,{["httpHeader"]:"accept-ranges"}],[0,{["httpHeader"]:"x-amz-expiration"}],[0,{["httpHeader"]:"x-amz-restore"}],[4,{["httpHeader"]:"Last-Modified"}],[1,{["httpHeader"]:"Content-Length"}],[0,{["httpHeader"]:"ETag"}],[0,{["httpHeader"]:"x-amz-checksum-crc32"}],[0,{["httpHeader"]:"x-amz-checksum-crc32c"}],[0,{["httpHeader"]:"x-amz-checksum-crc64nvme"}],[0,{["httpHeader"]:"x-amz-checksum-sha1"}],[0,{["httpHeader"]:"x-amz-checksum-sha256"}],[0,{["httpHeader"]:"x-amz-checksum-type"}],[1,{["httpHeader"]:"x-amz-missing-meta"}],[0,{["httpHeader"]:"x-amz-version-id"}],[0,{["httpHeader"]:"Cache-Control"}],[0,{["httpHeader"]:"Content-Disposition"}],[0,{["httpHeader"]:"Content-Encoding"}],[0,{["httpHeader"]:"Content-Language"}],[0,{["httpHeader"]:"Content-Range"}],[0,{["httpHeader"]:"Content-Type"}],[4,{["httpHeader"]:"Expires"}],[0,{["httpHeader"]:"ExpiresString"}],[0,{["httpHeader"]:"x-amz-website-redirect-location"}],[0,{["httpHeader"]:"x-amz-server-side-encryption"}],[128,{["httpPrefixHeaders"]:"x-amz-meta-"}],[0,{["httpHeader"]:"x-amz-server-side-encryption-customer-algorithm"}],[0,{["httpHeader"]:"x-amz-server-side-encryption-customer-key-MD5"}],[()=>qR,{["httpHeader"]:"x-amz-server-side-encryption-aws-kms-key-id"}],[2,{["httpHeader"]:"x-amz-server-side-encryption-bucket-key-enabled"}],[0,{["httpHeader"]:"x-amz-storage-class"}],[0,{["httpHeader"]:"x-amz-request-charged"}],[0,{["httpHeader"]:"x-amz-replication-status"}],[1,{["httpHeader"]:"x-amz-mp-parts-count"}],[1,{["httpHeader"]:"x-amz-tagging-count"}],[0,{["httpHeader"]:"x-amz-object-lock-mode"}],[5,{["httpHeader"]:"x-amz-object-lock-retain-until-date"}],[0,{["httpHeader"]:"x-amz-object-lock-legal-hold"}]]],qW=[3,"com.amazonaws.s3","GetObjectRequest",0,["Bucket","IfMatch","IfModifiedSince","IfNoneMatch","IfUnmodifiedSince","Key","Range","ResponseCacheControl","ResponseContentDisposition","ResponseContentEncoding","ResponseContentLanguage","ResponseContentType","ResponseExpires","VersionId","SSECustomerAlgorithm","SSECustomerKey","SSECustomerKeyMD5","RequestPayer","PartNumber","ExpectedBucketOwner","ChecksumMode"],[[0,1],[0,{["httpHeader"]:"If-Match"}],[4,{["httpHeader"]:"If-Modified-Since"}],[0,{["httpHeader"]:"If-None-Match"}],[4,{["httpHeader"]:"If-Unmodified-Since"}],[0,1],[0,{["httpHeader"]:"Range"}],[0,{["httpQuery"]:"response-cache-control"}],[0,{["httpQuery"]:"response-content-disposition"}],[0,{["httpQuery"]:"response-content-encoding"}],[0,{["httpQuery"]:"response-content-language"}],[0,{["httpQuery"]:"response-content-type"}],[6,{["httpQuery"]:"response-expires"}],[0,{["httpQuery"]:"versionId"}],[0,{["httpHeader"]:"x-amz-server-side-encryption-customer-algorithm"}],[()=>$G,{["httpHeader"]:"x-amz-server-side-encryption-customer-key"}],[0,{["httpHeader"]:"x-amz-server-side-encryption-customer-key-MD5"}],[0,{["httpHeader"]:"x-amz-request-payer"}],[1,{["httpQuery"]:"partNumber"}],[0,{["httpHeader"]:"x-amz-expected-bucket-owner"}],[0,{["httpHeader"]:"x-amz-checksum-mode"}]]];var VW=[-3,"com.amazonaws.s3","IdempotencyParameterMismatch",{["error"]:"client",["httpError"]:400},[],[]];Wc.TypeRegistry.for("com.amazonaws.s3").registerError(VW,d0);var EW=[-3,"com.amazonaws.s3","InvalidObjectState",{["error"]:"client",["httpError"]:403},["StorageClass","AccessTier"],[0,0]];Wc.TypeRegistry.for("com.amazonaws.s3").registerError(EW,C0);var TW=[-3,"com.amazonaws.s3","InvalidRequest",{["error"]:"client",["httpError"]:400},[],[]];Wc.TypeRegistry.for("com.amazonaws.s3").registerError(TW,i0);var uW=[-3,"com.amazonaws.s3","InvalidWriteOffset",{["error"]:"client",["httpError"]:400},[],[]];Wc.TypeRegistry.for("com.amazonaws.s3").registerError(uW,k0);var gW=[3,"com.amazonaws.s3","ListObjectsV2Output",{["xmlName"]:"ListBucketResult"},["IsTruncated","Contents","Name","Prefix","Delimiter","MaxKeys","CommonPrefixes","EncodingType","KeyCount","ContinuationToken","NextContinuationToken","StartAfter","RequestCharged"],[2,[()=>fv,{["xmlFlattened"]:1}],0,0,0,1,[()=>cv,{["xmlFlattened"]:1}],0,1,0,0,0,[0,{["httpHeader"]:"x-amz-request-charged"}]]],CW=[3,"com.amazonaws.s3","ListObjectsV2Request",0,["Bucket","Delimiter","EncodingType","MaxKeys","Prefix","ContinuationToken","FetchOwner","StartAfter","RequestPayer","ExpectedBucketOwner","OptionalObjectAttributes"],[[0,1],[0,{["httpQuery"]:"delimiter"}],[0,{["httpQuery"]:"encoding-type"}],[1,{["httpQuery"]:"max-keys"}],[0,{["httpQuery"]:"prefix"}],[0,{["httpQuery"]:"continuation-token"}],[2,{["httpQuery"]:"fetch-owner"}],[0,{["httpQuery"]:"start-after"}],[0,{["httpHeader"]:"x-amz-request-payer"}],[0,{["httpHeader"]:"x-amz-expected-bucket-owner"}],[64,{["httpHeader"]:"x-amz-optional-object-attributes"}]]];var mW=[-3,"com.amazonaws.s3","NoSuchBucket",{["error"]:"client",["httpError"]:404},[],[]];Wc.TypeRegistry.for("com.amazonaws.s3").registerError(mW,g0);var pW=[-3,"com.amazonaws.s3","NoSuchKey",{["error"]:"client",["httpError"]:404},[],[]];Wc.TypeRegistry.for("com.amazonaws.s3").registerError(pW,m0);var sW=[-3,"com.amazonaws.s3","NoSuchUpload",{["error"]:"client",["httpError"]:404},[],[]];Wc.TypeRegistry.for("com.amazonaws.s3").registerError(sW,V0);var iW=[-3,"com.amazonaws.s3","NotFound",{["error"]:"client"},[],[]];Wc.TypeRegistry.for("com.amazonaws.s3").registerError(iW,p0);var kW=[3,"com.amazonaws.s3","Object",0,["Key","LastModified","ETag","ChecksumAlgorithm","ChecksumType","Size","StorageClass","Owner","RestoreStatus"],[0,4,0,[64,{["xmlFlattened"]:1}],0,1,0,()=>_W,()=>aW]],lW=[-3,"com.amazonaws.s3","ObjectAlreadyInActiveTierError",{["error"]:"client",["httpError"]:403},[],[]];Wc.TypeRegistry.for("com.amazonaws.s3").registerError(lW,_0);var dW=[-3,"com.amazonaws.s3","ObjectNotInActiveTierError",{["error"]:"client",["httpError"]:403},[],[]];Wc.TypeRegistry.for("com.amazonaws.s3").registerError(dW,E0);var _W=[3,"com.amazonaws.s3","Owner",0,["DisplayName","ID"],[0,0]];var nW=[3,"com.amazonaws.s3","PutObjectOutput",0,["Expiration","ETag","ChecksumCRC32","ChecksumCRC32C","ChecksumCRC64NVME","ChecksumSHA1","ChecksumSHA256","ChecksumType","ServerSideEncryption","VersionId","SSECustomerAlgorithm","SSECustomerKeyMD5","SSEKMSKeyId","SSEKMSEncryptionContext","BucketKeyEnabled","Size","RequestCharged"],[[0,{["httpHeader"]:"x-amz-expiration"}],[0,{["httpHeader"]:"ETag"}],[0,{["httpHeader"]:"x-amz-checksum-crc32"}],[0,{["httpHeader"]:"x-amz-checksum-crc32c"}],[0,{["httpHeader"]:"x-amz-checksum-crc64nvme"}],[0,{["httpHeader"]:"x-amz-checksum-sha1"}],[0,{["httpHeader"]:"x-amz-checksum-sha256"}],[0,{["httpHeader"]:"x-amz-checksum-type"}],[0,{["httpHeader"]:"x-amz-server-side-encryption"}],[0,{["httpHeader"]:"x-amz-version-id"}],[0,{["httpHeader"]:"x-amz-server-side-encryption-customer-algorithm"}],[0,{["httpHeader"]:"x-amz-server-side-encryption-customer-key-MD5"}],[()=>qR,{["httpHeader"]:"x-amz-server-side-encryption-aws-kms-key-id"}],[()=>n0,{["httpHeader"]:"x-amz-server-side-encryption-context"}],[2,{["httpHeader"]:"x-amz-server-side-encryption-bucket-key-enabled"}],[1,{["httpHeader"]:"x-amz-object-size"}],[0,{["httpHeader"]:"x-amz-request-charged"}]]],oW=[3,"com.amazonaws.s3","PutObjectRequest",0,["ACL","Body","Bucket","CacheControl","ContentDisposition","ContentEncoding","ContentLanguage","ContentLength","ContentMD5","ContentType","ChecksumAlgorithm","ChecksumCRC32","ChecksumCRC32C","ChecksumCRC64NVME","ChecksumSHA1","ChecksumSHA256","Expires","IfMatch","IfNoneMatch","GrantFullControl","GrantRead","GrantReadACP","GrantWriteACP","Key","WriteOffsetBytes","Metadata","ServerSideEncryption","StorageClass","WebsiteRedirectLocation","SSECustomerAlgorithm","SSECustomerKey","SSECustomerKeyMD5","SSEKMSKeyId","SSEKMSEncryptionContext","BucketKeyEnabled","RequestPayer","Tagging","ObjectLockMode","ObjectLockRetainUntilDate","ObjectLockLegalHoldStatus","ExpectedBucketOwner"],[[0,{["httpHeader"]:"x-amz-acl"}],[()=>HG,16],[0,1],[0,{["httpHeader"]:"Cache-Control"}],[0,{["httpHeader"]:"Content-Disposition"}],[0,{["httpHeader"]:"Content-Encoding"}],[0,{["httpHeader"]:"Content-Language"}],[1,{["httpHeader"]:"Content-Length"}],[0,{["httpHeader"]:"Content-MD5"}],[0,{["httpHeader"]:"Content-Type"}],[0,{["httpHeader"]:"x-amz-sdk-checksum-algorithm"}],[0,{["httpHeader"]:"x-amz-checksum-crc32"}],[0,{["httpHeader"]:"x-amz-checksum-crc32c"}],[0,{["httpHeader"]:"x-amz-checksum-crc64nvme"}],[0,{["httpHeader"]:"x-amz-checksum-sha1"}],[0,{["httpHeader"]:"x-amz-checksum-sha256"}],[4,{["httpHeader"]:"Expires"}],[0,{["httpHeader"]:"If-Match"}],[0,{["httpHeader"]:"If-None-Match"}],[0,{["httpHeader"]:"x-amz-grant-full-control"}],[0,{["httpHeader"]:"x-amz-grant-read"}],[0,{["httpHeader"]:"x-amz-grant-read-acp"}],[0,{["httpHeader"]:"x-amz-grant-write-acp"}],[0,1],[1,{["httpHeader"]:"x-amz-write-offset-bytes"}],[128,{["httpPrefixHeaders"]:"x-amz-meta-"}],[0,{["httpHeader"]:"x-amz-server-side-encryption"}],[0,{["httpHeader"]:"x-amz-storage-class"}],[0,{["httpHeader"]:"x-amz-website-redirect-location"}],[0,{["httpHeader"]:"x-amz-server-side-encryption-customer-algorithm"}],[()=>$G,{["httpHeader"]:"x-amz-server-side-encryption-customer-key"}],[0,{["httpHeader"]:"x-amz-server-side-encryption-customer-key-MD5"}],[()=>qR,{["httpHeader"]:"x-amz-server-side-encryption-aws-kms-key-id"}],[()=>n0,{["httpHeader"]:"x-amz-server-side-encryption-context"}],[2,{["httpHeader"]:"x-amz-server-side-encryption-bucket-key-enabled"}],[0,{["httpHeader"]:"x-amz-request-payer"}],[0,{["httpHeader"]:"x-amz-tagging"}],[0,{["httpHeader"]:"x-amz-object-lock-mode"}],[5,{["httpHeader"]:"x-amz-object-lock-retain-until-date"}],[0,{["httpHeader"]:"x-amz-object-lock-legal-hold"}],[0,{["httpHeader"]:"x-amz-expected-bucket-owner"}]]];var aW=[3,"com.amazonaws.s3","RestoreStatus",0,["IsRestoreInProgress","RestoreExpiryDate"],[2,4]];var tW=[3,"com.amazonaws.s3","SessionCredentials",0,["AccessKeyId","SecretAccessKey","SessionToken","Expiration"],[[0,{["xmlName"]:"AccessKeyId"}],[()=>RG,{["xmlName"]:"SecretAccessKey"}],[()=>RG,{["xmlName"]:"SessionToken"}],[4,{["xmlName"]:"Expiration"}]]];var rW=[-3,"com.amazonaws.s3","TooManyParts",{["error"]:"client",["httpError"]:400},[],[]];Wc.TypeRegistry.for("com.amazonaws.s3").registerError(rW,l0);var eW=[-3,"smithy.ts.sdk.synthetic.com.amazonaws.s3","S3ServiceException",0,[],[]];Wc.TypeRegistry.for("smithy.ts.sdk.synthetic.com.amazonaws.s3").registerError(eW,o);var cv=[1,"com.amazonaws.s3","CommonPrefixList",0,()=>IW];var fv=[1,"com.amazonaws.s3","ObjectList",0,[()=>kW,0]];var AG=[9,"com.amazonaws.s3","CreateSession",{["http"]:["GET","/?session",200]},()=>KW,()=>PW];var GG=[9,"com.amazonaws.s3","GetObject",{["httpChecksum"]:"-",["http"]:["GET","/{Key+}?x-id=GetObject",200]},()=>qW,()=>bW];var yG=[9,"com.amazonaws.s3","ListObjectsV2",{["http"]:["GET","/?list-type=2",200]},()=>CW,()=>gW];var FG=[9,"com.amazonaws.s3","PutObject",{["httpChecksum"]:"-",["http"]:["PUT","/{Key+}?x-id=PutObject",200]},()=>oW,()=>nW];class y$ extends vG.Command.classBuilder().ep({...tc,DisableS3ExpressSessionAuth:{type:"staticContextParams",value:!0},Bucket:{type:"contextParams",name:"Bucket"}}).m(function(c,f,R,h){return[WG.getEndpointPlugin(R,c.getEndpointParameterInstructions()),bf(R)]}).s("AmazonS3","CreateSession",{}).n("S3Client","CreateSessionCommand").sc(AG).build(){}var UG={name:"@aws-sdk/client-s3",description:"AWS SDK for JavaScript S3 Client for Node.js, Browser and React Native",version:"3.968.0",scripts:{build:"concurrently 'yarn:build:types' 'yarn:build:es' && yarn build:cjs","build:cjs":"node ../../scripts/compilation/inline client-s3","build:es":"tsc -p tsconfig.es.json","build:include:deps":'yarn g:turbo run build -F="$npm_package_name"',"build:types":"tsc -p tsconfig.types.json","build:types:downlevel":"downlevel-dts dist-types dist-types/ts3.4",clean:"rimraf ./dist-* && rimraf *.tsbuildinfo","extract:docs":"api-extractor run --local","generate:client":"node ../../scripts/generate-clients/single-service --solo s3",test:"yarn g:vitest run","test:browser":"node ./test/browser-build/esbuild && yarn g:vitest run -c vitest.config.browser.mts","test:browser:watch":"node ./test/browser-build/esbuild && yarn g:vitest watch -c vitest.config.browser.mts","test:e2e":"yarn g:vitest run -c vitest.config.e2e.mts && yarn test:browser","test:e2e:watch":"yarn g:vitest watch -c vitest.config.e2e.mts","test:index":"tsc --noEmit ./test/index-types.ts && node ./test/index-objects.spec.mjs","test:integration":"yarn g:vitest run -c vitest.config.integ.mts","test:integration:watch":"yarn g:vitest watch -c vitest.config.integ.mts","test:watch":"yarn g:vitest watch"},main:"./dist-cjs/index.js",types:"./dist-types/index.d.ts",module:"./dist-es/index.js",sideEffects:!1,dependencies:{"@aws-crypto/sha1-browser":"5.2.0","@aws-crypto/sha256-browser":"5.2.0","@aws-crypto/sha256-js":"5.2.0","@aws-sdk/core":"3.968.0","@aws-sdk/credential-provider-node":"3.968.0","@aws-sdk/middleware-bucket-endpoint":"3.968.0","@aws-sdk/middleware-expect-continue":"3.968.0","@aws-sdk/middleware-flexible-checksums":"3.968.0","@aws-sdk/middleware-host-header":"3.968.0","@aws-sdk/middleware-location-constraint":"3.968.0","@aws-sdk/middleware-logger":"3.968.0","@aws-sdk/middleware-recursion-detection":"3.968.0","@aws-sdk/middleware-sdk-s3":"3.968.0","@aws-sdk/middleware-ssec":"3.968.0","@aws-sdk/middleware-user-agent":"3.968.0","@aws-sdk/region-config-resolver":"3.968.0","@aws-sdk/signature-v4-multi-region":"3.968.0","@aws-sdk/types":"3.968.0","@aws-sdk/util-endpoints":"3.968.0","@aws-sdk/util-user-agent-browser":"3.968.0","@aws-sdk/util-user-agent-node":"3.968.0","@smithy/config-resolver":"^4.4.5","@smithy/core":"^3.20.3","@smithy/eventstream-serde-browser":"^4.2.7","@smithy/eventstream-serde-config-resolver":"^4.3.7","@smithy/eventstream-serde-node":"^4.2.7","@smithy/fetch-http-handler":"^5.3.8","@smithy/hash-blob-browser":"^4.2.8","@smithy/hash-node":"^4.2.7","@smithy/hash-stream-node":"^4.2.7","@smithy/invalid-dependency":"^4.2.7","@smithy/md5-js":"^4.2.7","@smithy/middleware-content-length":"^4.2.7","@smithy/middleware-endpoint":"^4.4.4","@smithy/middleware-retry":"^4.4.20","@smithy/middleware-serde":"^4.2.8","@smithy/middleware-stack":"^4.2.7","@smithy/node-config-provider":"^4.3.7","@smithy/node-http-handler":"^4.4.7","@smithy/protocol-http":"^5.3.7","@smithy/smithy-client":"^4.10.5","@smithy/types":"^4.11.0","@smithy/url-parser":"^4.2.7","@smithy/util-base64":"^4.3.0","@smithy/util-body-length-browser":"^4.2.0","@smithy/util-body-length-node":"^4.2.1","@smithy/util-defaults-mode-browser":"^4.3.19","@smithy/util-defaults-mode-node":"^4.2.22","@smithy/util-endpoints":"^3.2.7","@smithy/util-middleware":"^4.2.7","@smithy/util-retry":"^4.2.7","@smithy/util-stream":"^4.5.8","@smithy/util-utf8":"^4.2.0","@smithy/util-waiter":"^4.2.7",tslib:"^2.6.2"},devDependencies:{"@aws-sdk/signature-v4-crt":"3.968.0","@tsconfig/node20":"20.1.8","@types/node":"^20.14.8",concurrently:"7.0.0","downlevel-dts":"0.10.1",rimraf:"5.0.10",typescript:"~5.8.3"},engines:{node:">=20.0.0"},typesVersions:{"<4.0":{"dist-types/*":["dist-types/ts3.4/*"]}},files:["dist-*/**"],author:{name:"AWS SDK for JavaScript Team",url:"https://aws.amazon.com/javascript/"},license:"Apache-2.0",browser:{"./dist-es/runtimeConfig":"./dist-es/runtimeConfig.browser"},"react-native":{"./dist-es/runtimeConfig":"./dist-es/runtimeConfig.native"},homepage:"https://github.com/aws/aws-sdk-js-v3/tree/main/clients/client-s3",repository:{type:"git",url:"https://github.com/aws/aws-sdk-js-v3.git",directory:"clients/client-s3"}};var pf=Y(Kf(),1);var a0=Y(NG(),1),XG=Y($v(),1);var o0=Y(NG(),1),YG="AWS_EC2_METADATA_DISABLED",ZG=async(c)=>{let{ENV_CMDS_FULL_URI:f,ENV_CMDS_RELATIVE_URI:R,fromContainerMetadata:h,fromInstanceMetadata:$}=await import("./chunk-nmnvzhbg.js");if(process.env[R]||process.env[f]){c.logger?.debug("@aws-sdk/credential-provider-node - remoteProvider::fromHttp/fromContainerMetadata");let{fromHttp:H}=await import("./chunk-36rsqj4c.js");return o0.chain(H(c),h(c))}if(process.env[YG]&&process.env[YG]!=="false")return async()=>{throw new o0.CredentialsProviderError("EC2 Instance Metadata Service access disabled",{logger:c.logger})};return c.logger?.debug("@aws-sdk/credential-provider-node - remoteProvider::fromInstanceMetadata"),$(c)};function JG(c,f){let R=hv(c),h,$,H,A=async(G)=>{if(G?.forceRefresh)return await R(G);if(H?.expiration){if(H?.expiration?.getTime()<Date.now())H=void 0}if(h)await h;else if(!H||f?.(H))if(H){if(!$)$=R(G).then((y)=>{H=y,$=void 0})}else return h=R(G).then((y)=>{H=y,h=void 0}),A(G);return H};return A}var hv=(c)=>async(f)=>{let R;for(let h of c)try{return await h(f)}catch($){if(R=$,$?.tryNextLink)continue;throw $}throw R};var zG=!1,QG=(c={})=>JG([async()=>{if(c.profile??process.env[XG.ENV_PROFILE]){if(process.env[SG]&&process.env[MG]){if(!zG)(c.logger?.warn&&c.logger?.constructor?.name!=="NoOpLogger"?c.logger.warn.bind(c.logger):console.warn)(`@aws-sdk/credential-provider-node - defaultProvider::fromEnv WARNING:
41
41
  Multiple credential sources detected:
42
42
  Both AWS_PROFILE and the pair AWS_ACCESS_KEY_ID/AWS_SECRET_ACCESS_KEY static credentials are set.
43
43
  This SDK will proceed with the AWS_PROFILE value.
@@ -45,10 +45,10 @@ You passed in: '`+this.raw_options[c]+"'");return h};$f.prototype._is_valid_sele
45
45
  However, a future version may change this behavior to prefer the ENV static credentials.
46
46
  Please ensure that your environment only sets either the AWS_PROFILE or the
47
47
  AWS_ACCESS_KEY_ID/AWS_SECRET_ACCESS_KEY pair.
48
- `),zG=!0}throw new a0.CredentialsProviderError("AWS_PROFILE is set, skipping fromEnv provider.",{logger:c.logger,tryNextLink:!0})}return c.logger?.debug("@aws-sdk/credential-provider-node - defaultProvider::fromEnv"),BG(c)()},async(f)=>{c.logger?.debug("@aws-sdk/credential-provider-node - defaultProvider::fromSSO");let{ssoStartUrl:R,ssoAccountId:h,ssoRegion:$,ssoRoleName:H,ssoSession:A}=c;if(!R&&!h&&!$&&!H&&!A)throw new a0.CredentialsProviderError("Skipping SSO provider in default chain (inputs do not include SSO fields).",{logger:c.logger});let{fromSSO:G}=await import("./chunk-k47r0hsx.js");return G(c)(f)},async(f)=>{c.logger?.debug("@aws-sdk/credential-provider-node - defaultProvider::fromIni");let{fromIni:R}=await import("./chunk-xzg1b2z7.js");return R(c)(f)},async(f)=>{c.logger?.debug("@aws-sdk/credential-provider-node - defaultProvider::fromProcess");let{fromProcess:R}=await import("./chunk-mcxe6c90.js");return R(c)(f)},async(f)=>{c.logger?.debug("@aws-sdk/credential-provider-node - defaultProvider::fromTokenFile");let{fromTokenFile:R}=await import("./chunk-qr0d4b5g.js");return R(c)(f)},async()=>{return c.logger?.debug("@aws-sdk/credential-provider-node - defaultProvider::remoteProvider"),(await ZG(c))()},async()=>{throw new a0.CredentialsProviderError("Could not load credentials from any providers",{tryNextLink:!1,logger:c.logger})}],Hv);var Hv=(c)=>c?.expiration!==void 0&&c.expiration.getTime()-Date.now()<300000;var Cf=Y(ZH(),1),Av="AWS_S3_USE_ARN_REGION",Gv="s3_use_arn_region",DG={environmentVariableSelector:(c)=>Cf.booleanSelector(c,Av,Cf.SelectorType.ENV),configFileSelector:(c)=>Cf.booleanSelector(c,Gv,Cf.SelectorType.CONFIG),default:void 0};var Rh=Y(Lv(),1),cf=Y(pG(),1);var rc=Y(wG(),1);var LG=Y(wG(),1);class mf{bytes;constructor(c){if(this.bytes=c,c.byteLength!==8)throw Error("Int64 buffers must be exactly 8 bytes")}static fromNumber(c){if(c>9223372036854776000||c<-9223372036854776000)throw Error(`${c} is too large (or, if negative, too small) to represent as an Int64`);let f=new Uint8Array(8);for(let R=7,h=Math.abs(Math.round(c));R>-1&&h>0;R--,h/=256)f[R]=h;if(c<0)jG(f);return new mf(f)}valueOf(){let c=this.bytes.slice(0),f=c[0]&128;if(f)jG(c);return parseInt(LG.toHex(c),16)*(f?-1:1)}toString(){return String(this.valueOf())}}function jG(c){for(let f=0;f<8;f++)c[f]^=255;for(let f=7;f>-1;f--)if(c[f]++,c[f]!==0)break}class F${toUtf8;fromUtf8;constructor(c,f){this.toUtf8=c,this.fromUtf8=f}format(c){let f=[];for(let $ of Object.keys(c)){let H=this.fromUtf8($);f.push(Uint8Array.from([H.byteLength]),H,this.formatHeaderValue(c[$]))}let R=new Uint8Array(f.reduce(($,H)=>$+H.byteLength,0)),h=0;for(let $ of f)R.set($,h),h+=$.byteLength;return R}formatHeaderValue(c){switch(c.type){case"boolean":return Uint8Array.from([c.value?0:1]);case"byte":return Uint8Array.from([2,c.value]);case"short":let f=new DataView(new ArrayBuffer(3));return f.setUint8(0,3),f.setInt16(1,c.value,!1),new Uint8Array(f.buffer);case"integer":let R=new DataView(new ArrayBuffer(5));return R.setUint8(0,4),R.setInt32(1,c.value,!1),new Uint8Array(R.buffer);case"long":let h=new Uint8Array(9);return h[0]=5,h.set(c.value.bytes,1),h;case"binary":let $=new DataView(new ArrayBuffer(3+c.value.byteLength));$.setUint8(0,6),$.setUint16(1,c.value.byteLength,!1);let H=new Uint8Array($.buffer);return H.set(c.value,3),H;case"string":let A=this.fromUtf8(c.value),G=new DataView(new ArrayBuffer(3+A.byteLength));G.setUint8(0,7),G.setUint16(1,A.byteLength,!1);let y=new Uint8Array(G.buffer);return y.set(A,3),y;case"timestamp":let F=new Uint8Array(9);return F[0]=8,F.set(mf.fromNumber(c.value.valueOf()).bytes,1),F;case"uuid":if(!Jv.test(c.value))throw Error(`Invalid UUID received: ${c.value}`);let U=new Uint8Array(17);return U[0]=9,U.set(rc.fromHex(c.value.replace(/\-/g,"")),1),U}}parse(c){let f={},R=0;while(R<c.byteLength){let h=c.getUint8(R++),$=this.toUtf8(new Uint8Array(c.buffer,c.byteOffset+R,h));switch(R+=h,c.getUint8(R++)){case 0:f[$]={type:IG,value:!0};break;case 1:f[$]={type:IG,value:!1};break;case 2:f[$]={type:yv,value:c.getInt8(R++)};break;case 3:f[$]={type:Fv,value:c.getInt16(R,!1)},R+=2;break;case 4:f[$]={type:Wv,value:c.getInt32(R,!1)},R+=4;break;case 5:f[$]={type:vv,value:new mf(new Uint8Array(c.buffer,c.byteOffset+R,8))},R+=8;break;case 6:let H=c.getUint16(R,!1);R+=2,f[$]={type:Uv,value:new Uint8Array(c.buffer,c.byteOffset+R,H)},R+=H;break;case 7:let A=c.getUint16(R,!1);R+=2,f[$]={type:Yv,value:this.toUtf8(new Uint8Array(c.buffer,c.byteOffset+R,A))},R+=A;break;case 8:f[$]={type:Nv,value:new Date(new mf(new Uint8Array(c.buffer,c.byteOffset+R,8)).valueOf())},R+=8;break;case 9:let G=new Uint8Array(c.buffer,c.byteOffset+R,16);R+=16,f[$]={type:Zv,value:`${rc.toHex(G.subarray(0,4))}-${rc.toHex(G.subarray(4,6))}-${rc.toHex(G.subarray(6,8))}-${rc.toHex(G.subarray(8,10))}-${rc.toHex(G.subarray(10))}`};break;default:throw Error("Unrecognized header type tag")}}return f}}var xG;(function(c){c[c.boolTrue=0]="boolTrue",c[c.boolFalse=1]="boolFalse",c[c.byte=2]="byte",c[c.short=3]="short",c[c.integer=4]="integer",c[c.long=5]="long",c[c.byteArray=6]="byteArray",c[c.string=7]="string",c[c.timestamp=8]="timestamp",c[c.uuid=9]="uuid"})(xG||(xG={}));var IG="boolean",yv="byte",Fv="short",Wv="integer",vv="long",Uv="binary",Yv="string",Nv="timestamp",Zv="uuid",Jv=/^[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}$/;var PG=4,ec=PG*2,Jf=4,zv=ec+Jf*2;function KG({byteLength:c,byteOffset:f,buffer:R}){if(c<zv)throw Error("Provided message too short to accommodate event stream message overhead");let h=new DataView(R,f,c),$=h.getUint32(0,!1);if(c!==$)throw Error("Reported message length does not match received message length");let H=h.getUint32(PG,!1),A=h.getUint32(ec,!1),G=h.getUint32(c-Jf,!1),y=new Nf().update(new Uint8Array(R,f,ec));if(A!==y.digest())throw Error(`The prelude checksum specified in the message (${A}) does not match the calculated CRC32 checksum (${y.digest()})`);if(y.update(new Uint8Array(R,f+ec,c-(ec+Jf))),G!==y.digest())throw Error(`The message checksum (${y.digest()}) did not match the expected value of ${G}`);return{headers:new DataView(R,f+ec+Jf,H),body:new Uint8Array(R,f+ec+Jf+H,$-H-(ec+Jf+Jf))}}class W${headerMarshaller;messageBuffer;isEndOfStream;constructor(c,f){this.headerMarshaller=new F$(c,f),this.messageBuffer=[],this.isEndOfStream=!1}feed(c){this.messageBuffer.push(this.decode(c))}endOfStream(){this.isEndOfStream=!0}getMessage(){let c=this.messageBuffer.pop(),f=this.isEndOfStream;return{getMessage(){return c},isEndOfStream(){return f}}}getAvailableMessages(){let c=this.messageBuffer;this.messageBuffer=[];let f=this.isEndOfStream;return{getMessages(){return c},isEndOfStream(){return f}}}encode({headers:c,body:f}){let R=this.headerMarshaller.format(c),h=R.byteLength+f.byteLength+16,$=new Uint8Array(h),H=new DataView($.buffer,$.byteOffset,$.byteLength),A=new Nf;return H.setUint32(0,h,!1),H.setUint32(4,R.byteLength,!1),H.setUint32(8,A.update($.subarray(0,8)).digest(),!1),$.set(R,12),$.set(f,R.byteLength+12),H.setUint32(h-4,A.update($.subarray(8,h-4)).digest(),!1),$}decode(c){let{headers:f,body:R}=KG(c);return{headers:this.headerMarshaller.parse(f),body:R}}formatHeaders(c){return this.headerMarshaller.format(c)}}class v${options;constructor(c){this.options=c}[Symbol.asyncIterator](){return this.asyncIterator()}async*asyncIterator(){for await(let c of this.options.inputStream)yield this.options.decoder.decode(c)}}class U${options;constructor(c){this.options=c}[Symbol.asyncIterator](){return this.asyncIterator()}async*asyncIterator(){for await(let c of this.options.messageStream)yield this.options.encoder.encode(c);if(this.options.includeEndFrame)yield new Uint8Array(0)}}class Y${options;constructor(c){this.options=c}[Symbol.asyncIterator](){return this.asyncIterator()}async*asyncIterator(){for await(let c of this.options.messageStream){let f=await this.options.deserializer(c);if(f===void 0)continue;yield f}}}class N${options;constructor(c){this.options=c}[Symbol.asyncIterator](){return this.asyncIterator()}async*asyncIterator(){for await(let c of this.options.inputStream)yield this.options.serializer(c)}}function OG(c){let f=0,R=0,h=null,$=null,H=(G)=>{if(typeof G!=="number")throw Error("Attempted to allocate an event message where size was not a number: "+G);f=G,R=4,h=new Uint8Array(G),new DataView(h.buffer).setUint32(0,G,!1)},A=async function*(){let G=c[Symbol.asyncIterator]();while(!0){let{value:y,done:F}=await G.next();if(F){if(!f)return;else if(f===R)yield h;else throw Error("Truncated event message received.");return}let U=y.length,N=0;while(N<U){if(!h){let Z=U-N;if(!$)$=new Uint8Array(4);let j=Math.min(4-R,Z);if($.set(y.slice(N,N+j),R),R+=j,N+=j,R<4)break;H(new DataView($.buffer).getUint32(0,!1)),$=null}let z=Math.min(f-R,U-N);if(h.set(y.slice(N,N+z),R),R+=z,N+=z,f&&f===R)yield h,h=null,f=0,R=0}}};return{[Symbol.asyncIterator]:A}}function bG(c,f){return async function(R){let{value:h}=R.headers[":message-type"];if(h==="error"){let $=Error(R.headers[":error-message"].value||"UnknownError");throw $.name=R.headers[":error-code"].value,$}else if(h==="exception"){let $=R.headers[":exception-type"].value,H={[$]:R},A=await c(H);if(A.$unknown){let G=Error(f(R.body));throw G.name=$,G}throw A[$]}else if(h==="event"){let $={[R.headers[":event-type"].value]:R},H=await c($);if(H.$unknown)return;return H}else throw Error(`Unrecognizable event type: ${R.headers[":event-type"].value}`)}}class Z${eventStreamCodec;utfEncoder;constructor({utf8Encoder:c,utf8Decoder:f}){this.eventStreamCodec=new W$(c,f),this.utfEncoder=c}deserialize(c,f){let R=OG(c);return new Y$({messageStream:new v$({inputStream:R,decoder:this.eventStreamCodec}),deserializer:bG(f,this.utfEncoder)})}serialize(c,f){return new U$({messageStream:new N$({inputStream:c,serializer:f}),encoder:this.eventStreamCodec,includeEndFrame:!0})}}import{Readable as Sv}from"stream";async function*qG(c){let f=!1,R=!1,h=[];c.on("error",($)=>{if(!f)f=!0;if($)throw $}),c.on("data",($)=>{h.push($)}),c.on("end",()=>{f=!0});while(!R){let $=await new Promise((H)=>setTimeout(()=>H(h.shift()),0));if($)yield $;R=f&&h.length===0}}class J${universalMarshaller;constructor({utf8Encoder:c,utf8Decoder:f}){this.universalMarshaller=new Z$({utf8Decoder:f,utf8Encoder:c})}deserialize(c,f){let R=typeof c[Symbol.asyncIterator]==="function"?c:qG(c);return this.universalMarshaller.deserialize(R,f)}serialize(c,f){return Sv.from(this.universalMarshaller.serialize(c,f))}}var VG=(c)=>new J$(c);var fh=Y(xv(),1);var EG=Y(K1(),1);import{Writable as Mv}from"stream";class z$ extends Mv{hash;constructor(c,f){super(f);this.hash=c}_write(c,f,R){try{this.hash.update(EG.toUint8Array(c))}catch(h){return R(h)}R()}}var TG=(c,f)=>{if(f.readableFlowing!==null)throw Error("Unable to calculate hash for flowing readable stream");let R=new c,h=new z$(R);return f.pipe(h),new Promise(($,H)=>{f.on("error",(A)=>{h.end(),H(A)}),h.on("error",H),h.on("finish",()=>{R.digest().then($).catch(H)})})};var hh=Y(sG(),1),Sc=Y(jv(),1),$h=Y(Dv(),1),Hh=Y(Oc(),1),iG=Y(Iv(),1),kG=Y(Pv(),1),lG=Y(wv(),1);var t0=Y(Kf(),1),uG=Y(Qv(),1);var gG=Y(Oc(),1),CG=Y(Xv(),1),r0=Y(Bv(),1),e0=Y(X0(),1),ch=Y(K1(),1);var mG=(c)=>{return{apiVersion:"2006-03-01",base64Decoder:c?.base64Decoder??r0.fromBase64,base64Encoder:c?.base64Encoder??r0.toBase64,disableHostPrefix:c?.disableHostPrefix??!1,endpointProvider:c?.endpointProvider??b0,extensions:c?.extensions??[],getAwsChunkedEncodingStream:c?.getAwsChunkedEncodingStream??e0.getAwsChunkedEncodingStream,httpAuthSchemeProvider:c?.httpAuthSchemeProvider??rA,httpAuthSchemes:c?.httpAuthSchemes??[{schemeId:"aws.auth#sigv4",identityProvider:(f)=>f.getIdentityProvider("aws.auth#sigv4"),signer:new t0.AwsSdkSigV4Signer},{schemeId:"aws.auth#sigv4a",identityProvider:(f)=>f.getIdentityProvider("aws.auth#sigv4a"),signer:new t0.AwsSdkSigV4ASigner}],logger:c?.logger??new gG.NoOpLogger,protocol:c?.protocol??uG.AwsRestXmlProtocol,protocolSettings:c?.protocolSettings??{defaultNamespace:"com.amazonaws.s3",xmlNamespace:"http://s3.amazonaws.com/doc/2006-03-01/",version:"2006-03-01",serviceTarget:"AmazonS3"},sdkStreamMixin:c?.sdkStreamMixin??e0.sdkStreamMixin,serviceId:c?.serviceId??"S3",signerConstructor:c?.signerConstructor??LR,signingEscapePath:c?.signingEscapePath??!1,urlParser:c?.urlParser??CG.parseUrl,useArnRegion:c?.useArnRegion??void 0,utf8Decoder:c?.utf8Decoder??ch.fromUtf8,utf8Encoder:c?.utf8Encoder??ch.toUtf8}};var dG=(c)=>{Hh.emitWarningIfUnsupportedVersion(process.version);let f=kG.resolveDefaultsModeConfig(c),R=()=>f().then(Hh.loadConfigsForDefaultMode),h=mG(c);pf.emitWarningIfUnsupportedVersion(process.version);let $={profile:c?.profile,logger:h.logger};return{...h,...c,runtime:"node",defaultsMode:f,authSchemePreference:c?.authSchemePreference??Sc.loadConfig(pf.NODE_AUTH_SCHEME_PREFERENCE_OPTIONS,$),bodyLengthChecker:c?.bodyLengthChecker??iG.calculateBodyLength,credentialDefaultProvider:c?.credentialDefaultProvider??QG,defaultUserAgentProvider:c?.defaultUserAgentProvider??Rh.createDefaultUserAgentProvider({serviceId:h.serviceId,clientVersion:UG.version}),disableS3ExpressSessionAuth:c?.disableS3ExpressSessionAuth??Sc.loadConfig(q1,$),eventStreamSerdeProvider:c?.eventStreamSerdeProvider??VG,maxAttempts:c?.maxAttempts??Sc.loadConfig(hh.NODE_MAX_ATTEMPT_CONFIG_OPTIONS,c),md5:c?.md5??fh.Hash.bind(null,"md5"),region:c?.region??Sc.loadConfig(cf.NODE_REGION_CONFIG_OPTIONS,{...cf.NODE_REGION_CONFIG_FILE_OPTIONS,...$}),requestChecksumCalculation:c?.requestChecksumCalculation??Sc.loadConfig(q4,$),requestHandler:$h.NodeHttpHandler.create(c?.requestHandler??R),responseChecksumValidation:c?.responseChecksumValidation??Sc.loadConfig(V4,$),retryMode:c?.retryMode??Sc.loadConfig({...hh.NODE_RETRY_MODE_CONFIG_OPTIONS,default:async()=>(await R()).retryMode||lG.DEFAULT_RETRY_MODE},c),sha1:c?.sha1??fh.Hash.bind(null,"sha1"),sha256:c?.sha256??fh.Hash.bind(null,"sha256"),sigv4aSigningRegionSet:c?.sigv4aSigningRegionSet??Sc.loadConfig(pf.NODE_SIGV4A_CONFIG_OPTIONS,$),streamCollector:c?.streamCollector??$h.streamCollector,streamHasher:c?.streamHasher??TG,useArnRegion:c?.useArnRegion??Sc.loadConfig(DG,$),useDualstackEndpoint:c?.useDualstackEndpoint??Sc.loadConfig(cf.NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS,$),useFipsEndpoint:c?.useFipsEndpoint??Sc.loadConfig(cf.NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS,$),userAgentAppId:c?.userAgentAppId??Sc.loadConfig(Rh.NODE_APP_ID_CONFIG_OPTIONS,$)}};var Ah=Y(Kv(),1),Gh=Y(kc(),1),yh=Y(Oc(),1);var _G=(c)=>{let{httpAuthSchemes:f,httpAuthSchemeProvider:R,credentials:h}=c;return{setHttpAuthScheme($){let H=f.findIndex((A)=>A.schemeId===$.schemeId);if(H===-1)f.push($);else f.splice(H,1,$)},httpAuthSchemes(){return f},setHttpAuthSchemeProvider($){R=$},httpAuthSchemeProvider(){return R},setCredentials($){h=$},credentials(){return h}}},nG=(c)=>{return{httpAuthSchemes:c.httpAuthSchemes(),httpAuthSchemeProvider:c.httpAuthSchemeProvider(),credentials:c.credentials()}};var oG=(c,f)=>{let R=Object.assign(Ah.getAwsRegionExtensionConfiguration(c),yh.getDefaultExtensionConfiguration(c),Gh.getHttpHandlerExtensionConfiguration(c),_G(c));return f.forEach((h)=>h.configure(R)),Object.assign(c,Ah.resolveAwsRegionExtensionConfiguration(R),yh.resolveDefaultRuntimeConfig(R),Gh.resolveHttpHandlerRuntimeConfig(R),nG(R))};class S$ extends R6.Client{config;constructor(...[c]){let f=dG(c||{});super(f);this.initConfig=f;let R=cG(f),h=Wh.resolveUserAgentConfig(R),$=HH(h),H=vh.resolveRetryConfig($),A=rG.resolveRegionConfig(H),G=Fh.resolveHostHeaderConfig(A),y=f6.resolveEndpointConfig(G),F=CH(y),U=eA(F),N=qH(U,{session:[()=>this,y$]}),z=oG(N,c?.extensions||[]);this.config=z,this.middlewareStack.use(eG.getSchemaSerdePlugin(this.config)),this.middlewareStack.use(Wh.getUserAgentPlugin(this.config)),this.middlewareStack.use(vh.getRetryPlugin(this.config)),this.middlewareStack.use(c6.getContentLengthPlugin(this.config)),this.middlewareStack.use(Fh.getHostHeaderPlugin(this.config)),this.middlewareStack.use(aG.getLoggerPlugin(this.config)),this.middlewareStack.use(tG.getRecursionDetectionPlugin(this.config)),this.middlewareStack.use(sf.getHttpAuthSchemeEndpointRuleSetPlugin(this.config,{httpAuthSchemeParametersProvider:oA,identityProviderConfigProvider:async(Z)=>new sf.DefaultIdentityProviderConfig({"aws.auth#sigv4":Z.credentials,"aws.auth#sigv4a":Z.credentials})})),this.middlewareStack.use(sf.getHttpSigningPlugin(this.config)),this.middlewareStack.use(gH(this.config)),this.middlewareStack.use(O4(this.config)),this.middlewareStack.use(vH(this.config)),this.middlewareStack.use(V1(this.config)),this.middlewareStack.use(E1(this.config))}destroy(){super.destroy()}}function Tv(c){return(f)=>async(R)=>{let h={...R.input},$=[{target:"SSECustomerKey",hash:"SSECustomerKeyMD5"},{target:"CopySourceSSECustomerKey",hash:"CopySourceSSECustomerKeyMD5"}];for(let H of $){let A=h[H.target];if(A){let G;if(typeof A==="string")if(gv(A,c))G=c.base64Decoder(A);else G=c.utf8Decoder(A),h[H.target]=c.base64Encoder(G);else G=ArrayBuffer.isView(A)?new Uint8Array(A.buffer,A.byteOffset,A.byteLength):new Uint8Array(A),h[H.target]=c.base64Encoder(G);let y=new c.md5;y.update(G),h[H.hash]=c.base64Encoder(await y.digest())}}return f({...R,input:h})}}var uv={name:"ssecMiddleware",step:"initialize",tags:["SSE"],override:!0},Uh=(c)=>({applyToStack:(f)=>{f.add(Tv(c),uv)}});function gv(c,f){if(!/^(?:[A-Za-z0-9+/]{4})*([A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/.test(c))return!1;try{return f.base64Decoder(c).length===32}catch{return!1}}var h6=Y(uf(),1),$6=Y(Oc(),1);class M$ extends $6.Command.classBuilder().ep({...tc,Bucket:{type:"contextParams",name:"Bucket"},Key:{type:"contextParams",name:"Key"}}).m(function(c,f,R,h){return[h6.getEndpointPlugin(R,c.getEndpointParameterInstructions()),D0(R,{requestChecksumRequired:!1,requestValidationModeMember:"ChecksumMode",responseAlgorithms:["CRC64NVME","CRC32","CRC32C","SHA256","SHA1"]}),Uh(R),NH(R)]}).s("AmazonS3","GetObject",{}).n("S3Client","GetObjectCommand").sc(GG).build(){}var H6=Y(uf(),1),A6=Y(Oc(),1);class B$ extends A6.Command.classBuilder().ep({...tc,Bucket:{type:"contextParams",name:"Bucket"},Prefix:{type:"contextParams",name:"Prefix"}}).m(function(c,f,R,h){return[H6.getEndpointPlugin(R,c.getEndpointParameterInstructions()),bf(R)]}).s("AmazonS3","ListObjectsV2",{}).n("S3Client","ListObjectsV2Command").sc(yG).build(){}var G6=Y(uf(),1),y6=Y(Oc(),1);class X$ extends y6.Command.classBuilder().ep({...tc,Bucket:{type:"contextParams",name:"Bucket"},Key:{type:"contextParams",name:"Key"}}).m(function(c,f,R,h){return[G6.getEndpointPlugin(R,c.getEndpointParameterInstructions()),D0(R,{requestAlgorithmMember:{httpHeader:"x-amz-sdk-checksum-algorithm",name:"ChecksumAlgorithm"},requestChecksumRequired:!1}),yH(R),bf(R),Uh(R)]}).s("AmazonS3","PutObject",{}).n("S3Client","PutObjectCommand").sc(FG).build(){}import{Buffer as F6}from"buffer";class W6 extends Lf{client;constructor(...c){super();this.client=new S$(...c)}async put(c){let f,R,h,$=process.env.BUCKET_NAME;if(c instanceof Blob)f=c,h=`${Bun.randomUUIDv7()}.${c.type.split("/")[1].split(";")[0]}`,R=c.type;else f=c.body,h=c.name,$=c.bucket??$,R=c.contentType;R=f instanceof Blob||f instanceof File?f.type:void 0;let H=f instanceof F6?f:f instanceof Blob||f instanceof File?F6.from(await f.arrayBuffer()):"";return await this.client.send(new X$({Bucket:$,Key:h,Body:H,ContentType:R})),h}async list(c){return await this.client.send(new B$({Bucket:process.env.BUCKET_NAME,Prefix:c}))}async fetch(c){let f=process.env.BUCKET_NAME,R;if(typeof c==="string")R=c;else f=c.bucket??f,R=c.name;if(!R)throw Error("Object name has to be specified");let h=await this.client.send(new M$({Bucket:f,Key:R}));return new Response(h.Body.transformToWebStream(),{headers:{"Content-Type":h.ContentType,"Content-Length":h.ContentLength.toString(),"Cache-Control":"private, max-age=12000, must-revalidate","Last-Modified":h.LastModified?.toUTCString()||"",ETag:h.ETag||""}})}}class Yh{}class Nh extends Yh{requests=new Map;consume(c,f){if(!this.requests.has(c))this.requests.set(c,{date:Date.now(),count:1});else{let R=this.requests.get(c),h=Date.now();if(h-R.date>=60000)this.requests.set(c,{date:h,count:1});else this.requests.set(c,{date:R.date,count:R.count+1})}return this.requests.get(c).count}}class v6 extends l{driver=new Nh;boot(){}}import*as P7 from"react-dom/server";var K;(function(c){c.Root="root",c.Text="text",c.Directive="directive",c.Comment="comment",c.Script="script",c.Style="style",c.Tag="tag",c.CDATA="cdata",c.Doctype="doctype"})(K||(K={}));function U6(c){return c.type===K.Tag||c.type===K.Script||c.type===K.Style}var{Root:Y6,Text:N6,Directive:Z6,Comment:J6,Script:z6,Style:S6,Tag:M6,CDATA:B6,Doctype:X6}=K;class D${constructor(){this.parent=null,this.prev=null,this.next=null,this.startIndex=null,this.endIndex=null}get parentNode(){return this.parent}set parentNode(c){this.parent=c}get previousSibling(){return this.prev}set previousSibling(c){this.prev=c}get nextSibling(){return this.next}set nextSibling(c){this.next=c}cloneNode(c=!1){return D6(this,c)}}class Zh extends D${constructor(c){super();this.data=c}get nodeValue(){return this.data}set nodeValue(c){this.data=c}}class VR extends Zh{constructor(){super(...arguments);this.type=K.Text}get nodeType(){return 3}}class Jh extends Zh{constructor(){super(...arguments);this.type=K.Comment}get nodeType(){return 8}}class zh extends Zh{constructor(c,f){super(f);this.name=c,this.type=K.Directive}get nodeType(){return 1}}class Sh extends D${constructor(c){super();this.children=c}get firstChild(){var c;return(c=this.children[0])!==null&&c!==void 0?c:null}get lastChild(){return this.children.length>0?this.children[this.children.length-1]:null}get childNodes(){return this.children}set childNodes(c){this.children=c}}class Mh extends Sh{constructor(){super(...arguments);this.type=K.CDATA}get nodeType(){return 4}}class ER extends Sh{constructor(){super(...arguments);this.type=K.Root}get nodeType(){return 9}}class Bh extends Sh{constructor(c,f,R=[],h=c==="script"?K.Script:c==="style"?K.Style:K.Tag){super(R);this.name=c,this.attribs=f,this.type=h}get nodeType(){return 1}get tagName(){return this.name}set tagName(c){this.name=c}get attributes(){return Object.keys(this.attribs).map((c)=>{var f,R;return{name:c,value:this.attribs[c],namespace:(f=this["x-attribsNamespace"])===null||f===void 0?void 0:f[c],prefix:(R=this["x-attribsPrefix"])===null||R===void 0?void 0:R[c]}})}}function Xh(c){return U6(c)}function Cv(c){return c.type===K.CDATA}function mv(c){return c.type===K.Text}function pv(c){return c.type===K.Comment}function sv(c){return c.type===K.Directive}function iv(c){return c.type===K.Root}function D6(c,f=!1){let R;if(mv(c))R=new VR(c.data);else if(pv(c))R=new Jh(c.data);else if(Xh(c)){let h=f?Q$(c.children):[],$=new Bh(c.name,{...c.attribs},h);if(h.forEach((H)=>H.parent=$),c.namespace!=null)$.namespace=c.namespace;if(c["x-attribsNamespace"])$["x-attribsNamespace"]={...c["x-attribsNamespace"]};if(c["x-attribsPrefix"])$["x-attribsPrefix"]={...c["x-attribsPrefix"]};R=$}else if(Cv(c)){let h=f?Q$(c.children):[],$=new Mh(h);h.forEach((H)=>H.parent=$),R=$}else if(iv(c)){let h=f?Q$(c.children):[],$=new ER(h);if(h.forEach((H)=>H.parent=$),c["x-mode"])$["x-mode"]=c["x-mode"];R=$}else if(sv(c)){let h=new zh(c.name,c.data);if(c["x-name"]!=null)h["x-name"]=c["x-name"],h["x-publicId"]=c["x-publicId"],h["x-systemId"]=c["x-systemId"];R=h}else throw Error(`Not implemented yet: ${c.type}`);if(R.startIndex=c.startIndex,R.endIndex=c.endIndex,c.sourceCodeLocation!=null)R.sourceCodeLocation=c.sourceCodeLocation;return R}function Q$(c){let f=c.map((R)=>D6(R,!0));for(let R=1;R<f.length;R++)f[R].prev=f[R-1],f[R-1].next=f[R];return f}var j6={withStartIndices:!1,withEndIndices:!1,xmlMode:!1};class j${constructor(c,f,R){if(this.dom=[],this.root=new ER(this.dom),this.done=!1,this.tagStack=[this.root],this.lastNode=null,this.parser=null,typeof f==="function")R=f,f=j6;if(typeof c==="object")f=c,c=void 0;this.callback=c!==null&&c!==void 0?c:null,this.options=f!==null&&f!==void 0?f:j6,this.elementCB=R!==null&&R!==void 0?R:null}onparserinit(c){this.parser=c}onreset(){this.dom=[],this.root=new ER(this.dom),this.done=!1,this.tagStack=[this.root],this.lastNode=null,this.parser=null}onend(){if(this.done)return;this.done=!0,this.parser=null,this.handleCallback(null)}onerror(c){this.handleCallback(c)}onclosetag(){this.lastNode=null;let c=this.tagStack.pop();if(this.options.withEndIndices)c.endIndex=this.parser.endIndex;if(this.elementCB)this.elementCB(c)}onopentag(c,f){let R=this.options.xmlMode?K.Tag:void 0,h=new Bh(c,f,void 0,R);this.addNode(h),this.tagStack.push(h)}ontext(c){let{lastNode:f}=this;if(f&&f.type===K.Text){if(f.data+=c,this.options.withEndIndices)f.endIndex=this.parser.endIndex}else{let R=new VR(c);this.addNode(R),this.lastNode=R}}oncomment(c){if(this.lastNode&&this.lastNode.type===K.Comment){this.lastNode.data+=c;return}let f=new Jh(c);this.addNode(f),this.lastNode=f}oncommentend(){this.lastNode=null}oncdatastart(){let c=new VR(""),f=new Mh([c]);this.addNode(f),c.parent=f,this.lastNode=c}oncdataend(){this.lastNode=null}onprocessinginstruction(c,f){let R=new zh(c,f);this.addNode(R)}handleCallback(c){if(typeof this.callback==="function")this.callback(c,this.dom);else if(c)throw c}addNode(c){let f=this.tagStack[this.tagStack.length-1],R=f.children[f.children.length-1];if(this.options.withStartIndices)c.startIndex=this.parser.startIndex;if(this.options.withEndIndices)c.endIndex=this.parser.endIndex;if(f.children.push(c),R)c.prev=R,R.next=c;c.parent=f,this.lastNode=null}}var kv=/\n/g;function lv(c){let f=[...c.matchAll(kv)].map((h)=>h.index||0);f.unshift(-1);let R=w$(f,0,f.length);return(h)=>L6(R,h)}function w$(c,f,R){if(R-f==1)return{offset:c[f],index:f+1};let h=Math.ceil((f+R)/2),$=w$(c,f,h),H=w$(c,h,R);return{offset:$.offset,low:$,high:H}}function L6(c,f){return function(R){return Object.prototype.hasOwnProperty.call(R,"index")}(c)?{line:c.index,column:f-c.offset}:L6(c.high.offset<f?c.high:c.low,f)}function L$(c,f="",R={}){let h=typeof f!="string"?f:R,$=typeof f=="string"?f:"",H=c.map(dv),A=!!h.lineNumbers;return function(G,y=0){let F=A?lv(G):()=>({line:0,column:0}),U=y,N=[];c:for(;U<G.length;){let z=!1;for(let Z of H){Z.regex.lastIndex=U;let j=Z.regex.exec(G);if(j&&j[0].length>0){if(!Z.discard){let V=F(U),a=typeof Z.replace=="string"?j[0].replace(new RegExp(Z.regex.source,Z.regex.flags),Z.replace):j[0];N.push({state:$,name:Z.name,text:a,offset:U,len:j[0].length,line:V.line,column:V.column})}if(U=Z.regex.lastIndex,z=!0,Z.push){let V=Z.push(G,U);N.push(...V.tokens),U=V.offset}if(Z.pop)break c;break}}if(!z)break}return{tokens:N,offset:U,complete:G.length<=U}}}function dv(c,f){return{...c,regex:_v(c,f)}}function _v(c,f){if(c.name.length===0)throw Error(`Rule #${f} has empty name, which is not allowed.`);if(function(R){return Object.prototype.hasOwnProperty.call(R,"regex")}(c))return function(R){if(R.global)throw Error(`Regular expression /${R.source}/${R.flags} contains the global flag, which is not allowed.`);return R.sticky?R:new RegExp(R.source,R.flags+"y")}(c.regex);if(function(R){return Object.prototype.hasOwnProperty.call(R,"str")}(c)){if(c.str.length===0)throw Error(`Rule #${f} ("${c.name}") has empty "str" property, which is not allowed.`);return new RegExp(w6(c.str),"y")}return new RegExp(w6(c.name),"y")}function w6(c){return c.replace(/[-[\]{}()*+!<=:?./\\^$|#\s,]/g,"\\$&")}function mc(c,f){return(R,h)=>{let $=h,H=void 0;if(h<R.tokens.length){if(H=c(R.tokens[h],R,h),H!==void 0)$++}else f?.(R,h);return H===void 0?{matched:!1}:{matched:!0,position:$,value:H}}}function x$(c,f){return c.matched?{matched:!0,position:c.position,value:f(c.value,c.position)}:c}function Qh(c,f){return c.matched?f(c):c}function Gc(c,f){return(R,h)=>x$(c(R,h),($,H)=>f($,R,h,H))}function TR(c,f){return(R,h)=>{let $=c(R,h);return $.matched?$:{matched:!0,position:h,value:f}}}function kf(...c){return(f,R)=>{for(let h of c){let $=h(f,R);if($.matched)return $}return{matched:!1}}}function ff(c,f){return(R,h)=>{let $=c(R,h);return $.matched?$:f(R,h)}}function nv(c,f){return(R,h)=>{let $=[],H=!0;do{let A=c(R,h);if(A.matched&&f(A.value,$.length+1,R,h,A.position))$.push(A.value),h=A.position;else H=!1}while(H);return{matched:!0,position:h,value:$}}}function Dh(c){return nv(c,()=>!0)}function x6(c){return vc(c,Dh(c),(f,R)=>[f,...R])}function vc(c,f,R){return(h,$)=>Qh(c(h,$),(H)=>x$(f(h,H.position),(A,G)=>R(H.value,A,h,$,G)))}function I6(c,f){return vc(c,f,(R)=>R)}function I$(c,f){return vc(c,f,(R,h)=>h)}function jh(c,f,R,h){return($,H)=>Qh(c($,H),(A)=>Qh(f($,A.position),(G)=>x$(R($,G.position),(y,F)=>h(A.value,G.value,y,$,H,F))))}function P$(c,f,R){return jh(c,f,R,(h,$)=>$)}function ov(...c){return(f,R)=>{let h=[],$=R;for(let H of c){let A=H(f,$);if(A.matched)h.push(A.value),$=A.position;else return{matched:!1}}return{matched:!0,position:$,value:h}}}function P6(...c){return av(ov(...c))}function av(c){return Gc(c,(f)=>f.flatMap((R)=>R))}function tv(c,f){return(R,h)=>{let $=!0,H=c,A=h;do{let G=f(H,R,A)(R,A);if(G.matched)H=G.value,A=G.position;else $=!1}while($);return{matched:!0,position:A,value:H}}}function rv(c,f,R){return tv(c,(h)=>Gc(f,($,H,A,G)=>R(h,$,H,A,G)))}function K$(c,f,R){return ev(c,(h)=>rv(h,vc(f,R,($,H)=>[$,H]),($,[H,A])=>H($,A)))}function ev(c,f){return(R,h)=>Qh(c(R,h),($)=>f($.value,R,h,$.position)(R,$.position))}var fU="(?:[ \\t\\r\\n\\f]*)",E6="(?:\\n|\\r\\n|\\r|\\f)",xh="[^\\x00-\\x7F]",CR="(?:\\\\[0-9a-f]{1,6}(?:\\r\\n|[ \\n\\r\\t\\f])?)",mR="(?:\\\\[^\\n\\r\\f0-9a-f])",RU=`(?:[_a-z]|${xh}|${CR}|${mR})`,T6=`(?:[_a-z0-9-]|${xh}|${CR}|${mR})`,hU=`(?:${T6}+)`,$U=`(?:[-]?${RU}${T6}*)`,HU=`'([^\\n\\r\\f\\\\']|\\\\${E6}|${xh}|${CR}|${mR})*'`,AU=`"([^\\n\\r\\f\\\\"]|\\\\${E6}|${xh}|${CR}|${mR})*"`,GU=L$([{name:"ws",regex:new RegExp(fU)},{name:"hash",regex:new RegExp(`#${hU}`,"i")},{name:"ident",regex:new RegExp($U,"i")},{name:"str1",regex:new RegExp(HU,"i")},{name:"str2",regex:new RegExp(AU,"i")},{name:"*"},{name:"."},{name:","},{name:"["},{name:"]"},{name:"="},{name:">"},{name:"|"},{name:"+"},{name:"~"},{name:"^"},{name:"$"}]),yU=L$([{name:"unicode",regex:new RegExp(CR,"i")},{name:"escape",regex:new RegExp(mR,"i")},{name:"any",regex:new RegExp("[\\s\\S]","i")}]);function u6([c,f,R],[h,$,H]){return[c+h,f+$,R+H]}function FU(c){return c.reduce(u6,[0,0,0])}var WU=mc((c)=>c.name==="unicode"?String.fromCodePoint(parseInt(c.text.slice(1),16)):void 0),vU=mc((c)=>c.name==="escape"?c.text.slice(1):void 0),UU=mc((c)=>c.name==="any"?c.text:void 0),YU=Gc(Dh(kf(WU,vU,UU)),(c)=>c.join(""));function q$(c){let f=yU(c);return YU({tokens:f.tokens,options:void 0},0).value}function m(c){return mc((f)=>f.name===c?!0:void 0)}var V$=mc((c)=>c.name==="ws"?null:void 0),O$=TR(V$,null);function df(c){return P$(O$,c,O$)}var gR=mc((c)=>c.name==="ident"?q$(c.text):void 0),NU=mc((c)=>c.name==="hash"?q$(c.text.slice(1)):void 0),ZU=mc((c)=>c.name.startsWith("str")?q$(c.text.slice(1,-1)):void 0),g6=I6(TR(gR,""),m("|")),E$=ff(vc(g6,gR,(c,f)=>({name:f,namespace:c})),Gc(gR,(c)=>({name:c,namespace:null}))),JU=ff(vc(g6,m("*"),(c)=>({type:"universal",namespace:c,specificity:[0,0,0]})),Gc(m("*"),()=>({type:"universal",namespace:null,specificity:[0,0,0]}))),zU=Gc(E$,({name:c,namespace:f})=>({type:"tag",name:c,namespace:f,specificity:[0,0,1]})),SU=vc(m("."),gR,(c,f)=>({type:"class",name:f,specificity:[0,1,0]})),MU=Gc(NU,(c)=>({type:"id",name:c,specificity:[1,0,0]})),K6=mc((c)=>{if(c.name==="ident"){if(c.text==="i"||c.text==="I")return"i";if(c.text==="s"||c.text==="S")return"s"}return}),BU=ff(vc(ZU,TR(I$(O$,K6),null),(c,f)=>({value:c,modifier:f})),vc(gR,TR(I$(V$,K6),null),(c,f)=>({value:c,modifier:f}))),XU=kf(Gc(m("="),()=>"="),vc(m("~"),m("="),()=>"~="),vc(m("|"),m("="),()=>"|="),vc(m("^"),m("="),()=>"^="),vc(m("$"),m("="),()=>"$="),vc(m("*"),m("="),()=>"*=")),QU=jh(m("["),df(E$),m("]"),(c,{name:f,namespace:R})=>({type:"attrPresence",name:f,namespace:R,specificity:[0,1,0]})),DU=P$(m("["),jh(df(E$),XU,df(BU),({name:c,namespace:f},R,{value:h,modifier:$})=>({type:"attrValue",name:c,namespace:f,matcher:R,value:h,modifier:$,specificity:[0,1,0]})),m("]")),jU=ff(QU,DU),wU=ff(JU,zU),O6=kf(MU,SU,jU),b6=Gc(ff(P6(wU,Dh(O6)),x6(O6)),(c)=>{return{type:"compound",list:c,specificity:FU(c.map((f)=>f.specificity))}}),LU=kf(Gc(m(">"),()=>">"),Gc(m("+"),()=>"+"),Gc(m("~"),()=>"~"),vc(m("|"),m("|"),()=>"||")),xU=ff(df(LU),Gc(V$,()=>" ")),b$=K$(b6,Gc(xU,(c)=>(f,R)=>({type:"compound",list:[...R.list,{type:"combinator",combinator:c,left:f,specificity:f.specificity}],specificity:u6(f.specificity,R.specificity)})),b6),CM=K$(Gc(b$,(c)=>({type:"list",list:[c]})),Gc(df(m(",")),()=>(c,f)=>({type:"list",list:[...c.list,f]})),b$);function IU(c,f){if(!(typeof f==="string"||f instanceof String))throw Error("Expected a selector string. Actual input is not a string!");let R=GU(f);if(!R.complete)throw Error(`The input "${f}" was only partially tokenized, stopped at offset ${R.offset}!
48
+ `),zG=!0}throw new a0.CredentialsProviderError("AWS_PROFILE is set, skipping fromEnv provider.",{logger:c.logger,tryNextLink:!0})}return c.logger?.debug("@aws-sdk/credential-provider-node - defaultProvider::fromEnv"),BG(c)()},async(f)=>{c.logger?.debug("@aws-sdk/credential-provider-node - defaultProvider::fromSSO");let{ssoStartUrl:R,ssoAccountId:h,ssoRegion:$,ssoRoleName:H,ssoSession:A}=c;if(!R&&!h&&!$&&!H&&!A)throw new a0.CredentialsProviderError("Skipping SSO provider in default chain (inputs do not include SSO fields).",{logger:c.logger});let{fromSSO:G}=await import("./chunk-k47r0hsx.js");return G(c)(f)},async(f)=>{c.logger?.debug("@aws-sdk/credential-provider-node - defaultProvider::fromIni");let{fromIni:R}=await import("./chunk-xzg1b2z7.js");return R(c)(f)},async(f)=>{c.logger?.debug("@aws-sdk/credential-provider-node - defaultProvider::fromProcess");let{fromProcess:R}=await import("./chunk-mcxe6c90.js");return R(c)(f)},async(f)=>{c.logger?.debug("@aws-sdk/credential-provider-node - defaultProvider::fromTokenFile");let{fromTokenFile:R}=await import("./chunk-qr0d4b5g.js");return R(c)(f)},async()=>{return c.logger?.debug("@aws-sdk/credential-provider-node - defaultProvider::remoteProvider"),(await ZG(c))()},async()=>{throw new a0.CredentialsProviderError("Could not load credentials from any providers",{tryNextLink:!1,logger:c.logger})}],Hv);var Hv=(c)=>c?.expiration!==void 0&&c.expiration.getTime()-Date.now()<300000;var Cf=Y(ZH(),1),Av="AWS_S3_USE_ARN_REGION",Gv="s3_use_arn_region",DG={environmentVariableSelector:(c)=>Cf.booleanSelector(c,Av,Cf.SelectorType.ENV),configFileSelector:(c)=>Cf.booleanSelector(c,Gv,Cf.SelectorType.CONFIG),default:void 0};var Rh=Y(Lv(),1),cf=Y(pG(),1);var rc=Y(jG(),1);var LG=Y(jG(),1);class mf{bytes;constructor(c){if(this.bytes=c,c.byteLength!==8)throw Error("Int64 buffers must be exactly 8 bytes")}static fromNumber(c){if(c>9223372036854776000||c<-9223372036854776000)throw Error(`${c} is too large (or, if negative, too small) to represent as an Int64`);let f=new Uint8Array(8);for(let R=7,h=Math.abs(Math.round(c));R>-1&&h>0;R--,h/=256)f[R]=h;if(c<0)wG(f);return new mf(f)}valueOf(){let c=this.bytes.slice(0),f=c[0]&128;if(f)wG(c);return parseInt(LG.toHex(c),16)*(f?-1:1)}toString(){return String(this.valueOf())}}function wG(c){for(let f=0;f<8;f++)c[f]^=255;for(let f=7;f>-1;f--)if(c[f]++,c[f]!==0)break}class F${toUtf8;fromUtf8;constructor(c,f){this.toUtf8=c,this.fromUtf8=f}format(c){let f=[];for(let $ of Object.keys(c)){let H=this.fromUtf8($);f.push(Uint8Array.from([H.byteLength]),H,this.formatHeaderValue(c[$]))}let R=new Uint8Array(f.reduce(($,H)=>$+H.byteLength,0)),h=0;for(let $ of f)R.set($,h),h+=$.byteLength;return R}formatHeaderValue(c){switch(c.type){case"boolean":return Uint8Array.from([c.value?0:1]);case"byte":return Uint8Array.from([2,c.value]);case"short":let f=new DataView(new ArrayBuffer(3));return f.setUint8(0,3),f.setInt16(1,c.value,!1),new Uint8Array(f.buffer);case"integer":let R=new DataView(new ArrayBuffer(5));return R.setUint8(0,4),R.setInt32(1,c.value,!1),new Uint8Array(R.buffer);case"long":let h=new Uint8Array(9);return h[0]=5,h.set(c.value.bytes,1),h;case"binary":let $=new DataView(new ArrayBuffer(3+c.value.byteLength));$.setUint8(0,6),$.setUint16(1,c.value.byteLength,!1);let H=new Uint8Array($.buffer);return H.set(c.value,3),H;case"string":let A=this.fromUtf8(c.value),G=new DataView(new ArrayBuffer(3+A.byteLength));G.setUint8(0,7),G.setUint16(1,A.byteLength,!1);let y=new Uint8Array(G.buffer);return y.set(A,3),y;case"timestamp":let F=new Uint8Array(9);return F[0]=8,F.set(mf.fromNumber(c.value.valueOf()).bytes,1),F;case"uuid":if(!Jv.test(c.value))throw Error(`Invalid UUID received: ${c.value}`);let U=new Uint8Array(17);return U[0]=9,U.set(rc.fromHex(c.value.replace(/\-/g,"")),1),U}}parse(c){let f={},R=0;while(R<c.byteLength){let h=c.getUint8(R++),$=this.toUtf8(new Uint8Array(c.buffer,c.byteOffset+R,h));switch(R+=h,c.getUint8(R++)){case 0:f[$]={type:IG,value:!0};break;case 1:f[$]={type:IG,value:!1};break;case 2:f[$]={type:yv,value:c.getInt8(R++)};break;case 3:f[$]={type:Fv,value:c.getInt16(R,!1)},R+=2;break;case 4:f[$]={type:Wv,value:c.getInt32(R,!1)},R+=4;break;case 5:f[$]={type:vv,value:new mf(new Uint8Array(c.buffer,c.byteOffset+R,8))},R+=8;break;case 6:let H=c.getUint16(R,!1);R+=2,f[$]={type:Uv,value:new Uint8Array(c.buffer,c.byteOffset+R,H)},R+=H;break;case 7:let A=c.getUint16(R,!1);R+=2,f[$]={type:Yv,value:this.toUtf8(new Uint8Array(c.buffer,c.byteOffset+R,A))},R+=A;break;case 8:f[$]={type:Nv,value:new Date(new mf(new Uint8Array(c.buffer,c.byteOffset+R,8)).valueOf())},R+=8;break;case 9:let G=new Uint8Array(c.buffer,c.byteOffset+R,16);R+=16,f[$]={type:Zv,value:`${rc.toHex(G.subarray(0,4))}-${rc.toHex(G.subarray(4,6))}-${rc.toHex(G.subarray(6,8))}-${rc.toHex(G.subarray(8,10))}-${rc.toHex(G.subarray(10))}`};break;default:throw Error("Unrecognized header type tag")}}return f}}var xG;(function(c){c[c.boolTrue=0]="boolTrue",c[c.boolFalse=1]="boolFalse",c[c.byte=2]="byte",c[c.short=3]="short",c[c.integer=4]="integer",c[c.long=5]="long",c[c.byteArray=6]="byteArray",c[c.string=7]="string",c[c.timestamp=8]="timestamp",c[c.uuid=9]="uuid"})(xG||(xG={}));var IG="boolean",yv="byte",Fv="short",Wv="integer",vv="long",Uv="binary",Yv="string",Nv="timestamp",Zv="uuid",Jv=/^[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}$/;var PG=4,ec=PG*2,Jf=4,zv=ec+Jf*2;function KG({byteLength:c,byteOffset:f,buffer:R}){if(c<zv)throw Error("Provided message too short to accommodate event stream message overhead");let h=new DataView(R,f,c),$=h.getUint32(0,!1);if(c!==$)throw Error("Reported message length does not match received message length");let H=h.getUint32(PG,!1),A=h.getUint32(ec,!1),G=h.getUint32(c-Jf,!1),y=new Nf().update(new Uint8Array(R,f,ec));if(A!==y.digest())throw Error(`The prelude checksum specified in the message (${A}) does not match the calculated CRC32 checksum (${y.digest()})`);if(y.update(new Uint8Array(R,f+ec,c-(ec+Jf))),G!==y.digest())throw Error(`The message checksum (${y.digest()}) did not match the expected value of ${G}`);return{headers:new DataView(R,f+ec+Jf,H),body:new Uint8Array(R,f+ec+Jf+H,$-H-(ec+Jf+Jf))}}class W${headerMarshaller;messageBuffer;isEndOfStream;constructor(c,f){this.headerMarshaller=new F$(c,f),this.messageBuffer=[],this.isEndOfStream=!1}feed(c){this.messageBuffer.push(this.decode(c))}endOfStream(){this.isEndOfStream=!0}getMessage(){let c=this.messageBuffer.pop(),f=this.isEndOfStream;return{getMessage(){return c},isEndOfStream(){return f}}}getAvailableMessages(){let c=this.messageBuffer;this.messageBuffer=[];let f=this.isEndOfStream;return{getMessages(){return c},isEndOfStream(){return f}}}encode({headers:c,body:f}){let R=this.headerMarshaller.format(c),h=R.byteLength+f.byteLength+16,$=new Uint8Array(h),H=new DataView($.buffer,$.byteOffset,$.byteLength),A=new Nf;return H.setUint32(0,h,!1),H.setUint32(4,R.byteLength,!1),H.setUint32(8,A.update($.subarray(0,8)).digest(),!1),$.set(R,12),$.set(f,R.byteLength+12),H.setUint32(h-4,A.update($.subarray(8,h-4)).digest(),!1),$}decode(c){let{headers:f,body:R}=KG(c);return{headers:this.headerMarshaller.parse(f),body:R}}formatHeaders(c){return this.headerMarshaller.format(c)}}class v${options;constructor(c){this.options=c}[Symbol.asyncIterator](){return this.asyncIterator()}async*asyncIterator(){for await(let c of this.options.inputStream)yield this.options.decoder.decode(c)}}class U${options;constructor(c){this.options=c}[Symbol.asyncIterator](){return this.asyncIterator()}async*asyncIterator(){for await(let c of this.options.messageStream)yield this.options.encoder.encode(c);if(this.options.includeEndFrame)yield new Uint8Array(0)}}class Y${options;constructor(c){this.options=c}[Symbol.asyncIterator](){return this.asyncIterator()}async*asyncIterator(){for await(let c of this.options.messageStream){let f=await this.options.deserializer(c);if(f===void 0)continue;yield f}}}class N${options;constructor(c){this.options=c}[Symbol.asyncIterator](){return this.asyncIterator()}async*asyncIterator(){for await(let c of this.options.inputStream)yield this.options.serializer(c)}}function OG(c){let f=0,R=0,h=null,$=null,H=(G)=>{if(typeof G!=="number")throw Error("Attempted to allocate an event message where size was not a number: "+G);f=G,R=4,h=new Uint8Array(G),new DataView(h.buffer).setUint32(0,G,!1)},A=async function*(){let G=c[Symbol.asyncIterator]();while(!0){let{value:y,done:F}=await G.next();if(F){if(!f)return;else if(f===R)yield h;else throw Error("Truncated event message received.");return}let U=y.length,N=0;while(N<U){if(!h){let Z=U-N;if(!$)$=new Uint8Array(4);let w=Math.min(4-R,Z);if($.set(y.slice(N,N+w),R),R+=w,N+=w,R<4)break;H(new DataView($.buffer).getUint32(0,!1)),$=null}let z=Math.min(f-R,U-N);if(h.set(y.slice(N,N+z),R),R+=z,N+=z,f&&f===R)yield h,h=null,f=0,R=0}}};return{[Symbol.asyncIterator]:A}}function bG(c,f){return async function(R){let{value:h}=R.headers[":message-type"];if(h==="error"){let $=Error(R.headers[":error-message"].value||"UnknownError");throw $.name=R.headers[":error-code"].value,$}else if(h==="exception"){let $=R.headers[":exception-type"].value,H={[$]:R},A=await c(H);if(A.$unknown){let G=Error(f(R.body));throw G.name=$,G}throw A[$]}else if(h==="event"){let $={[R.headers[":event-type"].value]:R},H=await c($);if(H.$unknown)return;return H}else throw Error(`Unrecognizable event type: ${R.headers[":event-type"].value}`)}}class Z${eventStreamCodec;utfEncoder;constructor({utf8Encoder:c,utf8Decoder:f}){this.eventStreamCodec=new W$(c,f),this.utfEncoder=c}deserialize(c,f){let R=OG(c);return new Y$({messageStream:new v$({inputStream:R,decoder:this.eventStreamCodec}),deserializer:bG(f,this.utfEncoder)})}serialize(c,f){return new U$({messageStream:new N$({inputStream:c,serializer:f}),encoder:this.eventStreamCodec,includeEndFrame:!0})}}import{Readable as Sv}from"stream";async function*qG(c){let f=!1,R=!1,h=[];c.on("error",($)=>{if(!f)f=!0;if($)throw $}),c.on("data",($)=>{h.push($)}),c.on("end",()=>{f=!0});while(!R){let $=await new Promise((H)=>setTimeout(()=>H(h.shift()),0));if($)yield $;R=f&&h.length===0}}class J${universalMarshaller;constructor({utf8Encoder:c,utf8Decoder:f}){this.universalMarshaller=new Z$({utf8Decoder:f,utf8Encoder:c})}deserialize(c,f){let R=typeof c[Symbol.asyncIterator]==="function"?c:qG(c);return this.universalMarshaller.deserialize(R,f)}serialize(c,f){return Sv.from(this.universalMarshaller.serialize(c,f))}}var VG=(c)=>new J$(c);var fh=Y(xv(),1);var EG=Y(K1(),1);import{Writable as Mv}from"stream";class z$ extends Mv{hash;constructor(c,f){super(f);this.hash=c}_write(c,f,R){try{this.hash.update(EG.toUint8Array(c))}catch(h){return R(h)}R()}}var TG=(c,f)=>{if(f.readableFlowing!==null)throw Error("Unable to calculate hash for flowing readable stream");let R=new c,h=new z$(R);return f.pipe(h),new Promise(($,H)=>{f.on("error",(A)=>{h.end(),H(A)}),h.on("error",H),h.on("finish",()=>{R.digest().then($).catch(H)})})};var hh=Y(sG(),1),Sc=Y(wv(),1),$h=Y(Dv(),1),Hh=Y(Oc(),1),iG=Y(Iv(),1),kG=Y(Pv(),1),lG=Y(jv(),1);var t0=Y(Kf(),1),uG=Y(Qv(),1);var gG=Y(Oc(),1),CG=Y(Xv(),1),r0=Y(Bv(),1),e0=Y(X0(),1),ch=Y(K1(),1);var mG=(c)=>{return{apiVersion:"2006-03-01",base64Decoder:c?.base64Decoder??r0.fromBase64,base64Encoder:c?.base64Encoder??r0.toBase64,disableHostPrefix:c?.disableHostPrefix??!1,endpointProvider:c?.endpointProvider??b0,extensions:c?.extensions??[],getAwsChunkedEncodingStream:c?.getAwsChunkedEncodingStream??e0.getAwsChunkedEncodingStream,httpAuthSchemeProvider:c?.httpAuthSchemeProvider??rA,httpAuthSchemes:c?.httpAuthSchemes??[{schemeId:"aws.auth#sigv4",identityProvider:(f)=>f.getIdentityProvider("aws.auth#sigv4"),signer:new t0.AwsSdkSigV4Signer},{schemeId:"aws.auth#sigv4a",identityProvider:(f)=>f.getIdentityProvider("aws.auth#sigv4a"),signer:new t0.AwsSdkSigV4ASigner}],logger:c?.logger??new gG.NoOpLogger,protocol:c?.protocol??uG.AwsRestXmlProtocol,protocolSettings:c?.protocolSettings??{defaultNamespace:"com.amazonaws.s3",xmlNamespace:"http://s3.amazonaws.com/doc/2006-03-01/",version:"2006-03-01",serviceTarget:"AmazonS3"},sdkStreamMixin:c?.sdkStreamMixin??e0.sdkStreamMixin,serviceId:c?.serviceId??"S3",signerConstructor:c?.signerConstructor??LR,signingEscapePath:c?.signingEscapePath??!1,urlParser:c?.urlParser??CG.parseUrl,useArnRegion:c?.useArnRegion??void 0,utf8Decoder:c?.utf8Decoder??ch.fromUtf8,utf8Encoder:c?.utf8Encoder??ch.toUtf8}};var dG=(c)=>{Hh.emitWarningIfUnsupportedVersion(process.version);let f=kG.resolveDefaultsModeConfig(c),R=()=>f().then(Hh.loadConfigsForDefaultMode),h=mG(c);pf.emitWarningIfUnsupportedVersion(process.version);let $={profile:c?.profile,logger:h.logger};return{...h,...c,runtime:"node",defaultsMode:f,authSchemePreference:c?.authSchemePreference??Sc.loadConfig(pf.NODE_AUTH_SCHEME_PREFERENCE_OPTIONS,$),bodyLengthChecker:c?.bodyLengthChecker??iG.calculateBodyLength,credentialDefaultProvider:c?.credentialDefaultProvider??QG,defaultUserAgentProvider:c?.defaultUserAgentProvider??Rh.createDefaultUserAgentProvider({serviceId:h.serviceId,clientVersion:UG.version}),disableS3ExpressSessionAuth:c?.disableS3ExpressSessionAuth??Sc.loadConfig(q1,$),eventStreamSerdeProvider:c?.eventStreamSerdeProvider??VG,maxAttempts:c?.maxAttempts??Sc.loadConfig(hh.NODE_MAX_ATTEMPT_CONFIG_OPTIONS,c),md5:c?.md5??fh.Hash.bind(null,"md5"),region:c?.region??Sc.loadConfig(cf.NODE_REGION_CONFIG_OPTIONS,{...cf.NODE_REGION_CONFIG_FILE_OPTIONS,...$}),requestChecksumCalculation:c?.requestChecksumCalculation??Sc.loadConfig(q4,$),requestHandler:$h.NodeHttpHandler.create(c?.requestHandler??R),responseChecksumValidation:c?.responseChecksumValidation??Sc.loadConfig(V4,$),retryMode:c?.retryMode??Sc.loadConfig({...hh.NODE_RETRY_MODE_CONFIG_OPTIONS,default:async()=>(await R()).retryMode||lG.DEFAULT_RETRY_MODE},c),sha1:c?.sha1??fh.Hash.bind(null,"sha1"),sha256:c?.sha256??fh.Hash.bind(null,"sha256"),sigv4aSigningRegionSet:c?.sigv4aSigningRegionSet??Sc.loadConfig(pf.NODE_SIGV4A_CONFIG_OPTIONS,$),streamCollector:c?.streamCollector??$h.streamCollector,streamHasher:c?.streamHasher??TG,useArnRegion:c?.useArnRegion??Sc.loadConfig(DG,$),useDualstackEndpoint:c?.useDualstackEndpoint??Sc.loadConfig(cf.NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS,$),useFipsEndpoint:c?.useFipsEndpoint??Sc.loadConfig(cf.NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS,$),userAgentAppId:c?.userAgentAppId??Sc.loadConfig(Rh.NODE_APP_ID_CONFIG_OPTIONS,$)}};var Ah=Y(Kv(),1),Gh=Y(kc(),1),yh=Y(Oc(),1);var _G=(c)=>{let{httpAuthSchemes:f,httpAuthSchemeProvider:R,credentials:h}=c;return{setHttpAuthScheme($){let H=f.findIndex((A)=>A.schemeId===$.schemeId);if(H===-1)f.push($);else f.splice(H,1,$)},httpAuthSchemes(){return f},setHttpAuthSchemeProvider($){R=$},httpAuthSchemeProvider(){return R},setCredentials($){h=$},credentials(){return h}}},nG=(c)=>{return{httpAuthSchemes:c.httpAuthSchemes(),httpAuthSchemeProvider:c.httpAuthSchemeProvider(),credentials:c.credentials()}};var oG=(c,f)=>{let R=Object.assign(Ah.getAwsRegionExtensionConfiguration(c),yh.getDefaultExtensionConfiguration(c),Gh.getHttpHandlerExtensionConfiguration(c),_G(c));return f.forEach((h)=>h.configure(R)),Object.assign(c,Ah.resolveAwsRegionExtensionConfiguration(R),yh.resolveDefaultRuntimeConfig(R),Gh.resolveHttpHandlerRuntimeConfig(R),nG(R))};class S$ extends R6.Client{config;constructor(...[c]){let f=dG(c||{});super(f);this.initConfig=f;let R=cG(f),h=Wh.resolveUserAgentConfig(R),$=HH(h),H=vh.resolveRetryConfig($),A=rG.resolveRegionConfig(H),G=Fh.resolveHostHeaderConfig(A),y=f6.resolveEndpointConfig(G),F=CH(y),U=eA(F),N=qH(U,{session:[()=>this,y$]}),z=oG(N,c?.extensions||[]);this.config=z,this.middlewareStack.use(eG.getSchemaSerdePlugin(this.config)),this.middlewareStack.use(Wh.getUserAgentPlugin(this.config)),this.middlewareStack.use(vh.getRetryPlugin(this.config)),this.middlewareStack.use(c6.getContentLengthPlugin(this.config)),this.middlewareStack.use(Fh.getHostHeaderPlugin(this.config)),this.middlewareStack.use(aG.getLoggerPlugin(this.config)),this.middlewareStack.use(tG.getRecursionDetectionPlugin(this.config)),this.middlewareStack.use(sf.getHttpAuthSchemeEndpointRuleSetPlugin(this.config,{httpAuthSchemeParametersProvider:oA,identityProviderConfigProvider:async(Z)=>new sf.DefaultIdentityProviderConfig({"aws.auth#sigv4":Z.credentials,"aws.auth#sigv4a":Z.credentials})})),this.middlewareStack.use(sf.getHttpSigningPlugin(this.config)),this.middlewareStack.use(gH(this.config)),this.middlewareStack.use(O4(this.config)),this.middlewareStack.use(vH(this.config)),this.middlewareStack.use(V1(this.config)),this.middlewareStack.use(E1(this.config))}destroy(){super.destroy()}}function Tv(c){return(f)=>async(R)=>{let h={...R.input},$=[{target:"SSECustomerKey",hash:"SSECustomerKeyMD5"},{target:"CopySourceSSECustomerKey",hash:"CopySourceSSECustomerKeyMD5"}];for(let H of $){let A=h[H.target];if(A){let G;if(typeof A==="string")if(gv(A,c))G=c.base64Decoder(A);else G=c.utf8Decoder(A),h[H.target]=c.base64Encoder(G);else G=ArrayBuffer.isView(A)?new Uint8Array(A.buffer,A.byteOffset,A.byteLength):new Uint8Array(A),h[H.target]=c.base64Encoder(G);let y=new c.md5;y.update(G),h[H.hash]=c.base64Encoder(await y.digest())}}return f({...R,input:h})}}var uv={name:"ssecMiddleware",step:"initialize",tags:["SSE"],override:!0},Uh=(c)=>({applyToStack:(f)=>{f.add(Tv(c),uv)}});function gv(c,f){if(!/^(?:[A-Za-z0-9+/]{4})*([A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/.test(c))return!1;try{return f.base64Decoder(c).length===32}catch{return!1}}var h6=Y(uf(),1),$6=Y(Oc(),1);class M$ extends $6.Command.classBuilder().ep({...tc,Bucket:{type:"contextParams",name:"Bucket"},Key:{type:"contextParams",name:"Key"}}).m(function(c,f,R,h){return[h6.getEndpointPlugin(R,c.getEndpointParameterInstructions()),D0(R,{requestChecksumRequired:!1,requestValidationModeMember:"ChecksumMode",responseAlgorithms:["CRC64NVME","CRC32","CRC32C","SHA256","SHA1"]}),Uh(R),NH(R)]}).s("AmazonS3","GetObject",{}).n("S3Client","GetObjectCommand").sc(GG).build(){}var H6=Y(uf(),1),A6=Y(Oc(),1);class B$ extends A6.Command.classBuilder().ep({...tc,Bucket:{type:"contextParams",name:"Bucket"},Prefix:{type:"contextParams",name:"Prefix"}}).m(function(c,f,R,h){return[H6.getEndpointPlugin(R,c.getEndpointParameterInstructions()),bf(R)]}).s("AmazonS3","ListObjectsV2",{}).n("S3Client","ListObjectsV2Command").sc(yG).build(){}var G6=Y(uf(),1),y6=Y(Oc(),1);class X$ extends y6.Command.classBuilder().ep({...tc,Bucket:{type:"contextParams",name:"Bucket"},Key:{type:"contextParams",name:"Key"}}).m(function(c,f,R,h){return[G6.getEndpointPlugin(R,c.getEndpointParameterInstructions()),D0(R,{requestAlgorithmMember:{httpHeader:"x-amz-sdk-checksum-algorithm",name:"ChecksumAlgorithm"},requestChecksumRequired:!1}),yH(R),bf(R),Uh(R)]}).s("AmazonS3","PutObject",{}).n("S3Client","PutObjectCommand").sc(FG).build(){}import{Buffer as F6}from"buffer";class W6 extends Lf{client;constructor(...c){super();this.client=new S$(...c)}async put(c){let f,R,h,$=process.env.BUCKET_NAME;if(c instanceof Blob)f=c,h=`${Bun.randomUUIDv7()}.${c.type.split("/")[1].split(";")[0]}`,R=c.type;else f=c.body,h=c.name,$=c.bucket??$,R=c.contentType;R=f instanceof Blob||f instanceof File?f.type:void 0;let H=f instanceof F6?f:f instanceof Blob||f instanceof File?F6.from(await f.arrayBuffer()):"";return await this.client.send(new X$({Bucket:$,Key:h,Body:H,ContentType:R})),h}async list(c){return await this.client.send(new B$({Bucket:process.env.BUCKET_NAME,Prefix:c}))}async fetch(c){let f=process.env.BUCKET_NAME,R;if(typeof c==="string")R=c;else f=c.bucket??f,R=c.name;if(!R)throw Error("Object name has to be specified");let h=await this.client.send(new M$({Bucket:f,Key:R}));return new Response(h.Body.transformToWebStream(),{headers:{"Content-Type":h.ContentType,"Content-Length":h.ContentLength.toString(),"Cache-Control":"private, max-age=12000, must-revalidate","Last-Modified":h.LastModified?.toUTCString()||"",ETag:h.ETag||""}})}}class Yh{}class Nh extends Yh{requests=new Map;consume(c,f){if(!this.requests.has(c))this.requests.set(c,{date:Date.now(),count:1});else{let R=this.requests.get(c),h=Date.now();if(h-R.date>=60000)this.requests.set(c,{date:h,count:1});else this.requests.set(c,{date:R.date,count:R.count+1})}return this.requests.get(c).count}}class v6 extends l{driver=new Nh;boot(){}}import*as P7 from"react-dom/server";var K;(function(c){c.Root="root",c.Text="text",c.Directive="directive",c.Comment="comment",c.Script="script",c.Style="style",c.Tag="tag",c.CDATA="cdata",c.Doctype="doctype"})(K||(K={}));function U6(c){return c.type===K.Tag||c.type===K.Script||c.type===K.Style}var{Root:Y6,Text:N6,Directive:Z6,Comment:J6,Script:z6,Style:S6,Tag:M6,CDATA:B6,Doctype:X6}=K;class D${constructor(){this.parent=null,this.prev=null,this.next=null,this.startIndex=null,this.endIndex=null}get parentNode(){return this.parent}set parentNode(c){this.parent=c}get previousSibling(){return this.prev}set previousSibling(c){this.prev=c}get nextSibling(){return this.next}set nextSibling(c){this.next=c}cloneNode(c=!1){return D6(this,c)}}class Zh extends D${constructor(c){super();this.data=c}get nodeValue(){return this.data}set nodeValue(c){this.data=c}}class VR extends Zh{constructor(){super(...arguments);this.type=K.Text}get nodeType(){return 3}}class Jh extends Zh{constructor(){super(...arguments);this.type=K.Comment}get nodeType(){return 8}}class zh extends Zh{constructor(c,f){super(f);this.name=c,this.type=K.Directive}get nodeType(){return 1}}class Sh extends D${constructor(c){super();this.children=c}get firstChild(){var c;return(c=this.children[0])!==null&&c!==void 0?c:null}get lastChild(){return this.children.length>0?this.children[this.children.length-1]:null}get childNodes(){return this.children}set childNodes(c){this.children=c}}class Mh extends Sh{constructor(){super(...arguments);this.type=K.CDATA}get nodeType(){return 4}}class ER extends Sh{constructor(){super(...arguments);this.type=K.Root}get nodeType(){return 9}}class Bh extends Sh{constructor(c,f,R=[],h=c==="script"?K.Script:c==="style"?K.Style:K.Tag){super(R);this.name=c,this.attribs=f,this.type=h}get nodeType(){return 1}get tagName(){return this.name}set tagName(c){this.name=c}get attributes(){return Object.keys(this.attribs).map((c)=>{var f,R;return{name:c,value:this.attribs[c],namespace:(f=this["x-attribsNamespace"])===null||f===void 0?void 0:f[c],prefix:(R=this["x-attribsPrefix"])===null||R===void 0?void 0:R[c]}})}}function Xh(c){return U6(c)}function Cv(c){return c.type===K.CDATA}function mv(c){return c.type===K.Text}function pv(c){return c.type===K.Comment}function sv(c){return c.type===K.Directive}function iv(c){return c.type===K.Root}function D6(c,f=!1){let R;if(mv(c))R=new VR(c.data);else if(pv(c))R=new Jh(c.data);else if(Xh(c)){let h=f?Q$(c.children):[],$=new Bh(c.name,{...c.attribs},h);if(h.forEach((H)=>H.parent=$),c.namespace!=null)$.namespace=c.namespace;if(c["x-attribsNamespace"])$["x-attribsNamespace"]={...c["x-attribsNamespace"]};if(c["x-attribsPrefix"])$["x-attribsPrefix"]={...c["x-attribsPrefix"]};R=$}else if(Cv(c)){let h=f?Q$(c.children):[],$=new Mh(h);h.forEach((H)=>H.parent=$),R=$}else if(iv(c)){let h=f?Q$(c.children):[],$=new ER(h);if(h.forEach((H)=>H.parent=$),c["x-mode"])$["x-mode"]=c["x-mode"];R=$}else if(sv(c)){let h=new zh(c.name,c.data);if(c["x-name"]!=null)h["x-name"]=c["x-name"],h["x-publicId"]=c["x-publicId"],h["x-systemId"]=c["x-systemId"];R=h}else throw Error(`Not implemented yet: ${c.type}`);if(R.startIndex=c.startIndex,R.endIndex=c.endIndex,c.sourceCodeLocation!=null)R.sourceCodeLocation=c.sourceCodeLocation;return R}function Q$(c){let f=c.map((R)=>D6(R,!0));for(let R=1;R<f.length;R++)f[R].prev=f[R-1],f[R-1].next=f[R];return f}var w6={withStartIndices:!1,withEndIndices:!1,xmlMode:!1};class w${constructor(c,f,R){if(this.dom=[],this.root=new ER(this.dom),this.done=!1,this.tagStack=[this.root],this.lastNode=null,this.parser=null,typeof f==="function")R=f,f=w6;if(typeof c==="object")f=c,c=void 0;this.callback=c!==null&&c!==void 0?c:null,this.options=f!==null&&f!==void 0?f:w6,this.elementCB=R!==null&&R!==void 0?R:null}onparserinit(c){this.parser=c}onreset(){this.dom=[],this.root=new ER(this.dom),this.done=!1,this.tagStack=[this.root],this.lastNode=null,this.parser=null}onend(){if(this.done)return;this.done=!0,this.parser=null,this.handleCallback(null)}onerror(c){this.handleCallback(c)}onclosetag(){this.lastNode=null;let c=this.tagStack.pop();if(this.options.withEndIndices)c.endIndex=this.parser.endIndex;if(this.elementCB)this.elementCB(c)}onopentag(c,f){let R=this.options.xmlMode?K.Tag:void 0,h=new Bh(c,f,void 0,R);this.addNode(h),this.tagStack.push(h)}ontext(c){let{lastNode:f}=this;if(f&&f.type===K.Text){if(f.data+=c,this.options.withEndIndices)f.endIndex=this.parser.endIndex}else{let R=new VR(c);this.addNode(R),this.lastNode=R}}oncomment(c){if(this.lastNode&&this.lastNode.type===K.Comment){this.lastNode.data+=c;return}let f=new Jh(c);this.addNode(f),this.lastNode=f}oncommentend(){this.lastNode=null}oncdatastart(){let c=new VR(""),f=new Mh([c]);this.addNode(f),c.parent=f,this.lastNode=c}oncdataend(){this.lastNode=null}onprocessinginstruction(c,f){let R=new zh(c,f);this.addNode(R)}handleCallback(c){if(typeof this.callback==="function")this.callback(c,this.dom);else if(c)throw c}addNode(c){let f=this.tagStack[this.tagStack.length-1],R=f.children[f.children.length-1];if(this.options.withStartIndices)c.startIndex=this.parser.startIndex;if(this.options.withEndIndices)c.endIndex=this.parser.endIndex;if(f.children.push(c),R)c.prev=R,R.next=c;c.parent=f,this.lastNode=null}}var kv=/\n/g;function lv(c){let f=[...c.matchAll(kv)].map((h)=>h.index||0);f.unshift(-1);let R=j$(f,0,f.length);return(h)=>L6(R,h)}function j$(c,f,R){if(R-f==1)return{offset:c[f],index:f+1};let h=Math.ceil((f+R)/2),$=j$(c,f,h),H=j$(c,h,R);return{offset:$.offset,low:$,high:H}}function L6(c,f){return function(R){return Object.prototype.hasOwnProperty.call(R,"index")}(c)?{line:c.index,column:f-c.offset}:L6(c.high.offset<f?c.high:c.low,f)}function L$(c,f="",R={}){let h=typeof f!="string"?f:R,$=typeof f=="string"?f:"",H=c.map(dv),A=!!h.lineNumbers;return function(G,y=0){let F=A?lv(G):()=>({line:0,column:0}),U=y,N=[];c:for(;U<G.length;){let z=!1;for(let Z of H){Z.regex.lastIndex=U;let w=Z.regex.exec(G);if(w&&w[0].length>0){if(!Z.discard){let V=F(U),a=typeof Z.replace=="string"?w[0].replace(new RegExp(Z.regex.source,Z.regex.flags),Z.replace):w[0];N.push({state:$,name:Z.name,text:a,offset:U,len:w[0].length,line:V.line,column:V.column})}if(U=Z.regex.lastIndex,z=!0,Z.push){let V=Z.push(G,U);N.push(...V.tokens),U=V.offset}if(Z.pop)break c;break}}if(!z)break}return{tokens:N,offset:U,complete:G.length<=U}}}function dv(c,f){return{...c,regex:_v(c,f)}}function _v(c,f){if(c.name.length===0)throw Error(`Rule #${f} has empty name, which is not allowed.`);if(function(R){return Object.prototype.hasOwnProperty.call(R,"regex")}(c))return function(R){if(R.global)throw Error(`Regular expression /${R.source}/${R.flags} contains the global flag, which is not allowed.`);return R.sticky?R:new RegExp(R.source,R.flags+"y")}(c.regex);if(function(R){return Object.prototype.hasOwnProperty.call(R,"str")}(c)){if(c.str.length===0)throw Error(`Rule #${f} ("${c.name}") has empty "str" property, which is not allowed.`);return new RegExp(j6(c.str),"y")}return new RegExp(j6(c.name),"y")}function j6(c){return c.replace(/[-[\]{}()*+!<=:?./\\^$|#\s,]/g,"\\$&")}function mc(c,f){return(R,h)=>{let $=h,H=void 0;if(h<R.tokens.length){if(H=c(R.tokens[h],R,h),H!==void 0)$++}else f?.(R,h);return H===void 0?{matched:!1}:{matched:!0,position:$,value:H}}}function x$(c,f){return c.matched?{matched:!0,position:c.position,value:f(c.value,c.position)}:c}function Qh(c,f){return c.matched?f(c):c}function Gc(c,f){return(R,h)=>x$(c(R,h),($,H)=>f($,R,h,H))}function TR(c,f){return(R,h)=>{let $=c(R,h);return $.matched?$:{matched:!0,position:h,value:f}}}function kf(...c){return(f,R)=>{for(let h of c){let $=h(f,R);if($.matched)return $}return{matched:!1}}}function ff(c,f){return(R,h)=>{let $=c(R,h);return $.matched?$:f(R,h)}}function nv(c,f){return(R,h)=>{let $=[],H=!0;do{let A=c(R,h);if(A.matched&&f(A.value,$.length+1,R,h,A.position))$.push(A.value),h=A.position;else H=!1}while(H);return{matched:!0,position:h,value:$}}}function Dh(c){return nv(c,()=>!0)}function x6(c){return vc(c,Dh(c),(f,R)=>[f,...R])}function vc(c,f,R){return(h,$)=>Qh(c(h,$),(H)=>x$(f(h,H.position),(A,G)=>R(H.value,A,h,$,G)))}function I6(c,f){return vc(c,f,(R)=>R)}function I$(c,f){return vc(c,f,(R,h)=>h)}function wh(c,f,R,h){return($,H)=>Qh(c($,H),(A)=>Qh(f($,A.position),(G)=>x$(R($,G.position),(y,F)=>h(A.value,G.value,y,$,H,F))))}function P$(c,f,R){return wh(c,f,R,(h,$)=>$)}function ov(...c){return(f,R)=>{let h=[],$=R;for(let H of c){let A=H(f,$);if(A.matched)h.push(A.value),$=A.position;else return{matched:!1}}return{matched:!0,position:$,value:h}}}function P6(...c){return av(ov(...c))}function av(c){return Gc(c,(f)=>f.flatMap((R)=>R))}function tv(c,f){return(R,h)=>{let $=!0,H=c,A=h;do{let G=f(H,R,A)(R,A);if(G.matched)H=G.value,A=G.position;else $=!1}while($);return{matched:!0,position:A,value:H}}}function rv(c,f,R){return tv(c,(h)=>Gc(f,($,H,A,G)=>R(h,$,H,A,G)))}function K$(c,f,R){return ev(c,(h)=>rv(h,vc(f,R,($,H)=>[$,H]),($,[H,A])=>H($,A)))}function ev(c,f){return(R,h)=>Qh(c(R,h),($)=>f($.value,R,h,$.position)(R,$.position))}var fU="(?:[ \\t\\r\\n\\f]*)",E6="(?:\\n|\\r\\n|\\r|\\f)",xh="[^\\x00-\\x7F]",CR="(?:\\\\[0-9a-f]{1,6}(?:\\r\\n|[ \\n\\r\\t\\f])?)",mR="(?:\\\\[^\\n\\r\\f0-9a-f])",RU=`(?:[_a-z]|${xh}|${CR}|${mR})`,T6=`(?:[_a-z0-9-]|${xh}|${CR}|${mR})`,hU=`(?:${T6}+)`,$U=`(?:[-]?${RU}${T6}*)`,HU=`'([^\\n\\r\\f\\\\']|\\\\${E6}|${xh}|${CR}|${mR})*'`,AU=`"([^\\n\\r\\f\\\\"]|\\\\${E6}|${xh}|${CR}|${mR})*"`,GU=L$([{name:"ws",regex:new RegExp(fU)},{name:"hash",regex:new RegExp(`#${hU}`,"i")},{name:"ident",regex:new RegExp($U,"i")},{name:"str1",regex:new RegExp(HU,"i")},{name:"str2",regex:new RegExp(AU,"i")},{name:"*"},{name:"."},{name:","},{name:"["},{name:"]"},{name:"="},{name:">"},{name:"|"},{name:"+"},{name:"~"},{name:"^"},{name:"$"}]),yU=L$([{name:"unicode",regex:new RegExp(CR,"i")},{name:"escape",regex:new RegExp(mR,"i")},{name:"any",regex:new RegExp("[\\s\\S]","i")}]);function u6([c,f,R],[h,$,H]){return[c+h,f+$,R+H]}function FU(c){return c.reduce(u6,[0,0,0])}var WU=mc((c)=>c.name==="unicode"?String.fromCodePoint(parseInt(c.text.slice(1),16)):void 0),vU=mc((c)=>c.name==="escape"?c.text.slice(1):void 0),UU=mc((c)=>c.name==="any"?c.text:void 0),YU=Gc(Dh(kf(WU,vU,UU)),(c)=>c.join(""));function q$(c){let f=yU(c);return YU({tokens:f.tokens,options:void 0},0).value}function m(c){return mc((f)=>f.name===c?!0:void 0)}var V$=mc((c)=>c.name==="ws"?null:void 0),O$=TR(V$,null);function df(c){return P$(O$,c,O$)}var gR=mc((c)=>c.name==="ident"?q$(c.text):void 0),NU=mc((c)=>c.name==="hash"?q$(c.text.slice(1)):void 0),ZU=mc((c)=>c.name.startsWith("str")?q$(c.text.slice(1,-1)):void 0),g6=I6(TR(gR,""),m("|")),E$=ff(vc(g6,gR,(c,f)=>({name:f,namespace:c})),Gc(gR,(c)=>({name:c,namespace:null}))),JU=ff(vc(g6,m("*"),(c)=>({type:"universal",namespace:c,specificity:[0,0,0]})),Gc(m("*"),()=>({type:"universal",namespace:null,specificity:[0,0,0]}))),zU=Gc(E$,({name:c,namespace:f})=>({type:"tag",name:c,namespace:f,specificity:[0,0,1]})),SU=vc(m("."),gR,(c,f)=>({type:"class",name:f,specificity:[0,1,0]})),MU=Gc(NU,(c)=>({type:"id",name:c,specificity:[1,0,0]})),K6=mc((c)=>{if(c.name==="ident"){if(c.text==="i"||c.text==="I")return"i";if(c.text==="s"||c.text==="S")return"s"}return}),BU=ff(vc(ZU,TR(I$(O$,K6),null),(c,f)=>({value:c,modifier:f})),vc(gR,TR(I$(V$,K6),null),(c,f)=>({value:c,modifier:f}))),XU=kf(Gc(m("="),()=>"="),vc(m("~"),m("="),()=>"~="),vc(m("|"),m("="),()=>"|="),vc(m("^"),m("="),()=>"^="),vc(m("$"),m("="),()=>"$="),vc(m("*"),m("="),()=>"*=")),QU=wh(m("["),df(E$),m("]"),(c,{name:f,namespace:R})=>({type:"attrPresence",name:f,namespace:R,specificity:[0,1,0]})),DU=P$(m("["),wh(df(E$),XU,df(BU),({name:c,namespace:f},R,{value:h,modifier:$})=>({type:"attrValue",name:c,namespace:f,matcher:R,value:h,modifier:$,specificity:[0,1,0]})),m("]")),wU=ff(QU,DU),jU=ff(JU,zU),O6=kf(MU,SU,wU),b6=Gc(ff(P6(jU,Dh(O6)),x6(O6)),(c)=>{return{type:"compound",list:c,specificity:FU(c.map((f)=>f.specificity))}}),LU=kf(Gc(m(">"),()=>">"),Gc(m("+"),()=>"+"),Gc(m("~"),()=>"~"),vc(m("|"),m("|"),()=>"||")),xU=ff(df(LU),Gc(V$,()=>" ")),b$=K$(b6,Gc(xU,(c)=>(f,R)=>({type:"compound",list:[...R.list,{type:"combinator",combinator:c,left:f,specificity:f.specificity}],specificity:u6(f.specificity,R.specificity)})),b6),CM=K$(Gc(b$,(c)=>({type:"list",list:[c]})),Gc(df(m(",")),()=>(c,f)=>({type:"list",list:[...c.list,f]})),b$);function IU(c,f){if(!(typeof f==="string"||f instanceof String))throw Error("Expected a selector string. Actual input is not a string!");let R=GU(f);if(!R.complete)throw Error(`The input "${f}" was only partially tokenized, stopped at offset ${R.offset}!
49
49
  `+q6(f,R.offset));let h=df(c)({tokens:R.tokens,options:void 0},0);if(!h.matched)throw Error(`No match for "${f}" input!`);if(h.position<R.tokens.length){let $=R.tokens[h.position];throw Error(`The input "${f}" was only partially parsed, stopped at offset ${$.offset}!
50
50
  `+q6(f,$.offset,$.len))}return h.value}function q6(c,f,R=1){return`${c.replace(/(\t)|(\r)|(\n)/g,(h,$,H)=>$?"\u2409":H?"\u240D":"\u240A")}
51
- ${"".padEnd(f)}${"^".repeat(R)}`}function C6(c){return IU(b$,c)}function bc(c){if(!c.type)throw Error("This is not an AST node.");switch(c.type){case"universal":return wh(c.namespace)+"*";case"tag":return wh(c.namespace)+lf(c.name);case"class":return"."+lf(c.name);case"id":return"#"+lf(c.name);case"attrPresence":return`[${wh(c.namespace)}${lf(c.name)}]`;case"attrValue":return`[${wh(c.namespace)}${lf(c.name)}${c.matcher}"${PU(c.value)}"${c.modifier?c.modifier:""}]`;case"combinator":return bc(c.left)+c.combinator;case"compound":return c.list.reduce((f,R)=>{if(R.type==="combinator")return bc(R)+f;else return f+bc(R)},"");case"list":return c.list.map(bc).join(",")}}function wh(c){return c||c===""?lf(c)+"|":""}function Lh(c){return`\\${c.codePointAt(0).toString(16)} `}function lf(c){return c.replace(/(^[0-9])|(^-[0-9])|(^-$)|([-0-9a-zA-Z_]|[^\x00-\x7F])|(\x00)|([\x01-\x1f]|\x7f)|([\s\S])/g,(f,R,h,$,H,A,G,y)=>R?Lh(R):h?"-"+Lh(h.slice(1)):$?"\\-":H?H:A?"\uFFFD":G?Lh(G):"\\"+y)}function PU(c){return c.replace(/(")|(\\)|(\x00)|([\x01-\x1f]|\x7f)/g,(f,R,h,$,H)=>R?"\\\"":h?"\\\\":$?"\uFFFD":Lh(H))}function uR(c){if(!c.type)throw Error("This is not an AST node.");switch(c.type){case"compound":{c.list.forEach(uR),c.list.sort((f,R)=>m6(V6(f),V6(R)));break}case"combinator":{uR(c.left);break}case"list":{c.list.forEach(uR),c.list.sort((f,R)=>bc(f)<bc(R)?-1:1);break}}return c}function V6(c){switch(c.type){case"universal":return[1];case"tag":return[1];case"id":return[2];case"class":return[3,c.name];case"attrPresence":return[4,bc(c)];case"attrValue":return[5,bc(c)];case"combinator":return[15,bc(c)]}}function T$(c,f){return m6(c,f)}function m6(c,f){if(!Array.isArray(c)||!Array.isArray(f))throw Error("Arguments must be arrays.");let R=c.length<f.length?c.length:f.length;for(let h=0;h<R;h++){if(c[h]===f[h])continue;return c[h]<f[h]?-1:1}return c.length-f.length}class Ih{constructor(c){this.branches=_f(OU(c))}build(c){return c(this.branches)}}function OU(c){let f=c.length,R=Array(f);for(let h=0;h<f;h++){let[$,H]=c[h],A=bU(C6($));R[h]={ast:A,terminal:{type:"terminal",valueContainer:{index:h,value:H,specificity:A.specificity}}}}return R}function bU(c){return s6(c),uR(c),c}function s6(c){let f=[];c.list.forEach((R)=>{switch(R.type){case"class":f.push({matcher:"~=",modifier:null,name:"class",namespace:null,specificity:R.specificity,type:"attrValue",value:R.name});break;case"id":f.push({matcher:"=",modifier:null,name:"id",namespace:null,specificity:R.specificity,type:"attrValue",value:R.name});break;case"combinator":s6(R.left),f.push(R);break;case"universal":break;default:f.push(R);break}}),c.list=f}function _f(c){let f=[];while(c.length){let R=l6(c,(A)=>!0,i6),{matches:h,nonmatches:$,empty:H}=VU(c,R);if(c=$,h.length)f.push(EU(R,h));if(H.length)f.push(...qU(H))}return f}function qU(c){let f=[];for(let R of c){let h=R.terminal;if(h.type==="terminal")f.push(h);else{let{matches:$,rest:H}=mU(h.cont,(A)=>A.type==="terminal");if($.forEach((A)=>f.push(A)),H.length)h.cont=H,f.push(h)}}return f}function VU(c,f){let R=[],h=[],$=[];for(let H of c){let A=H.ast.list;if(A.length)(A.some((y)=>i6(y)===f)?R:h).push(H);else $.push(H)}return{matches:R,nonmatches:h,empty:$}}function i6(c){switch(c.type){case"attrPresence":return`attrPresence ${c.name}`;case"attrValue":return`attrValue ${c.name}`;case"combinator":return`combinator ${c.combinator}`;default:return c.type}}function EU(c,f){if(c==="tag")return TU(f);if(c.startsWith("attrValue "))return gU(c.substring(10),f);if(c.startsWith("attrPresence "))return uU(c.substring(13),f);if(c==="combinator >")return p6(">",f);if(c==="combinator +")return p6("+",f);throw Error(`Unsupported selector kind: ${c}`)}function TU(c){let f=u$(c,(h)=>h.type==="tag",(h)=>h.name);return{type:"tagName",variants:Object.entries(f).map(([h,$])=>({type:"variant",value:h,cont:_f($.items)}))}}function uU(c,f){for(let R of f)k6(R,(h)=>h.type==="attrPresence"&&h.name===c);return{type:"attrPresence",name:c,cont:_f(f)}}function gU(c,f){let R=u$(f,($)=>$.type==="attrValue"&&$.name===c,($)=>`${$.matcher} ${$.modifier||""} ${$.value}`),h=[];for(let $ of Object.values(R)){let H=$.oneSimpleSelector,A=CU(H),G=_f($.items);h.push({type:"matcher",matcher:H.matcher,modifier:H.modifier,value:H.value,predicate:A,cont:G})}return{type:"attrValue",name:c,matchers:h}}function CU(c){if(c.modifier==="i"){let f=c.value.toLowerCase();switch(c.matcher){case"=":return(R)=>f===R.toLowerCase();case"~=":return(R)=>R.toLowerCase().split(/[ \t]+/).includes(f);case"^=":return(R)=>R.toLowerCase().startsWith(f);case"$=":return(R)=>R.toLowerCase().endsWith(f);case"*=":return(R)=>R.toLowerCase().includes(f);case"|=":return(R)=>{let h=R.toLowerCase();return f===h||h.startsWith(f)&&h[f.length]==="-"}}}else{let f=c.value;switch(c.matcher){case"=":return(R)=>f===R;case"~=":return(R)=>R.split(/[ \t]+/).includes(f);case"^=":return(R)=>R.startsWith(f);case"$=":return(R)=>R.endsWith(f);case"*=":return(R)=>R.includes(f);case"|=":return(R)=>f===R||R.startsWith(f)&&R[f.length]==="-"}}}function p6(c,f){let R=u$(f,($)=>$.type==="combinator"&&$.combinator===c,($)=>bc($.left)),h=[];for(let $ of Object.values(R)){let H=_f($.items),A=$.oneSimpleSelector.left;h.push({ast:A,terminal:{type:"popElement",cont:H}})}return{type:"pushElement",combinator:c,cont:_f(h)}}function u$(c,f,R){let h={};while(c.length){let $=l6(c,f,R),H=(U)=>f(U)&&R(U)===$,A=(U)=>U.ast.list.some(H),{matches:G,rest:y}=pU(c,A),F=null;for(let U of G){let N=k6(U,H);if(!F)F=N}if(F==null)throw Error("No simple selector is found.");h[$]={oneSimpleSelector:F,items:G},c=y}return h}function k6(c,f){let R=c.ast.list,h=Array(R.length),$=-1;for(let A=R.length;A-- >0;)if(f(R[A]))h[A]=!0,$=A;if($==-1)throw Error("Couldn't find the required simple selector.");let H=R[$];return c.ast.list=R.filter((A,G)=>!h[G]),H}function l6(c,f,R){let h={};for(let A of c){let G={};for(let y of A.ast.list.filter(f))G[R(y)]=!0;for(let y of Object.keys(G))if(h[y])h[y]++;else h[y]=1}let $="",H=0;for(let A of Object.entries(h))if(A[1]>H)$=A[0],H=A[1];return $}function mU(c,f){let R=[],h=[];for(let $ of c)if(f($))R.push($);else h.push($);return{matches:R,rest:h}}function pU(c,f){let R=[],h=[];for(let $ of c)if(f($))R.push($);else h.push($);return{matches:R,rest:h}}class g${constructor(c){this.f=c}pickAll(c){return this.f(c)}pick1(c,f=!1){let R=this.f(c),h=R.length;if(h===0)return null;if(h===1)return R[0].value;let $=f?sU:iU,H=R[0];for(let A=1;A<h;A++){let G=R[A];if($(H,G))H=G}return H.value}}function sU(c,f){let R=T$(f.specificity,c.specificity);return R>0||R===0&&f.index<c.index}function iU(c,f){let R=T$(f.specificity,c.specificity);return R>0||R===0&&f.index>c.index}function C$(c){return new g$(nf(c))}function nf(c){let f=c.map(kU);return(R,...h)=>f.flatMap(($)=>$(R,...h))}function kU(c){switch(c.type){case"terminal":{let f=[c.valueContainer];return(R,...h)=>f}case"tagName":return lU(c);case"attrValue":return _U(c);case"attrPresence":return dU(c);case"pushElement":return nU(c);case"popElement":return aU(c)}}function lU(c){let f={};for(let R of c.variants)f[R.value]=nf(R.cont);return(R,...h)=>{let $=f[R.name];return $?$(R,...h):[]}}function dU(c){let f=c.name,R=nf(c.cont);return(h,...$)=>Object.prototype.hasOwnProperty.call(h.attribs,f)?R(h,...$):[]}function _U(c){let f=[];for(let h of c.matchers){let $=h.predicate,H=nf(h.cont);f.push((A,G,...y)=>$(A)?H(G,...y):[])}let R=c.name;return(h,...$)=>{let H=h.attribs[R];return H||H===""?f.flatMap((A)=>A(H,h,...$)):[]}}function nU(c){let f=nf(c.cont),R=c.combinator==="+"?d6:oU;return(h,...$)=>{let H=R(h);if(H===null)return[];return f(H,h,...$)}}var d6=(c)=>{let f=c.prev;if(f===null)return null;return Xh(f)?f:d6(f)},oU=(c)=>{let f=c.parent;return f&&Xh(f)?f:null};function aU(c){let f=nf(c.cont);return(R,h,...$)=>f(h,...$)}var Ph=new Uint16Array("\u1D41<\xD5\u0131\u028A\u049D\u057B\u05D0\u0675\u06DE\u07A2\u07D6\u080F\u0A4A\u0A91\u0DA1\u0E6D\u0F09\u0F26\u10CA\u1228\u12E1\u1415\u149D\u14C3\u14DF\u1525\x00\x00\x00\x00\x00\x00\u156B\u16CD\u198D\u1C12\u1DDD\u1F7E\u2060\u21B0\u228D\u23C0\u23FB\u2442\u2824\u2912\u2D08\u2E48\u2FCE\u3016\u32BA\u3639\u37AC\u38FE\u3A28\u3A71\u3AE0\u3B2E\u0800EMabcfglmnoprstu\\bfms\x7F\x84\x8B\x90\x95\x98\xA6\xB3\xB9\xC8\xCFlig\u803B\xC6\u40C6P\u803B&\u4026cute\u803B\xC1\u40C1reve;\u4102\u0100iyx}rc\u803B\xC2\u40C2;\u4410r;\uC000\uD835\uDD04rave\u803B\xC0\u40C0pha;\u4391acr;\u4100d;\u6A53\u0100gp\x9D\xA1on;\u4104f;\uC000\uD835\uDD38plyFunction;\u6061ing\u803B\xC5\u40C5\u0100cs\xBE\xC3r;\uC000\uD835\uDC9Cign;\u6254ilde\u803B\xC3\u40C3ml\u803B\xC4\u40C4\u0400aceforsu\xE5\xFB\xFE\u0117\u011C\u0122\u0127\u012A\u0100cr\xEA\xF2kslash;\u6216\u0176\xF6\xF8;\u6AE7ed;\u6306y;\u4411\u0180crt\u0105\u010B\u0114ause;\u6235noullis;\u612Ca;\u4392r;\uC000\uD835\uDD05pf;\uC000\uD835\uDD39eve;\u42D8c\xF2\u0113mpeq;\u624E\u0700HOacdefhilorsu\u014D\u0151\u0156\u0180\u019E\u01A2\u01B5\u01B7\u01BA\u01DC\u0215\u0273\u0278\u027Ecy;\u4427PY\u803B\xA9\u40A9\u0180cpy\u015D\u0162\u017Aute;\u4106\u0100;i\u0167\u0168\u62D2talDifferentialD;\u6145leys;\u612D\u0200aeio\u0189\u018E\u0194\u0198ron;\u410Cdil\u803B\xC7\u40C7rc;\u4108nint;\u6230ot;\u410A\u0100dn\u01A7\u01ADilla;\u40B8terDot;\u40B7\xF2\u017Fi;\u43A7rcle\u0200DMPT\u01C7\u01CB\u01D1\u01D6ot;\u6299inus;\u6296lus;\u6295imes;\u6297o\u0100cs\u01E2\u01F8kwiseContourIntegral;\u6232eCurly\u0100DQ\u0203\u020FoubleQuote;\u601Duote;\u6019\u0200lnpu\u021E\u0228\u0247\u0255on\u0100;e\u0225\u0226\u6237;\u6A74\u0180git\u022F\u0236\u023Aruent;\u6261nt;\u622FourIntegral;\u622E\u0100fr\u024C\u024E;\u6102oduct;\u6210nterClockwiseContourIntegral;\u6233oss;\u6A2Fcr;\uC000\uD835\uDC9Ep\u0100;C\u0284\u0285\u62D3ap;\u624D\u0580DJSZacefios\u02A0\u02AC\u02B0\u02B4\u02B8\u02CB\u02D7\u02E1\u02E6\u0333\u048D\u0100;o\u0179\u02A5trahd;\u6911cy;\u4402cy;\u4405cy;\u440F\u0180grs\u02BF\u02C4\u02C7ger;\u6021r;\u61A1hv;\u6AE4\u0100ay\u02D0\u02D5ron;\u410E;\u4414l\u0100;t\u02DD\u02DE\u6207a;\u4394r;\uC000\uD835\uDD07\u0100af\u02EB\u0327\u0100cm\u02F0\u0322ritical\u0200ADGT\u0300\u0306\u0316\u031Ccute;\u40B4o\u0174\u030B\u030D;\u42D9bleAcute;\u42DDrave;\u4060ilde;\u42DCond;\u62C4ferentialD;\u6146\u0470\u033D\x00\x00\x00\u0342\u0354\x00\u0405f;\uC000\uD835\uDD3B\u0180;DE\u0348\u0349\u034D\u40A8ot;\u60DCqual;\u6250ble\u0300CDLRUV\u0363\u0372\u0382\u03CF\u03E2\u03F8ontourIntegra\xEC\u0239o\u0274\u0379\x00\x00\u037B\xBB\u0349nArrow;\u61D3\u0100eo\u0387\u03A4ft\u0180ART\u0390\u0396\u03A1rrow;\u61D0ightArrow;\u61D4e\xE5\u02CAng\u0100LR\u03AB\u03C4eft\u0100AR\u03B3\u03B9rrow;\u67F8ightArrow;\u67FAightArrow;\u67F9ight\u0100AT\u03D8\u03DErrow;\u61D2ee;\u62A8p\u0241\u03E9\x00\x00\u03EFrrow;\u61D1ownArrow;\u61D5erticalBar;\u6225n\u0300ABLRTa\u0412\u042A\u0430\u045E\u047F\u037Crrow\u0180;BU\u041D\u041E\u0422\u6193ar;\u6913pArrow;\u61F5reve;\u4311eft\u02D2\u043A\x00\u0446\x00\u0450ightVector;\u6950eeVector;\u695Eector\u0100;B\u0459\u045A\u61BDar;\u6956ight\u01D4\u0467\x00\u0471eeVector;\u695Fector\u0100;B\u047A\u047B\u61C1ar;\u6957ee\u0100;A\u0486\u0487\u62A4rrow;\u61A7\u0100ct\u0492\u0497r;\uC000\uD835\uDC9Frok;\u4110\u0800NTacdfglmopqstux\u04BD\u04C0\u04C4\u04CB\u04DE\u04E2\u04E7\u04EE\u04F5\u0521\u052F\u0536\u0552\u055D\u0560\u0565G;\u414AH\u803B\xD0\u40D0cute\u803B\xC9\u40C9\u0180aiy\u04D2\u04D7\u04DCron;\u411Arc\u803B\xCA\u40CA;\u442Dot;\u4116r;\uC000\uD835\uDD08rave\u803B\xC8\u40C8ement;\u6208\u0100ap\u04FA\u04FEcr;\u4112ty\u0253\u0506\x00\x00\u0512mallSquare;\u65FBerySmallSquare;\u65AB\u0100gp\u0526\u052Aon;\u4118f;\uC000\uD835\uDD3Csilon;\u4395u\u0100ai\u053C\u0549l\u0100;T\u0542\u0543\u6A75ilde;\u6242librium;\u61CC\u0100ci\u0557\u055Ar;\u6130m;\u6A73a;\u4397ml\u803B\xCB\u40CB\u0100ip\u056A\u056Fsts;\u6203onentialE;\u6147\u0280cfios\u0585\u0588\u058D\u05B2\u05CCy;\u4424r;\uC000\uD835\uDD09lled\u0253\u0597\x00\x00\u05A3mallSquare;\u65FCerySmallSquare;\u65AA\u0370\u05BA\x00\u05BF\x00\x00\u05C4f;\uC000\uD835\uDD3DAll;\u6200riertrf;\u6131c\xF2\u05CB\u0600JTabcdfgorst\u05E8\u05EC\u05EF\u05FA\u0600\u0612\u0616\u061B\u061D\u0623\u066C\u0672cy;\u4403\u803B>\u403Emma\u0100;d\u05F7\u05F8\u4393;\u43DCreve;\u411E\u0180eiy\u0607\u060C\u0610dil;\u4122rc;\u411C;\u4413ot;\u4120r;\uC000\uD835\uDD0A;\u62D9pf;\uC000\uD835\uDD3Eeater\u0300EFGLST\u0635\u0644\u064E\u0656\u065B\u0666qual\u0100;L\u063E\u063F\u6265ess;\u62DBullEqual;\u6267reater;\u6AA2ess;\u6277lantEqual;\u6A7Eilde;\u6273cr;\uC000\uD835\uDCA2;\u626B\u0400Aacfiosu\u0685\u068B\u0696\u069B\u069E\u06AA\u06BE\u06CARDcy;\u442A\u0100ct\u0690\u0694ek;\u42C7;\u405Eirc;\u4124r;\u610ClbertSpace;\u610B\u01F0\u06AF\x00\u06B2f;\u610DizontalLine;\u6500\u0100ct\u06C3\u06C5\xF2\u06A9rok;\u4126mp\u0144\u06D0\u06D8ownHum\xF0\u012Fqual;\u624F\u0700EJOacdfgmnostu\u06FA\u06FE\u0703\u0707\u070E\u071A\u071E\u0721\u0728\u0744\u0778\u078B\u078F\u0795cy;\u4415lig;\u4132cy;\u4401cute\u803B\xCD\u40CD\u0100iy\u0713\u0718rc\u803B\xCE\u40CE;\u4418ot;\u4130r;\u6111rave\u803B\xCC\u40CC\u0180;ap\u0720\u072F\u073F\u0100cg\u0734\u0737r;\u412AinaryI;\u6148lie\xF3\u03DD\u01F4\u0749\x00\u0762\u0100;e\u074D\u074E\u622C\u0100gr\u0753\u0758ral;\u622Bsection;\u62C2isible\u0100CT\u076C\u0772omma;\u6063imes;\u6062\u0180gpt\u077F\u0783\u0788on;\u412Ef;\uC000\uD835\uDD40a;\u4399cr;\u6110ilde;\u4128\u01EB\u079A\x00\u079Ecy;\u4406l\u803B\xCF\u40CF\u0280cfosu\u07AC\u07B7\u07BC\u07C2\u07D0\u0100iy\u07B1\u07B5rc;\u4134;\u4419r;\uC000\uD835\uDD0Dpf;\uC000\uD835\uDD41\u01E3\u07C7\x00\u07CCr;\uC000\uD835\uDCA5rcy;\u4408kcy;\u4404\u0380HJacfos\u07E4\u07E8\u07EC\u07F1\u07FD\u0802\u0808cy;\u4425cy;\u440Cppa;\u439A\u0100ey\u07F6\u07FBdil;\u4136;\u441Ar;\uC000\uD835\uDD0Epf;\uC000\uD835\uDD42cr;\uC000\uD835\uDCA6\u0580JTaceflmost\u0825\u0829\u082C\u0850\u0863\u09B3\u09B8\u09C7\u09CD\u0A37\u0A47cy;\u4409\u803B<\u403C\u0280cmnpr\u0837\u083C\u0841\u0844\u084Dute;\u4139bda;\u439Bg;\u67EAlacetrf;\u6112r;\u619E\u0180aey\u0857\u085C\u0861ron;\u413Ddil;\u413B;\u441B\u0100fs\u0868\u0970t\u0500ACDFRTUVar\u087E\u08A9\u08B1\u08E0\u08E6\u08FC\u092F\u095B\u0390\u096A\u0100nr\u0883\u088FgleBracket;\u67E8row\u0180;BR\u0899\u089A\u089E\u6190ar;\u61E4ightArrow;\u61C6eiling;\u6308o\u01F5\u08B7\x00\u08C3bleBracket;\u67E6n\u01D4\u08C8\x00\u08D2eeVector;\u6961ector\u0100;B\u08DB\u08DC\u61C3ar;\u6959loor;\u630Aight\u0100AV\u08EF\u08F5rrow;\u6194ector;\u694E\u0100er\u0901\u0917e\u0180;AV\u0909\u090A\u0910\u62A3rrow;\u61A4ector;\u695Aiangle\u0180;BE\u0924\u0925\u0929\u62B2ar;\u69CFqual;\u62B4p\u0180DTV\u0937\u0942\u094CownVector;\u6951eeVector;\u6960ector\u0100;B\u0956\u0957\u61BFar;\u6958ector\u0100;B\u0965\u0966\u61BCar;\u6952ight\xE1\u039Cs\u0300EFGLST\u097E\u098B\u0995\u099D\u09A2\u09ADqualGreater;\u62DAullEqual;\u6266reater;\u6276ess;\u6AA1lantEqual;\u6A7Dilde;\u6272r;\uC000\uD835\uDD0F\u0100;e\u09BD\u09BE\u62D8ftarrow;\u61DAidot;\u413F\u0180npw\u09D4\u0A16\u0A1Bg\u0200LRlr\u09DE\u09F7\u0A02\u0A10eft\u0100AR\u09E6\u09ECrrow;\u67F5ightArrow;\u67F7ightArrow;\u67F6eft\u0100ar\u03B3\u0A0Aight\xE1\u03BFight\xE1\u03CAf;\uC000\uD835\uDD43er\u0100LR\u0A22\u0A2CeftArrow;\u6199ightArrow;\u6198\u0180cht\u0A3E\u0A40\u0A42\xF2\u084C;\u61B0rok;\u4141;\u626A\u0400acefiosu\u0A5A\u0A5D\u0A60\u0A77\u0A7C\u0A85\u0A8B\u0A8Ep;\u6905y;\u441C\u0100dl\u0A65\u0A6FiumSpace;\u605Flintrf;\u6133r;\uC000\uD835\uDD10nusPlus;\u6213pf;\uC000\uD835\uDD44c\xF2\u0A76;\u439C\u0480Jacefostu\u0AA3\u0AA7\u0AAD\u0AC0\u0B14\u0B19\u0D91\u0D97\u0D9Ecy;\u440Acute;\u4143\u0180aey\u0AB4\u0AB9\u0ABEron;\u4147dil;\u4145;\u441D\u0180gsw\u0AC7\u0AF0\u0B0Eative\u0180MTV\u0AD3\u0ADF\u0AE8ediumSpace;\u600Bhi\u0100cn\u0AE6\u0AD8\xEB\u0AD9eryThi\xEE\u0AD9ted\u0100GL\u0AF8\u0B06reaterGreate\xF2\u0673essLes\xF3\u0A48Line;\u400Ar;\uC000\uD835\uDD11\u0200Bnpt\u0B22\u0B28\u0B37\u0B3Areak;\u6060BreakingSpace;\u40A0f;\u6115\u0680;CDEGHLNPRSTV\u0B55\u0B56\u0B6A\u0B7C\u0BA1\u0BEB\u0C04\u0C5E\u0C84\u0CA6\u0CD8\u0D61\u0D85\u6AEC\u0100ou\u0B5B\u0B64ngruent;\u6262pCap;\u626DoubleVerticalBar;\u6226\u0180lqx\u0B83\u0B8A\u0B9Bement;\u6209ual\u0100;T\u0B92\u0B93\u6260ilde;\uC000\u2242\u0338ists;\u6204reater\u0380;EFGLST\u0BB6\u0BB7\u0BBD\u0BC9\u0BD3\u0BD8\u0BE5\u626Fqual;\u6271ullEqual;\uC000\u2267\u0338reater;\uC000\u226B\u0338ess;\u6279lantEqual;\uC000\u2A7E\u0338ilde;\u6275ump\u0144\u0BF2\u0BFDownHump;\uC000\u224E\u0338qual;\uC000\u224F\u0338e\u0100fs\u0C0A\u0C27tTriangle\u0180;BE\u0C1A\u0C1B\u0C21\u62EAar;\uC000\u29CF\u0338qual;\u62ECs\u0300;EGLST\u0C35\u0C36\u0C3C\u0C44\u0C4B\u0C58\u626Equal;\u6270reater;\u6278ess;\uC000\u226A\u0338lantEqual;\uC000\u2A7D\u0338ilde;\u6274ested\u0100GL\u0C68\u0C79reaterGreater;\uC000\u2AA2\u0338essLess;\uC000\u2AA1\u0338recedes\u0180;ES\u0C92\u0C93\u0C9B\u6280qual;\uC000\u2AAF\u0338lantEqual;\u62E0\u0100ei\u0CAB\u0CB9verseElement;\u620CghtTriangle\u0180;BE\u0CCB\u0CCC\u0CD2\u62EBar;\uC000\u29D0\u0338qual;\u62ED\u0100qu\u0CDD\u0D0CuareSu\u0100bp\u0CE8\u0CF9set\u0100;E\u0CF0\u0CF3\uC000\u228F\u0338qual;\u62E2erset\u0100;E\u0D03\u0D06\uC000\u2290\u0338qual;\u62E3\u0180bcp\u0D13\u0D24\u0D4Eset\u0100;E\u0D1B\u0D1E\uC000\u2282\u20D2qual;\u6288ceeds\u0200;EST\u0D32\u0D33\u0D3B\u0D46\u6281qual;\uC000\u2AB0\u0338lantEqual;\u62E1ilde;\uC000\u227F\u0338erset\u0100;E\u0D58\u0D5B\uC000\u2283\u20D2qual;\u6289ilde\u0200;EFT\u0D6E\u0D6F\u0D75\u0D7F\u6241qual;\u6244ullEqual;\u6247ilde;\u6249erticalBar;\u6224cr;\uC000\uD835\uDCA9ilde\u803B\xD1\u40D1;\u439D\u0700Eacdfgmoprstuv\u0DBD\u0DC2\u0DC9\u0DD5\u0DDB\u0DE0\u0DE7\u0DFC\u0E02\u0E20\u0E22\u0E32\u0E3F\u0E44lig;\u4152cute\u803B\xD3\u40D3\u0100iy\u0DCE\u0DD3rc\u803B\xD4\u40D4;\u441Eblac;\u4150r;\uC000\uD835\uDD12rave\u803B\xD2\u40D2\u0180aei\u0DEE\u0DF2\u0DF6cr;\u414Cga;\u43A9cron;\u439Fpf;\uC000\uD835\uDD46enCurly\u0100DQ\u0E0E\u0E1AoubleQuote;\u601Cuote;\u6018;\u6A54\u0100cl\u0E27\u0E2Cr;\uC000\uD835\uDCAAash\u803B\xD8\u40D8i\u016C\u0E37\u0E3Cde\u803B\xD5\u40D5es;\u6A37ml\u803B\xD6\u40D6er\u0100BP\u0E4B\u0E60\u0100ar\u0E50\u0E53r;\u603Eac\u0100ek\u0E5A\u0E5C;\u63DEet;\u63B4arenthesis;\u63DC\u0480acfhilors\u0E7F\u0E87\u0E8A\u0E8F\u0E92\u0E94\u0E9D\u0EB0\u0EFCrtialD;\u6202y;\u441Fr;\uC000\uD835\uDD13i;\u43A6;\u43A0usMinus;\u40B1\u0100ip\u0EA2\u0EADncareplan\xE5\u069Df;\u6119\u0200;eio\u0EB9\u0EBA\u0EE0\u0EE4\u6ABBcedes\u0200;EST\u0EC8\u0EC9\u0ECF\u0EDA\u627Aqual;\u6AAFlantEqual;\u627Cilde;\u627Eme;\u6033\u0100dp\u0EE9\u0EEEuct;\u620Fortion\u0100;a\u0225\u0EF9l;\u621D\u0100ci\u0F01\u0F06r;\uC000\uD835\uDCAB;\u43A8\u0200Ufos\u0F11\u0F16\u0F1B\u0F1FOT\u803B\"\u4022r;\uC000\uD835\uDD14pf;\u611Acr;\uC000\uD835\uDCAC\u0600BEacefhiorsu\u0F3E\u0F43\u0F47\u0F60\u0F73\u0FA7\u0FAA\u0FAD\u1096\u10A9\u10B4\u10BEarr;\u6910G\u803B\xAE\u40AE\u0180cnr\u0F4E\u0F53\u0F56ute;\u4154g;\u67EBr\u0100;t\u0F5C\u0F5D\u61A0l;\u6916\u0180aey\u0F67\u0F6C\u0F71ron;\u4158dil;\u4156;\u4420\u0100;v\u0F78\u0F79\u611Cerse\u0100EU\u0F82\u0F99\u0100lq\u0F87\u0F8Eement;\u620Builibrium;\u61CBpEquilibrium;\u696Fr\xBB\u0F79o;\u43A1ght\u0400ACDFTUVa\u0FC1\u0FEB\u0FF3\u1022\u1028\u105B\u1087\u03D8\u0100nr\u0FC6\u0FD2gleBracket;\u67E9row\u0180;BL\u0FDC\u0FDD\u0FE1\u6192ar;\u61E5eftArrow;\u61C4eiling;\u6309o\u01F5\u0FF9\x00\u1005bleBracket;\u67E7n\u01D4\u100A\x00\u1014eeVector;\u695Dector\u0100;B\u101D\u101E\u61C2ar;\u6955loor;\u630B\u0100er\u102D\u1043e\u0180;AV\u1035\u1036\u103C\u62A2rrow;\u61A6ector;\u695Biangle\u0180;BE\u1050\u1051\u1055\u62B3ar;\u69D0qual;\u62B5p\u0180DTV\u1063\u106E\u1078ownVector;\u694FeeVector;\u695Cector\u0100;B\u1082\u1083\u61BEar;\u6954ector\u0100;B\u1091\u1092\u61C0ar;\u6953\u0100pu\u109B\u109Ef;\u611DndImplies;\u6970ightarrow;\u61DB\u0100ch\u10B9\u10BCr;\u611B;\u61B1leDelayed;\u69F4\u0680HOacfhimoqstu\u10E4\u10F1\u10F7\u10FD\u1119\u111E\u1151\u1156\u1161\u1167\u11B5\u11BB\u11BF\u0100Cc\u10E9\u10EEHcy;\u4429y;\u4428FTcy;\u442Ccute;\u415A\u0280;aeiy\u1108\u1109\u110E\u1113\u1117\u6ABCron;\u4160dil;\u415Erc;\u415C;\u4421r;\uC000\uD835\uDD16ort\u0200DLRU\u112A\u1134\u113E\u1149ownArrow\xBB\u041EeftArrow\xBB\u089AightArrow\xBB\u0FDDpArrow;\u6191gma;\u43A3allCircle;\u6218pf;\uC000\uD835\uDD4A\u0272\u116D\x00\x00\u1170t;\u621Aare\u0200;ISU\u117B\u117C\u1189\u11AF\u65A1ntersection;\u6293u\u0100bp\u118F\u119Eset\u0100;E\u1197\u1198\u628Fqual;\u6291erset\u0100;E\u11A8\u11A9\u6290qual;\u6292nion;\u6294cr;\uC000\uD835\uDCAEar;\u62C6\u0200bcmp\u11C8\u11DB\u1209\u120B\u0100;s\u11CD\u11CE\u62D0et\u0100;E\u11CD\u11D5qual;\u6286\u0100ch\u11E0\u1205eeds\u0200;EST\u11ED\u11EE\u11F4\u11FF\u627Bqual;\u6AB0lantEqual;\u627Dilde;\u627FTh\xE1\u0F8C;\u6211\u0180;es\u1212\u1213\u1223\u62D1rset\u0100;E\u121C\u121D\u6283qual;\u6287et\xBB\u1213\u0580HRSacfhiors\u123E\u1244\u1249\u1255\u125E\u1271\u1276\u129F\u12C2\u12C8\u12D1ORN\u803B\xDE\u40DEADE;\u6122\u0100Hc\u124E\u1252cy;\u440By;\u4426\u0100bu\u125A\u125C;\u4009;\u43A4\u0180aey\u1265\u126A\u126Fron;\u4164dil;\u4162;\u4422r;\uC000\uD835\uDD17\u0100ei\u127B\u1289\u01F2\u1280\x00\u1287efore;\u6234a;\u4398\u0100cn\u128E\u1298kSpace;\uC000\u205F\u200ASpace;\u6009lde\u0200;EFT\u12AB\u12AC\u12B2\u12BC\u623Cqual;\u6243ullEqual;\u6245ilde;\u6248pf;\uC000\uD835\uDD4BipleDot;\u60DB\u0100ct\u12D6\u12DBr;\uC000\uD835\uDCAFrok;\u4166\u0AE1\u12F7\u130E\u131A\u1326\x00\u132C\u1331\x00\x00\x00\x00\x00\u1338\u133D\u1377\u1385\x00\u13FF\u1404\u140A\u1410\u0100cr\u12FB\u1301ute\u803B\xDA\u40DAr\u0100;o\u1307\u1308\u619Fcir;\u6949r\u01E3\u1313\x00\u1316y;\u440Eve;\u416C\u0100iy\u131E\u1323rc\u803B\xDB\u40DB;\u4423blac;\u4170r;\uC000\uD835\uDD18rave\u803B\xD9\u40D9acr;\u416A\u0100di\u1341\u1369er\u0100BP\u1348\u135D\u0100ar\u134D\u1350r;\u405Fac\u0100ek\u1357\u1359;\u63DFet;\u63B5arenthesis;\u63DDon\u0100;P\u1370\u1371\u62C3lus;\u628E\u0100gp\u137B\u137Fon;\u4172f;\uC000\uD835\uDD4C\u0400ADETadps\u1395\u13AE\u13B8\u13C4\u03E8\u13D2\u13D7\u13F3rrow\u0180;BD\u1150\u13A0\u13A4ar;\u6912ownArrow;\u61C5ownArrow;\u6195quilibrium;\u696Eee\u0100;A\u13CB\u13CC\u62A5rrow;\u61A5own\xE1\u03F3er\u0100LR\u13DE\u13E8eftArrow;\u6196ightArrow;\u6197i\u0100;l\u13F9\u13FA\u43D2on;\u43A5ing;\u416Ecr;\uC000\uD835\uDCB0ilde;\u4168ml\u803B\xDC\u40DC\u0480Dbcdefosv\u1427\u142C\u1430\u1433\u143E\u1485\u148A\u1490\u1496ash;\u62ABar;\u6AEBy;\u4412ash\u0100;l\u143B\u143C\u62A9;\u6AE6\u0100er\u1443\u1445;\u62C1\u0180bty\u144C\u1450\u147Aar;\u6016\u0100;i\u144F\u1455cal\u0200BLST\u1461\u1465\u146A\u1474ar;\u6223ine;\u407Ceparator;\u6758ilde;\u6240ThinSpace;\u600Ar;\uC000\uD835\uDD19pf;\uC000\uD835\uDD4Dcr;\uC000\uD835\uDCB1dash;\u62AA\u0280cefos\u14A7\u14AC\u14B1\u14B6\u14BCirc;\u4174dge;\u62C0r;\uC000\uD835\uDD1Apf;\uC000\uD835\uDD4Ecr;\uC000\uD835\uDCB2\u0200fios\u14CB\u14D0\u14D2\u14D8r;\uC000\uD835\uDD1B;\u439Epf;\uC000\uD835\uDD4Fcr;\uC000\uD835\uDCB3\u0480AIUacfosu\u14F1\u14F5\u14F9\u14FD\u1504\u150F\u1514\u151A\u1520cy;\u442Fcy;\u4407cy;\u442Ecute\u803B\xDD\u40DD\u0100iy\u1509\u150Drc;\u4176;\u442Br;\uC000\uD835\uDD1Cpf;\uC000\uD835\uDD50cr;\uC000\uD835\uDCB4ml;\u4178\u0400Hacdefos\u1535\u1539\u153F\u154B\u154F\u155D\u1560\u1564cy;\u4416cute;\u4179\u0100ay\u1544\u1549ron;\u417D;\u4417ot;\u417B\u01F2\u1554\x00\u155BoWidt\xE8\u0AD9a;\u4396r;\u6128pf;\u6124cr;\uC000\uD835\uDCB5\u0BE1\u1583\u158A\u1590\x00\u15B0\u15B6\u15BF\x00\x00\x00\x00\u15C6\u15DB\u15EB\u165F\u166D\x00\u1695\u169B\u16B2\u16B9\x00\u16BEcute\u803B\xE1\u40E1reve;\u4103\u0300;Ediuy\u159C\u159D\u15A1\u15A3\u15A8\u15AD\u623E;\uC000\u223E\u0333;\u623Frc\u803B\xE2\u40E2te\u80BB\xB4\u0306;\u4430lig\u803B\xE6\u40E6\u0100;r\xB2\u15BA;\uC000\uD835\uDD1Erave\u803B\xE0\u40E0\u0100ep\u15CA\u15D6\u0100fp\u15CF\u15D4sym;\u6135\xE8\u15D3ha;\u43B1\u0100ap\u15DFc\u0100cl\u15E4\u15E7r;\u4101g;\u6A3F\u0264\u15F0\x00\x00\u160A\u0280;adsv\u15FA\u15FB\u15FF\u1601\u1607\u6227nd;\u6A55;\u6A5Clope;\u6A58;\u6A5A\u0380;elmrsz\u1618\u1619\u161B\u161E\u163F\u164F\u1659\u6220;\u69A4e\xBB\u1619sd\u0100;a\u1625\u1626\u6221\u0461\u1630\u1632\u1634\u1636\u1638\u163A\u163C\u163E;\u69A8;\u69A9;\u69AA;\u69AB;\u69AC;\u69AD;\u69AE;\u69AFt\u0100;v\u1645\u1646\u621Fb\u0100;d\u164C\u164D\u62BE;\u699D\u0100pt\u1654\u1657h;\u6222\xBB\xB9arr;\u637C\u0100gp\u1663\u1667on;\u4105f;\uC000\uD835\uDD52\u0380;Eaeiop\u12C1\u167B\u167D\u1682\u1684\u1687\u168A;\u6A70cir;\u6A6F;\u624Ad;\u624Bs;\u4027rox\u0100;e\u12C1\u1692\xF1\u1683ing\u803B\xE5\u40E5\u0180cty\u16A1\u16A6\u16A8r;\uC000\uD835\uDCB6;\u402Amp\u0100;e\u12C1\u16AF\xF1\u0288ilde\u803B\xE3\u40E3ml\u803B\xE4\u40E4\u0100ci\u16C2\u16C8onin\xF4\u0272nt;\u6A11\u0800Nabcdefiklnoprsu\u16ED\u16F1\u1730\u173C\u1743\u1748\u1778\u177D\u17E0\u17E6\u1839\u1850\u170D\u193D\u1948\u1970ot;\u6AED\u0100cr\u16F6\u171Ek\u0200ceps\u1700\u1705\u170D\u1713ong;\u624Cpsilon;\u43F6rime;\u6035im\u0100;e\u171A\u171B\u623Dq;\u62CD\u0176\u1722\u1726ee;\u62BDed\u0100;g\u172C\u172D\u6305e\xBB\u172Drk\u0100;t\u135C\u1737brk;\u63B6\u0100oy\u1701\u1741;\u4431quo;\u601E\u0280cmprt\u1753\u175B\u1761\u1764\u1768aus\u0100;e\u010A\u0109ptyv;\u69B0s\xE9\u170Cno\xF5\u0113\u0180ahw\u176F\u1771\u1773;\u43B2;\u6136een;\u626Cr;\uC000\uD835\uDD1Fg\u0380costuvw\u178D\u179D\u17B3\u17C1\u17D5\u17DB\u17DE\u0180aiu\u1794\u1796\u179A\xF0\u0760rc;\u65EFp\xBB\u1371\u0180dpt\u17A4\u17A8\u17ADot;\u6A00lus;\u6A01imes;\u6A02\u0271\u17B9\x00\x00\u17BEcup;\u6A06ar;\u6605riangle\u0100du\u17CD\u17D2own;\u65BDp;\u65B3plus;\u6A04e\xE5\u1444\xE5\u14ADarow;\u690D\u0180ako\u17ED\u1826\u1835\u0100cn\u17F2\u1823k\u0180lst\u17FA\u05AB\u1802ozenge;\u69EBriangle\u0200;dlr\u1812\u1813\u1818\u181D\u65B4own;\u65BEeft;\u65C2ight;\u65B8k;\u6423\u01B1\u182B\x00\u1833\u01B2\u182F\x00\u1831;\u6592;\u65914;\u6593ck;\u6588\u0100eo\u183E\u184D\u0100;q\u1843\u1846\uC000=\u20E5uiv;\uC000\u2261\u20E5t;\u6310\u0200ptwx\u1859\u185E\u1867\u186Cf;\uC000\uD835\uDD53\u0100;t\u13CB\u1863om\xBB\u13CCtie;\u62C8\u0600DHUVbdhmptuv\u1885\u1896\u18AA\u18BB\u18D7\u18DB\u18EC\u18FF\u1905\u190A\u1910\u1921\u0200LRlr\u188E\u1890\u1892\u1894;\u6557;\u6554;\u6556;\u6553\u0280;DUdu\u18A1\u18A2\u18A4\u18A6\u18A8\u6550;\u6566;\u6569;\u6564;\u6567\u0200LRlr\u18B3\u18B5\u18B7\u18B9;\u655D;\u655A;\u655C;\u6559\u0380;HLRhlr\u18CA\u18CB\u18CD\u18CF\u18D1\u18D3\u18D5\u6551;\u656C;\u6563;\u6560;\u656B;\u6562;\u655Fox;\u69C9\u0200LRlr\u18E4\u18E6\u18E8\u18EA;\u6555;\u6552;\u6510;\u650C\u0280;DUdu\u06BD\u18F7\u18F9\u18FB\u18FD;\u6565;\u6568;\u652C;\u6534inus;\u629Flus;\u629Eimes;\u62A0\u0200LRlr\u1919\u191B\u191D\u191F;\u655B;\u6558;\u6518;\u6514\u0380;HLRhlr\u1930\u1931\u1933\u1935\u1937\u1939\u193B\u6502;\u656A;\u6561;\u655E;\u653C;\u6524;\u651C\u0100ev\u0123\u1942bar\u803B\xA6\u40A6\u0200ceio\u1951\u1956\u195A\u1960r;\uC000\uD835\uDCB7mi;\u604Fm\u0100;e\u171A\u171Cl\u0180;bh\u1968\u1969\u196B\u405C;\u69C5sub;\u67C8\u016C\u1974\u197El\u0100;e\u1979\u197A\u6022t\xBB\u197Ap\u0180;Ee\u012F\u1985\u1987;\u6AAE\u0100;q\u06DC\u06DB\u0CE1\u19A7\x00\u19E8\u1A11\u1A15\u1A32\x00\u1A37\u1A50\x00\x00\u1AB4\x00\x00\u1AC1\x00\x00\u1B21\u1B2E\u1B4D\u1B52\x00\u1BFD\x00\u1C0C\u0180cpr\u19AD\u19B2\u19DDute;\u4107\u0300;abcds\u19BF\u19C0\u19C4\u19CA\u19D5\u19D9\u6229nd;\u6A44rcup;\u6A49\u0100au\u19CF\u19D2p;\u6A4Bp;\u6A47ot;\u6A40;\uC000\u2229\uFE00\u0100eo\u19E2\u19E5t;\u6041\xEE\u0693\u0200aeiu\u19F0\u19FB\u1A01\u1A05\u01F0\u19F5\x00\u19F8s;\u6A4Don;\u410Ddil\u803B\xE7\u40E7rc;\u4109ps\u0100;s\u1A0C\u1A0D\u6A4Cm;\u6A50ot;\u410B\u0180dmn\u1A1B\u1A20\u1A26il\u80BB\xB8\u01ADptyv;\u69B2t\u8100\xA2;e\u1A2D\u1A2E\u40A2r\xE4\u01B2r;\uC000\uD835\uDD20\u0180cei\u1A3D\u1A40\u1A4Dy;\u4447ck\u0100;m\u1A47\u1A48\u6713ark\xBB\u1A48;\u43C7r\u0380;Ecefms\u1A5F\u1A60\u1A62\u1A6B\u1AA4\u1AAA\u1AAE\u65CB;\u69C3\u0180;el\u1A69\u1A6A\u1A6D\u42C6q;\u6257e\u0261\u1A74\x00\x00\u1A88rrow\u0100lr\u1A7C\u1A81eft;\u61BAight;\u61BB\u0280RSacd\u1A92\u1A94\u1A96\u1A9A\u1A9F\xBB\u0F47;\u64C8st;\u629Birc;\u629Aash;\u629Dnint;\u6A10id;\u6AEFcir;\u69C2ubs\u0100;u\u1ABB\u1ABC\u6663it\xBB\u1ABC\u02EC\u1AC7\u1AD4\u1AFA\x00\u1B0Aon\u0100;e\u1ACD\u1ACE\u403A\u0100;q\xC7\xC6\u026D\u1AD9\x00\x00\u1AE2a\u0100;t\u1ADE\u1ADF\u402C;\u4040\u0180;fl\u1AE8\u1AE9\u1AEB\u6201\xEE\u1160e\u0100mx\u1AF1\u1AF6ent\xBB\u1AE9e\xF3\u024D\u01E7\u1AFE\x00\u1B07\u0100;d\u12BB\u1B02ot;\u6A6Dn\xF4\u0246\u0180fry\u1B10\u1B14\u1B17;\uC000\uD835\uDD54o\xE4\u0254\u8100\xA9;s\u0155\u1B1Dr;\u6117\u0100ao\u1B25\u1B29rr;\u61B5ss;\u6717\u0100cu\u1B32\u1B37r;\uC000\uD835\uDCB8\u0100bp\u1B3C\u1B44\u0100;e\u1B41\u1B42\u6ACF;\u6AD1\u0100;e\u1B49\u1B4A\u6AD0;\u6AD2dot;\u62EF\u0380delprvw\u1B60\u1B6C\u1B77\u1B82\u1BAC\u1BD4\u1BF9arr\u0100lr\u1B68\u1B6A;\u6938;\u6935\u0270\u1B72\x00\x00\u1B75r;\u62DEc;\u62DFarr\u0100;p\u1B7F\u1B80\u61B6;\u693D\u0300;bcdos\u1B8F\u1B90\u1B96\u1BA1\u1BA5\u1BA8\u622Arcap;\u6A48\u0100au\u1B9B\u1B9Ep;\u6A46p;\u6A4Aot;\u628Dr;\u6A45;\uC000\u222A\uFE00\u0200alrv\u1BB5\u1BBF\u1BDE\u1BE3rr\u0100;m\u1BBC\u1BBD\u61B7;\u693Cy\u0180evw\u1BC7\u1BD4\u1BD8q\u0270\u1BCE\x00\x00\u1BD2re\xE3\u1B73u\xE3\u1B75ee;\u62CEedge;\u62CFen\u803B\xA4\u40A4earrow\u0100lr\u1BEE\u1BF3eft\xBB\u1B80ight\xBB\u1BBDe\xE4\u1BDD\u0100ci\u1C01\u1C07onin\xF4\u01F7nt;\u6231lcty;\u632D\u0980AHabcdefhijlorstuwz\u1C38\u1C3B\u1C3F\u1C5D\u1C69\u1C75\u1C8A\u1C9E\u1CAC\u1CB7\u1CFB\u1CFF\u1D0D\u1D7B\u1D91\u1DAB\u1DBB\u1DC6\u1DCDr\xF2\u0381ar;\u6965\u0200glrs\u1C48\u1C4D\u1C52\u1C54ger;\u6020eth;\u6138\xF2\u1133h\u0100;v\u1C5A\u1C5B\u6010\xBB\u090A\u016B\u1C61\u1C67arow;\u690Fa\xE3\u0315\u0100ay\u1C6E\u1C73ron;\u410F;\u4434\u0180;ao\u0332\u1C7C\u1C84\u0100gr\u02BF\u1C81r;\u61CAtseq;\u6A77\u0180glm\u1C91\u1C94\u1C98\u803B\xB0\u40B0ta;\u43B4ptyv;\u69B1\u0100ir\u1CA3\u1CA8sht;\u697F;\uC000\uD835\uDD21ar\u0100lr\u1CB3\u1CB5\xBB\u08DC\xBB\u101E\u0280aegsv\u1CC2\u0378\u1CD6\u1CDC\u1CE0m\u0180;os\u0326\u1CCA\u1CD4nd\u0100;s\u0326\u1CD1uit;\u6666amma;\u43DDin;\u62F2\u0180;io\u1CE7\u1CE8\u1CF8\u40F7de\u8100\xF7;o\u1CE7\u1CF0ntimes;\u62C7n\xF8\u1CF7cy;\u4452c\u026F\u1D06\x00\x00\u1D0Arn;\u631Eop;\u630D\u0280lptuw\u1D18\u1D1D\u1D22\u1D49\u1D55lar;\u4024f;\uC000\uD835\uDD55\u0280;emps\u030B\u1D2D\u1D37\u1D3D\u1D42q\u0100;d\u0352\u1D33ot;\u6251inus;\u6238lus;\u6214quare;\u62A1blebarwedg\xE5\xFAn\u0180adh\u112E\u1D5D\u1D67ownarrow\xF3\u1C83arpoon\u0100lr\u1D72\u1D76ef\xF4\u1CB4igh\xF4\u1CB6\u0162\u1D7F\u1D85karo\xF7\u0F42\u026F\u1D8A\x00\x00\u1D8Ern;\u631Fop;\u630C\u0180cot\u1D98\u1DA3\u1DA6\u0100ry\u1D9D\u1DA1;\uC000\uD835\uDCB9;\u4455l;\u69F6rok;\u4111\u0100dr\u1DB0\u1DB4ot;\u62F1i\u0100;f\u1DBA\u1816\u65BF\u0100ah\u1DC0\u1DC3r\xF2\u0429a\xF2\u0FA6angle;\u69A6\u0100ci\u1DD2\u1DD5y;\u445Fgrarr;\u67FF\u0900Dacdefglmnopqrstux\u1E01\u1E09\u1E19\u1E38\u0578\u1E3C\u1E49\u1E61\u1E7E\u1EA5\u1EAF\u1EBD\u1EE1\u1F2A\u1F37\u1F44\u1F4E\u1F5A\u0100Do\u1E06\u1D34o\xF4\u1C89\u0100cs\u1E0E\u1E14ute\u803B\xE9\u40E9ter;\u6A6E\u0200aioy\u1E22\u1E27\u1E31\u1E36ron;\u411Br\u0100;c\u1E2D\u1E2E\u6256\u803B\xEA\u40EAlon;\u6255;\u444Dot;\u4117\u0100Dr\u1E41\u1E45ot;\u6252;\uC000\uD835\uDD22\u0180;rs\u1E50\u1E51\u1E57\u6A9Aave\u803B\xE8\u40E8\u0100;d\u1E5C\u1E5D\u6A96ot;\u6A98\u0200;ils\u1E6A\u1E6B\u1E72\u1E74\u6A99nters;\u63E7;\u6113\u0100;d\u1E79\u1E7A\u6A95ot;\u6A97\u0180aps\u1E85\u1E89\u1E97cr;\u4113ty\u0180;sv\u1E92\u1E93\u1E95\u6205et\xBB\u1E93p\u01001;\u1E9D\u1EA4\u0133\u1EA1\u1EA3;\u6004;\u6005\u6003\u0100gs\u1EAA\u1EAC;\u414Bp;\u6002\u0100gp\u1EB4\u1EB8on;\u4119f;\uC000\uD835\uDD56\u0180als\u1EC4\u1ECE\u1ED2r\u0100;s\u1ECA\u1ECB\u62D5l;\u69E3us;\u6A71i\u0180;lv\u1EDA\u1EDB\u1EDF\u43B5on\xBB\u1EDB;\u43F5\u0200csuv\u1EEA\u1EF3\u1F0B\u1F23\u0100io\u1EEF\u1E31rc\xBB\u1E2E\u0269\u1EF9\x00\x00\u1EFB\xED\u0548ant\u0100gl\u1F02\u1F06tr\xBB\u1E5Dess\xBB\u1E7A\u0180aei\u1F12\u1F16\u1F1Als;\u403Dst;\u625Fv\u0100;D\u0235\u1F20D;\u6A78parsl;\u69E5\u0100Da\u1F2F\u1F33ot;\u6253rr;\u6971\u0180cdi\u1F3E\u1F41\u1EF8r;\u612Fo\xF4\u0352\u0100ah\u1F49\u1F4B;\u43B7\u803B\xF0\u40F0\u0100mr\u1F53\u1F57l\u803B\xEB\u40EBo;\u60AC\u0180cip\u1F61\u1F64\u1F67l;\u4021s\xF4\u056E\u0100eo\u1F6C\u1F74ctatio\xEE\u0559nential\xE5\u0579\u09E1\u1F92\x00\u1F9E\x00\u1FA1\u1FA7\x00\x00\u1FC6\u1FCC\x00\u1FD3\x00\u1FE6\u1FEA\u2000\x00\u2008\u205Allingdotse\xF1\u1E44y;\u4444male;\u6640\u0180ilr\u1FAD\u1FB3\u1FC1lig;\u8000\uFB03\u0269\u1FB9\x00\x00\u1FBDg;\u8000\uFB00ig;\u8000\uFB04;\uC000\uD835\uDD23lig;\u8000\uFB01lig;\uC000fj\u0180alt\u1FD9\u1FDC\u1FE1t;\u666Dig;\u8000\uFB02ns;\u65B1of;\u4192\u01F0\u1FEE\x00\u1FF3f;\uC000\uD835\uDD57\u0100ak\u05BF\u1FF7\u0100;v\u1FFC\u1FFD\u62D4;\u6AD9artint;\u6A0D\u0100ao\u200C\u2055\u0100cs\u2011\u2052\u03B1\u201A\u2030\u2038\u2045\u2048\x00\u2050\u03B2\u2022\u2025\u2027\u202A\u202C\x00\u202E\u803B\xBD\u40BD;\u6153\u803B\xBC\u40BC;\u6155;\u6159;\u615B\u01B3\u2034\x00\u2036;\u6154;\u6156\u02B4\u203E\u2041\x00\x00\u2043\u803B\xBE\u40BE;\u6157;\u615C5;\u6158\u01B6\u204C\x00\u204E;\u615A;\u615D8;\u615El;\u6044wn;\u6322cr;\uC000\uD835\uDCBB\u0880Eabcdefgijlnorstv\u2082\u2089\u209F\u20A5\u20B0\u20B4\u20F0\u20F5\u20FA\u20FF\u2103\u2112\u2138\u0317\u213E\u2152\u219E\u0100;l\u064D\u2087;\u6A8C\u0180cmp\u2090\u2095\u209Dute;\u41F5ma\u0100;d\u209C\u1CDA\u43B3;\u6A86reve;\u411F\u0100iy\u20AA\u20AErc;\u411D;\u4433ot;\u4121\u0200;lqs\u063E\u0642\u20BD\u20C9\u0180;qs\u063E\u064C\u20C4lan\xF4\u0665\u0200;cdl\u0665\u20D2\u20D5\u20E5c;\u6AA9ot\u0100;o\u20DC\u20DD\u6A80\u0100;l\u20E2\u20E3\u6A82;\u6A84\u0100;e\u20EA\u20ED\uC000\u22DB\uFE00s;\u6A94r;\uC000\uD835\uDD24\u0100;g\u0673\u061Bmel;\u6137cy;\u4453\u0200;Eaj\u065A\u210C\u210E\u2110;\u6A92;\u6AA5;\u6AA4\u0200Eaes\u211B\u211D\u2129\u2134;\u6269p\u0100;p\u2123\u2124\u6A8Arox\xBB\u2124\u0100;q\u212E\u212F\u6A88\u0100;q\u212E\u211Bim;\u62E7pf;\uC000\uD835\uDD58\u0100ci\u2143\u2146r;\u610Am\u0180;el\u066B\u214E\u2150;\u6A8E;\u6A90\u8300>;cdlqr\u05EE\u2160\u216A\u216E\u2173\u2179\u0100ci\u2165\u2167;\u6AA7r;\u6A7Aot;\u62D7Par;\u6995uest;\u6A7C\u0280adels\u2184\u216A\u2190\u0656\u219B\u01F0\u2189\x00\u218Epro\xF8\u209Er;\u6978q\u0100lq\u063F\u2196les\xF3\u2088i\xED\u066B\u0100en\u21A3\u21ADrtneqq;\uC000\u2269\uFE00\xC5\u21AA\u0500Aabcefkosy\u21C4\u21C7\u21F1\u21F5\u21FA\u2218\u221D\u222F\u2268\u227Dr\xF2\u03A0\u0200ilmr\u21D0\u21D4\u21D7\u21DBrs\xF0\u1484f\xBB\u2024il\xF4\u06A9\u0100dr\u21E0\u21E4cy;\u444A\u0180;cw\u08F4\u21EB\u21EFir;\u6948;\u61ADar;\u610Firc;\u4125\u0180alr\u2201\u220E\u2213rts\u0100;u\u2209\u220A\u6665it\xBB\u220Alip;\u6026con;\u62B9r;\uC000\uD835\uDD25s\u0100ew\u2223\u2229arow;\u6925arow;\u6926\u0280amopr\u223A\u223E\u2243\u225E\u2263rr;\u61FFtht;\u623Bk\u0100lr\u2249\u2253eftarrow;\u61A9ightarrow;\u61AAf;\uC000\uD835\uDD59bar;\u6015\u0180clt\u226F\u2274\u2278r;\uC000\uD835\uDCBDas\xE8\u21F4rok;\u4127\u0100bp\u2282\u2287ull;\u6043hen\xBB\u1C5B\u0AE1\u22A3\x00\u22AA\x00\u22B8\u22C5\u22CE\x00\u22D5\u22F3\x00\x00\u22F8\u2322\u2367\u2362\u237F\x00\u2386\u23AA\u23B4cute\u803B\xED\u40ED\u0180;iy\u0771\u22B0\u22B5rc\u803B\xEE\u40EE;\u4438\u0100cx\u22BC\u22BFy;\u4435cl\u803B\xA1\u40A1\u0100fr\u039F\u22C9;\uC000\uD835\uDD26rave\u803B\xEC\u40EC\u0200;ino\u073E\u22DD\u22E9\u22EE\u0100in\u22E2\u22E6nt;\u6A0Ct;\u622Dfin;\u69DCta;\u6129lig;\u4133\u0180aop\u22FE\u231A\u231D\u0180cgt\u2305\u2308\u2317r;\u412B\u0180elp\u071F\u230F\u2313in\xE5\u078Ear\xF4\u0720h;\u4131f;\u62B7ed;\u41B5\u0280;cfot\u04F4\u232C\u2331\u233D\u2341are;\u6105in\u0100;t\u2338\u2339\u621Eie;\u69DDdo\xF4\u2319\u0280;celp\u0757\u234C\u2350\u235B\u2361al;\u62BA\u0100gr\u2355\u2359er\xF3\u1563\xE3\u234Darhk;\u6A17rod;\u6A3C\u0200cgpt\u236F\u2372\u2376\u237By;\u4451on;\u412Ff;\uC000\uD835\uDD5Aa;\u43B9uest\u803B\xBF\u40BF\u0100ci\u238A\u238Fr;\uC000\uD835\uDCBEn\u0280;Edsv\u04F4\u239B\u239D\u23A1\u04F3;\u62F9ot;\u62F5\u0100;v\u23A6\u23A7\u62F4;\u62F3\u0100;i\u0777\u23AElde;\u4129\u01EB\u23B8\x00\u23BCcy;\u4456l\u803B\xEF\u40EF\u0300cfmosu\u23CC\u23D7\u23DC\u23E1\u23E7\u23F5\u0100iy\u23D1\u23D5rc;\u4135;\u4439r;\uC000\uD835\uDD27ath;\u4237pf;\uC000\uD835\uDD5B\u01E3\u23EC\x00\u23F1r;\uC000\uD835\uDCBFrcy;\u4458kcy;\u4454\u0400acfghjos\u240B\u2416\u2422\u2427\u242D\u2431\u2435\u243Bppa\u0100;v\u2413\u2414\u43BA;\u43F0\u0100ey\u241B\u2420dil;\u4137;\u443Ar;\uC000\uD835\uDD28reen;\u4138cy;\u4445cy;\u445Cpf;\uC000\uD835\uDD5Ccr;\uC000\uD835\uDCC0\u0B80ABEHabcdefghjlmnoprstuv\u2470\u2481\u2486\u248D\u2491\u250E\u253D\u255A\u2580\u264E\u265E\u2665\u2679\u267D\u269A\u26B2\u26D8\u275D\u2768\u278B\u27C0\u2801\u2812\u0180art\u2477\u247A\u247Cr\xF2\u09C6\xF2\u0395ail;\u691Barr;\u690E\u0100;g\u0994\u248B;\u6A8Bar;\u6962\u0963\u24A5\x00\u24AA\x00\u24B1\x00\x00\x00\x00\x00\u24B5\u24BA\x00\u24C6\u24C8\u24CD\x00\u24F9ute;\u413Amptyv;\u69B4ra\xEE\u084Cbda;\u43BBg\u0180;dl\u088E\u24C1\u24C3;\u6991\xE5\u088E;\u6A85uo\u803B\xAB\u40ABr\u0400;bfhlpst\u0899\u24DE\u24E6\u24E9\u24EB\u24EE\u24F1\u24F5\u0100;f\u089D\u24E3s;\u691Fs;\u691D\xEB\u2252p;\u61ABl;\u6939im;\u6973l;\u61A2\u0180;ae\u24FF\u2500\u2504\u6AABil;\u6919\u0100;s\u2509\u250A\u6AAD;\uC000\u2AAD\uFE00\u0180abr\u2515\u2519\u251Drr;\u690Crk;\u6772\u0100ak\u2522\u252Cc\u0100ek\u2528\u252A;\u407B;\u405B\u0100es\u2531\u2533;\u698Bl\u0100du\u2539\u253B;\u698F;\u698D\u0200aeuy\u2546\u254B\u2556\u2558ron;\u413E\u0100di\u2550\u2554il;\u413C\xEC\u08B0\xE2\u2529;\u443B\u0200cqrs\u2563\u2566\u256D\u257Da;\u6936uo\u0100;r\u0E19\u1746\u0100du\u2572\u2577har;\u6967shar;\u694Bh;\u61B2\u0280;fgqs\u258B\u258C\u0989\u25F3\u25FF\u6264t\u0280ahlrt\u2598\u25A4\u25B7\u25C2\u25E8rrow\u0100;t\u0899\u25A1a\xE9\u24F6arpoon\u0100du\u25AF\u25B4own\xBB\u045Ap\xBB\u0966eftarrows;\u61C7ight\u0180ahs\u25CD\u25D6\u25DErrow\u0100;s\u08F4\u08A7arpoon\xF3\u0F98quigarro\xF7\u21F0hreetimes;\u62CB\u0180;qs\u258B\u0993\u25FAlan\xF4\u09AC\u0280;cdgs\u09AC\u260A\u260D\u261D\u2628c;\u6AA8ot\u0100;o\u2614\u2615\u6A7F\u0100;r\u261A\u261B\u6A81;\u6A83\u0100;e\u2622\u2625\uC000\u22DA\uFE00s;\u6A93\u0280adegs\u2633\u2639\u263D\u2649\u264Bppro\xF8\u24C6ot;\u62D6q\u0100gq\u2643\u2645\xF4\u0989gt\xF2\u248C\xF4\u099Bi\xED\u09B2\u0180ilr\u2655\u08E1\u265Asht;\u697C;\uC000\uD835\uDD29\u0100;E\u099C\u2663;\u6A91\u0161\u2669\u2676r\u0100du\u25B2\u266E\u0100;l\u0965\u2673;\u696Alk;\u6584cy;\u4459\u0280;acht\u0A48\u2688\u268B\u2691\u2696r\xF2\u25C1orne\xF2\u1D08ard;\u696Bri;\u65FA\u0100io\u269F\u26A4dot;\u4140ust\u0100;a\u26AC\u26AD\u63B0che\xBB\u26AD\u0200Eaes\u26BB\u26BD\u26C9\u26D4;\u6268p\u0100;p\u26C3\u26C4\u6A89rox\xBB\u26C4\u0100;q\u26CE\u26CF\u6A87\u0100;q\u26CE\u26BBim;\u62E6\u0400abnoptwz\u26E9\u26F4\u26F7\u271A\u272F\u2741\u2747\u2750\u0100nr\u26EE\u26F1g;\u67ECr;\u61FDr\xEB\u08C1g\u0180lmr\u26FF\u270D\u2714eft\u0100ar\u09E6\u2707ight\xE1\u09F2apsto;\u67FCight\xE1\u09FDparrow\u0100lr\u2725\u2729ef\xF4\u24EDight;\u61AC\u0180afl\u2736\u2739\u273Dr;\u6985;\uC000\uD835\uDD5Dus;\u6A2Dimes;\u6A34\u0161\u274B\u274Fst;\u6217\xE1\u134E\u0180;ef\u2757\u2758\u1800\u65CAnge\xBB\u2758ar\u0100;l\u2764\u2765\u4028t;\u6993\u0280achmt\u2773\u2776\u277C\u2785\u2787r\xF2\u08A8orne\xF2\u1D8Car\u0100;d\u0F98\u2783;\u696D;\u600Eri;\u62BF\u0300achiqt\u2798\u279D\u0A40\u27A2\u27AE\u27BBquo;\u6039r;\uC000\uD835\uDCC1m\u0180;eg\u09B2\u27AA\u27AC;\u6A8D;\u6A8F\u0100bu\u252A\u27B3o\u0100;r\u0E1F\u27B9;\u601Arok;\u4142\u8400<;cdhilqr\u082B\u27D2\u2639\u27DC\u27E0\u27E5\u27EA\u27F0\u0100ci\u27D7\u27D9;\u6AA6r;\u6A79re\xE5\u25F2mes;\u62C9arr;\u6976uest;\u6A7B\u0100Pi\u27F5\u27F9ar;\u6996\u0180;ef\u2800\u092D\u181B\u65C3r\u0100du\u2807\u280Dshar;\u694Ahar;\u6966\u0100en\u2817\u2821rtneqq;\uC000\u2268\uFE00\xC5\u281E\u0700Dacdefhilnopsu\u2840\u2845\u2882\u288E\u2893\u28A0\u28A5\u28A8\u28DA\u28E2\u28E4\u0A83\u28F3\u2902Dot;\u623A\u0200clpr\u284E\u2852\u2863\u287Dr\u803B\xAF\u40AF\u0100et\u2857\u2859;\u6642\u0100;e\u285E\u285F\u6720se\xBB\u285F\u0100;s\u103B\u2868to\u0200;dlu\u103B\u2873\u2877\u287Bow\xEE\u048Cef\xF4\u090F\xF0\u13D1ker;\u65AE\u0100oy\u2887\u288Cmma;\u6A29;\u443Cash;\u6014asuredangle\xBB\u1626r;\uC000\uD835\uDD2Ao;\u6127\u0180cdn\u28AF\u28B4\u28C9ro\u803B\xB5\u40B5\u0200;acd\u1464\u28BD\u28C0\u28C4s\xF4\u16A7ir;\u6AF0ot\u80BB\xB7\u01B5us\u0180;bd\u28D2\u1903\u28D3\u6212\u0100;u\u1D3C\u28D8;\u6A2A\u0163\u28DE\u28E1p;\u6ADB\xF2\u2212\xF0\u0A81\u0100dp\u28E9\u28EEels;\u62A7f;\uC000\uD835\uDD5E\u0100ct\u28F8\u28FDr;\uC000\uD835\uDCC2pos\xBB\u159D\u0180;lm\u2909\u290A\u290D\u43BCtimap;\u62B8\u0C00GLRVabcdefghijlmoprstuvw\u2942\u2953\u297E\u2989\u2998\u29DA\u29E9\u2A15\u2A1A\u2A58\u2A5D\u2A83\u2A95\u2AA4\u2AA8\u2B04\u2B07\u2B44\u2B7F\u2BAE\u2C34\u2C67\u2C7C\u2CE9\u0100gt\u2947\u294B;\uC000\u22D9\u0338\u0100;v\u2950\u0BCF\uC000\u226B\u20D2\u0180elt\u295A\u2972\u2976ft\u0100ar\u2961\u2967rrow;\u61CDightarrow;\u61CE;\uC000\u22D8\u0338\u0100;v\u297B\u0C47\uC000\u226A\u20D2ightarrow;\u61CF\u0100Dd\u298E\u2993ash;\u62AFash;\u62AE\u0280bcnpt\u29A3\u29A7\u29AC\u29B1\u29CCla\xBB\u02DEute;\u4144g;\uC000\u2220\u20D2\u0280;Eiop\u0D84\u29BC\u29C0\u29C5\u29C8;\uC000\u2A70\u0338d;\uC000\u224B\u0338s;\u4149ro\xF8\u0D84ur\u0100;a\u29D3\u29D4\u666El\u0100;s\u29D3\u0B38\u01F3\u29DF\x00\u29E3p\u80BB\xA0\u0B37mp\u0100;e\u0BF9\u0C00\u0280aeouy\u29F4\u29FE\u2A03\u2A10\u2A13\u01F0\u29F9\x00\u29FB;\u6A43on;\u4148dil;\u4146ng\u0100;d\u0D7E\u2A0Aot;\uC000\u2A6D\u0338p;\u6A42;\u443Dash;\u6013\u0380;Aadqsx\u0B92\u2A29\u2A2D\u2A3B\u2A41\u2A45\u2A50rr;\u61D7r\u0100hr\u2A33\u2A36k;\u6924\u0100;o\u13F2\u13F0ot;\uC000\u2250\u0338ui\xF6\u0B63\u0100ei\u2A4A\u2A4Ear;\u6928\xED\u0B98ist\u0100;s\u0BA0\u0B9Fr;\uC000\uD835\uDD2B\u0200Eest\u0BC5\u2A66\u2A79\u2A7C\u0180;qs\u0BBC\u2A6D\u0BE1\u0180;qs\u0BBC\u0BC5\u2A74lan\xF4\u0BE2i\xED\u0BEA\u0100;r\u0BB6\u2A81\xBB\u0BB7\u0180Aap\u2A8A\u2A8D\u2A91r\xF2\u2971rr;\u61AEar;\u6AF2\u0180;sv\u0F8D\u2A9C\u0F8C\u0100;d\u2AA1\u2AA2\u62FC;\u62FAcy;\u445A\u0380AEadest\u2AB7\u2ABA\u2ABE\u2AC2\u2AC5\u2AF6\u2AF9r\xF2\u2966;\uC000\u2266\u0338rr;\u619Ar;\u6025\u0200;fqs\u0C3B\u2ACE\u2AE3\u2AEFt\u0100ar\u2AD4\u2AD9rro\xF7\u2AC1ightarro\xF7\u2A90\u0180;qs\u0C3B\u2ABA\u2AEAlan\xF4\u0C55\u0100;s\u0C55\u2AF4\xBB\u0C36i\xED\u0C5D\u0100;r\u0C35\u2AFEi\u0100;e\u0C1A\u0C25i\xE4\u0D90\u0100pt\u2B0C\u2B11f;\uC000\uD835\uDD5F\u8180\xAC;in\u2B19\u2B1A\u2B36\u40ACn\u0200;Edv\u0B89\u2B24\u2B28\u2B2E;\uC000\u22F9\u0338ot;\uC000\u22F5\u0338\u01E1\u0B89\u2B33\u2B35;\u62F7;\u62F6i\u0100;v\u0CB8\u2B3C\u01E1\u0CB8\u2B41\u2B43;\u62FE;\u62FD\u0180aor\u2B4B\u2B63\u2B69r\u0200;ast\u0B7B\u2B55\u2B5A\u2B5Flle\xEC\u0B7Bl;\uC000\u2AFD\u20E5;\uC000\u2202\u0338lint;\u6A14\u0180;ce\u0C92\u2B70\u2B73u\xE5\u0CA5\u0100;c\u0C98\u2B78\u0100;e\u0C92\u2B7D\xF1\u0C98\u0200Aait\u2B88\u2B8B\u2B9D\u2BA7r\xF2\u2988rr\u0180;cw\u2B94\u2B95\u2B99\u619B;\uC000\u2933\u0338;\uC000\u219D\u0338ghtarrow\xBB\u2B95ri\u0100;e\u0CCB\u0CD6\u0380chimpqu\u2BBD\u2BCD\u2BD9\u2B04\u0B78\u2BE4\u2BEF\u0200;cer\u0D32\u2BC6\u0D37\u2BC9u\xE5\u0D45;\uC000\uD835\uDCC3ort\u026D\u2B05\x00\x00\u2BD6ar\xE1\u2B56m\u0100;e\u0D6E\u2BDF\u0100;q\u0D74\u0D73su\u0100bp\u2BEB\u2BED\xE5\u0CF8\xE5\u0D0B\u0180bcp\u2BF6\u2C11\u2C19\u0200;Ees\u2BFF\u2C00\u0D22\u2C04\u6284;\uC000\u2AC5\u0338et\u0100;e\u0D1B\u2C0Bq\u0100;q\u0D23\u2C00c\u0100;e\u0D32\u2C17\xF1\u0D38\u0200;Ees\u2C22\u2C23\u0D5F\u2C27\u6285;\uC000\u2AC6\u0338et\u0100;e\u0D58\u2C2Eq\u0100;q\u0D60\u2C23\u0200gilr\u2C3D\u2C3F\u2C45\u2C47\xEC\u0BD7lde\u803B\xF1\u40F1\xE7\u0C43iangle\u0100lr\u2C52\u2C5Ceft\u0100;e\u0C1A\u2C5A\xF1\u0C26ight\u0100;e\u0CCB\u2C65\xF1\u0CD7\u0100;m\u2C6C\u2C6D\u43BD\u0180;es\u2C74\u2C75\u2C79\u4023ro;\u6116p;\u6007\u0480DHadgilrs\u2C8F\u2C94\u2C99\u2C9E\u2CA3\u2CB0\u2CB6\u2CD3\u2CE3ash;\u62ADarr;\u6904p;\uC000\u224D\u20D2ash;\u62AC\u0100et\u2CA8\u2CAC;\uC000\u2265\u20D2;\uC000>\u20D2nfin;\u69DE\u0180Aet\u2CBD\u2CC1\u2CC5rr;\u6902;\uC000\u2264\u20D2\u0100;r\u2CCA\u2CCD\uC000<\u20D2ie;\uC000\u22B4\u20D2\u0100At\u2CD8\u2CDCrr;\u6903rie;\uC000\u22B5\u20D2im;\uC000\u223C\u20D2\u0180Aan\u2CF0\u2CF4\u2D02rr;\u61D6r\u0100hr\u2CFA\u2CFDk;\u6923\u0100;o\u13E7\u13E5ear;\u6927\u1253\u1A95\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\u2D2D\x00\u2D38\u2D48\u2D60\u2D65\u2D72\u2D84\u1B07\x00\x00\u2D8D\u2DAB\x00\u2DC8\u2DCE\x00\u2DDC\u2E19\u2E2B\u2E3E\u2E43\u0100cs\u2D31\u1A97ute\u803B\xF3\u40F3\u0100iy\u2D3C\u2D45r\u0100;c\u1A9E\u2D42\u803B\xF4\u40F4;\u443E\u0280abios\u1AA0\u2D52\u2D57\u01C8\u2D5Alac;\u4151v;\u6A38old;\u69BClig;\u4153\u0100cr\u2D69\u2D6Dir;\u69BF;\uC000\uD835\uDD2C\u036F\u2D79\x00\x00\u2D7C\x00\u2D82n;\u42DBave\u803B\xF2\u40F2;\u69C1\u0100bm\u2D88\u0DF4ar;\u69B5\u0200acit\u2D95\u2D98\u2DA5\u2DA8r\xF2\u1A80\u0100ir\u2D9D\u2DA0r;\u69BEoss;\u69BBn\xE5\u0E52;\u69C0\u0180aei\u2DB1\u2DB5\u2DB9cr;\u414Dga;\u43C9\u0180cdn\u2DC0\u2DC5\u01CDron;\u43BF;\u69B6pf;\uC000\uD835\uDD60\u0180ael\u2DD4\u2DD7\u01D2r;\u69B7rp;\u69B9\u0380;adiosv\u2DEA\u2DEB\u2DEE\u2E08\u2E0D\u2E10\u2E16\u6228r\xF2\u1A86\u0200;efm\u2DF7\u2DF8\u2E02\u2E05\u6A5Dr\u0100;o\u2DFE\u2DFF\u6134f\xBB\u2DFF\u803B\xAA\u40AA\u803B\xBA\u40BAgof;\u62B6r;\u6A56lope;\u6A57;\u6A5B\u0180clo\u2E1F\u2E21\u2E27\xF2\u2E01ash\u803B\xF8\u40F8l;\u6298i\u016C\u2E2F\u2E34de\u803B\xF5\u40F5es\u0100;a\u01DB\u2E3As;\u6A36ml\u803B\xF6\u40F6bar;\u633D\u0AE1\u2E5E\x00\u2E7D\x00\u2E80\u2E9D\x00\u2EA2\u2EB9\x00\x00\u2ECB\u0E9C\x00\u2F13\x00\x00\u2F2B\u2FBC\x00\u2FC8r\u0200;ast\u0403\u2E67\u2E72\u0E85\u8100\xB6;l\u2E6D\u2E6E\u40B6le\xEC\u0403\u0269\u2E78\x00\x00\u2E7Bm;\u6AF3;\u6AFDy;\u443Fr\u0280cimpt\u2E8B\u2E8F\u2E93\u1865\u2E97nt;\u4025od;\u402Eil;\u6030enk;\u6031r;\uC000\uD835\uDD2D\u0180imo\u2EA8\u2EB0\u2EB4\u0100;v\u2EAD\u2EAE\u43C6;\u43D5ma\xF4\u0A76ne;\u660E\u0180;tv\u2EBF\u2EC0\u2EC8\u43C0chfork\xBB\u1FFD;\u43D6\u0100au\u2ECF\u2EDFn\u0100ck\u2ED5\u2EDDk\u0100;h\u21F4\u2EDB;\u610E\xF6\u21F4s\u0480;abcdemst\u2EF3\u2EF4\u1908\u2EF9\u2EFD\u2F04\u2F06\u2F0A\u2F0E\u402Bcir;\u6A23ir;\u6A22\u0100ou\u1D40\u2F02;\u6A25;\u6A72n\u80BB\xB1\u0E9Dim;\u6A26wo;\u6A27\u0180ipu\u2F19\u2F20\u2F25ntint;\u6A15f;\uC000\uD835\uDD61nd\u803B\xA3\u40A3\u0500;Eaceinosu\u0EC8\u2F3F\u2F41\u2F44\u2F47\u2F81\u2F89\u2F92\u2F7E\u2FB6;\u6AB3p;\u6AB7u\xE5\u0ED9\u0100;c\u0ECE\u2F4C\u0300;acens\u0EC8\u2F59\u2F5F\u2F66\u2F68\u2F7Eppro\xF8\u2F43urlye\xF1\u0ED9\xF1\u0ECE\u0180aes\u2F6F\u2F76\u2F7Approx;\u6AB9qq;\u6AB5im;\u62E8i\xED\u0EDFme\u0100;s\u2F88\u0EAE\u6032\u0180Eas\u2F78\u2F90\u2F7A\xF0\u2F75\u0180dfp\u0EEC\u2F99\u2FAF\u0180als\u2FA0\u2FA5\u2FAAlar;\u632Eine;\u6312urf;\u6313\u0100;t\u0EFB\u2FB4\xEF\u0EFBrel;\u62B0\u0100ci\u2FC0\u2FC5r;\uC000\uD835\uDCC5;\u43C8ncsp;\u6008\u0300fiopsu\u2FDA\u22E2\u2FDF\u2FE5\u2FEB\u2FF1r;\uC000\uD835\uDD2Epf;\uC000\uD835\uDD62rime;\u6057cr;\uC000\uD835\uDCC6\u0180aeo\u2FF8\u3009\u3013t\u0100ei\u2FFE\u3005rnion\xF3\u06B0nt;\u6A16st\u0100;e\u3010\u3011\u403F\xF1\u1F19\xF4\u0F14\u0A80ABHabcdefhilmnoprstux\u3040\u3051\u3055\u3059\u30E0\u310E\u312B\u3147\u3162\u3172\u318E\u3206\u3215\u3224\u3229\u3258\u326E\u3272\u3290\u32B0\u32B7\u0180art\u3047\u304A\u304Cr\xF2\u10B3\xF2\u03DDail;\u691Car\xF2\u1C65ar;\u6964\u0380cdenqrt\u3068\u3075\u3078\u307F\u308F\u3094\u30CC\u0100eu\u306D\u3071;\uC000\u223D\u0331te;\u4155i\xE3\u116Emptyv;\u69B3g\u0200;del\u0FD1\u3089\u308B\u308D;\u6992;\u69A5\xE5\u0FD1uo\u803B\xBB\u40BBr\u0580;abcfhlpstw\u0FDC\u30AC\u30AF\u30B7\u30B9\u30BC\u30BE\u30C0\u30C3\u30C7\u30CAp;\u6975\u0100;f\u0FE0\u30B4s;\u6920;\u6933s;\u691E\xEB\u225D\xF0\u272El;\u6945im;\u6974l;\u61A3;\u619D\u0100ai\u30D1\u30D5il;\u691Ao\u0100;n\u30DB\u30DC\u6236al\xF3\u0F1E\u0180abr\u30E7\u30EA\u30EEr\xF2\u17E5rk;\u6773\u0100ak\u30F3\u30FDc\u0100ek\u30F9\u30FB;\u407D;\u405D\u0100es\u3102\u3104;\u698Cl\u0100du\u310A\u310C;\u698E;\u6990\u0200aeuy\u3117\u311C\u3127\u3129ron;\u4159\u0100di\u3121\u3125il;\u4157\xEC\u0FF2\xE2\u30FA;\u4440\u0200clqs\u3134\u3137\u313D\u3144a;\u6937dhar;\u6969uo\u0100;r\u020E\u020Dh;\u61B3\u0180acg\u314E\u315F\u0F44l\u0200;ips\u0F78\u3158\u315B\u109Cn\xE5\u10BBar\xF4\u0FA9t;\u65AD\u0180ilr\u3169\u1023\u316Esht;\u697D;\uC000\uD835\uDD2F\u0100ao\u3177\u3186r\u0100du\u317D\u317F\xBB\u047B\u0100;l\u1091\u3184;\u696C\u0100;v\u318B\u318C\u43C1;\u43F1\u0180gns\u3195\u31F9\u31FCht\u0300ahlrst\u31A4\u31B0\u31C2\u31D8\u31E4\u31EErrow\u0100;t\u0FDC\u31ADa\xE9\u30C8arpoon\u0100du\u31BB\u31BFow\xEE\u317Ep\xBB\u1092eft\u0100ah\u31CA\u31D0rrow\xF3\u0FEAarpoon\xF3\u0551ightarrows;\u61C9quigarro\xF7\u30CBhreetimes;\u62CCg;\u42DAingdotse\xF1\u1F32\u0180ahm\u320D\u3210\u3213r\xF2\u0FEAa\xF2\u0551;\u600Foust\u0100;a\u321E\u321F\u63B1che\xBB\u321Fmid;\u6AEE\u0200abpt\u3232\u323D\u3240\u3252\u0100nr\u3237\u323Ag;\u67EDr;\u61FEr\xEB\u1003\u0180afl\u3247\u324A\u324Er;\u6986;\uC000\uD835\uDD63us;\u6A2Eimes;\u6A35\u0100ap\u325D\u3267r\u0100;g\u3263\u3264\u4029t;\u6994olint;\u6A12ar\xF2\u31E3\u0200achq\u327B\u3280\u10BC\u3285quo;\u603Ar;\uC000\uD835\uDCC7\u0100bu\u30FB\u328Ao\u0100;r\u0214\u0213\u0180hir\u3297\u329B\u32A0re\xE5\u31F8mes;\u62CAi\u0200;efl\u32AA\u1059\u1821\u32AB\u65B9tri;\u69CEluhar;\u6968;\u611E\u0D61\u32D5\u32DB\u32DF\u332C\u3338\u3371\x00\u337A\u33A4\x00\x00\u33EC\u33F0\x00\u3428\u3448\u345A\u34AD\u34B1\u34CA\u34F1\x00\u3616\x00\x00\u3633cute;\u415Bqu\xEF\u27BA\u0500;Eaceinpsy\u11ED\u32F3\u32F5\u32FF\u3302\u330B\u330F\u331F\u3326\u3329;\u6AB4\u01F0\u32FA\x00\u32FC;\u6AB8on;\u4161u\xE5\u11FE\u0100;d\u11F3\u3307il;\u415Frc;\u415D\u0180Eas\u3316\u3318\u331B;\u6AB6p;\u6ABAim;\u62E9olint;\u6A13i\xED\u1204;\u4441ot\u0180;be\u3334\u1D47\u3335\u62C5;\u6A66\u0380Aacmstx\u3346\u334A\u3357\u335B\u335E\u3363\u336Drr;\u61D8r\u0100hr\u3350\u3352\xEB\u2228\u0100;o\u0A36\u0A34t\u803B\xA7\u40A7i;\u403Bwar;\u6929m\u0100in\u3369\xF0nu\xF3\xF1t;\u6736r\u0100;o\u3376\u2055\uC000\uD835\uDD30\u0200acoy\u3382\u3386\u3391\u33A0rp;\u666F\u0100hy\u338B\u338Fcy;\u4449;\u4448rt\u026D\u3399\x00\x00\u339Ci\xE4\u1464ara\xEC\u2E6F\u803B\xAD\u40AD\u0100gm\u33A8\u33B4ma\u0180;fv\u33B1\u33B2\u33B2\u43C3;\u43C2\u0400;deglnpr\u12AB\u33C5\u33C9\u33CE\u33D6\u33DE\u33E1\u33E6ot;\u6A6A\u0100;q\u12B1\u12B0\u0100;E\u33D3\u33D4\u6A9E;\u6AA0\u0100;E\u33DB\u33DC\u6A9D;\u6A9Fe;\u6246lus;\u6A24arr;\u6972ar\xF2\u113D\u0200aeit\u33F8\u3408\u340F\u3417\u0100ls\u33FD\u3404lsetm\xE9\u336Ahp;\u6A33parsl;\u69E4\u0100dl\u1463\u3414e;\u6323\u0100;e\u341C\u341D\u6AAA\u0100;s\u3422\u3423\u6AAC;\uC000\u2AAC\uFE00\u0180flp\u342E\u3433\u3442tcy;\u444C\u0100;b\u3438\u3439\u402F\u0100;a\u343E\u343F\u69C4r;\u633Ff;\uC000\uD835\uDD64a\u0100dr\u344D\u0402es\u0100;u\u3454\u3455\u6660it\xBB\u3455\u0180csu\u3460\u3479\u349F\u0100au\u3465\u346Fp\u0100;s\u1188\u346B;\uC000\u2293\uFE00p\u0100;s\u11B4\u3475;\uC000\u2294\uFE00u\u0100bp\u347F\u348F\u0180;es\u1197\u119C\u3486et\u0100;e\u1197\u348D\xF1\u119D\u0180;es\u11A8\u11AD\u3496et\u0100;e\u11A8\u349D\xF1\u11AE\u0180;af\u117B\u34A6\u05B0r\u0165\u34AB\u05B1\xBB\u117Car\xF2\u1148\u0200cemt\u34B9\u34BE\u34C2\u34C5r;\uC000\uD835\uDCC8tm\xEE\xF1i\xEC\u3415ar\xE6\u11BE\u0100ar\u34CE\u34D5r\u0100;f\u34D4\u17BF\u6606\u0100an\u34DA\u34EDight\u0100ep\u34E3\u34EApsilo\xEE\u1EE0h\xE9\u2EAFs\xBB\u2852\u0280bcmnp\u34FB\u355E\u1209\u358B\u358E\u0480;Edemnprs\u350E\u350F\u3511\u3515\u351E\u3523\u352C\u3531\u3536\u6282;\u6AC5ot;\u6ABD\u0100;d\u11DA\u351Aot;\u6AC3ult;\u6AC1\u0100Ee\u3528\u352A;\u6ACB;\u628Alus;\u6ABFarr;\u6979\u0180eiu\u353D\u3552\u3555t\u0180;en\u350E\u3545\u354Bq\u0100;q\u11DA\u350Feq\u0100;q\u352B\u3528m;\u6AC7\u0100bp\u355A\u355C;\u6AD5;\u6AD3c\u0300;acens\u11ED\u356C\u3572\u3579\u357B\u3326ppro\xF8\u32FAurlye\xF1\u11FE\xF1\u11F3\u0180aes\u3582\u3588\u331Bppro\xF8\u331Aq\xF1\u3317g;\u666A\u0680123;Edehlmnps\u35A9\u35AC\u35AF\u121C\u35B2\u35B4\u35C0\u35C9\u35D5\u35DA\u35DF\u35E8\u35ED\u803B\xB9\u40B9\u803B\xB2\u40B2\u803B\xB3\u40B3;\u6AC6\u0100os\u35B9\u35BCt;\u6ABEub;\u6AD8\u0100;d\u1222\u35C5ot;\u6AC4s\u0100ou\u35CF\u35D2l;\u67C9b;\u6AD7arr;\u697Bult;\u6AC2\u0100Ee\u35E4\u35E6;\u6ACC;\u628Blus;\u6AC0\u0180eiu\u35F4\u3609\u360Ct\u0180;en\u121C\u35FC\u3602q\u0100;q\u1222\u35B2eq\u0100;q\u35E7\u35E4m;\u6AC8\u0100bp\u3611\u3613;\u6AD4;\u6AD6\u0180Aan\u361C\u3620\u362Drr;\u61D9r\u0100hr\u3626\u3628\xEB\u222E\u0100;o\u0A2B\u0A29war;\u692Alig\u803B\xDF\u40DF\u0BE1\u3651\u365D\u3660\u12CE\u3673\u3679\x00\u367E\u36C2\x00\x00\x00\x00\x00\u36DB\u3703\x00\u3709\u376C\x00\x00\x00\u3787\u0272\u3656\x00\x00\u365Bget;\u6316;\u43C4r\xEB\u0E5F\u0180aey\u3666\u366B\u3670ron;\u4165dil;\u4163;\u4442lrec;\u6315r;\uC000\uD835\uDD31\u0200eiko\u3686\u369D\u36B5\u36BC\u01F2\u368B\x00\u3691e\u01004f\u1284\u1281a\u0180;sv\u3698\u3699\u369B\u43B8ym;\u43D1\u0100cn\u36A2\u36B2k\u0100as\u36A8\u36AEppro\xF8\u12C1im\xBB\u12ACs\xF0\u129E\u0100as\u36BA\u36AE\xF0\u12C1rn\u803B\xFE\u40FE\u01EC\u031F\u36C6\u22E7es\u8180\xD7;bd\u36CF\u36D0\u36D8\u40D7\u0100;a\u190F\u36D5r;\u6A31;\u6A30\u0180eps\u36E1\u36E3\u3700\xE1\u2A4D\u0200;bcf\u0486\u36EC\u36F0\u36F4ot;\u6336ir;\u6AF1\u0100;o\u36F9\u36FC\uC000\uD835\uDD65rk;\u6ADA\xE1\u3362rime;\u6034\u0180aip\u370F\u3712\u3764d\xE5\u1248\u0380adempst\u3721\u374D\u3740\u3751\u3757\u375C\u375Fngle\u0280;dlqr\u3730\u3731\u3736\u3740\u3742\u65B5own\xBB\u1DBBeft\u0100;e\u2800\u373E\xF1\u092E;\u625Cight\u0100;e\u32AA\u374B\xF1\u105Aot;\u65ECinus;\u6A3Alus;\u6A39b;\u69CDime;\u6A3Bezium;\u63E2\u0180cht\u3772\u377D\u3781\u0100ry\u3777\u377B;\uC000\uD835\uDCC9;\u4446cy;\u445Brok;\u4167\u0100io\u378B\u378Ex\xF4\u1777head\u0100lr\u3797\u37A0eftarro\xF7\u084Fightarrow\xBB\u0F5D\u0900AHabcdfghlmoprstuw\u37D0\u37D3\u37D7\u37E4\u37F0\u37FC\u380E\u381C\u3823\u3834\u3851\u385D\u386B\u38A9\u38CC\u38D2\u38EA\u38F6r\xF2\u03EDar;\u6963\u0100cr\u37DC\u37E2ute\u803B\xFA\u40FA\xF2\u1150r\u01E3\u37EA\x00\u37EDy;\u445Eve;\u416D\u0100iy\u37F5\u37FArc\u803B\xFB\u40FB;\u4443\u0180abh\u3803\u3806\u380Br\xF2\u13ADlac;\u4171a\xF2\u13C3\u0100ir\u3813\u3818sht;\u697E;\uC000\uD835\uDD32rave\u803B\xF9\u40F9\u0161\u3827\u3831r\u0100lr\u382C\u382E\xBB\u0957\xBB\u1083lk;\u6580\u0100ct\u3839\u384D\u026F\u383F\x00\x00\u384Arn\u0100;e\u3845\u3846\u631Cr\xBB\u3846op;\u630Fri;\u65F8\u0100al\u3856\u385Acr;\u416B\u80BB\xA8\u0349\u0100gp\u3862\u3866on;\u4173f;\uC000\uD835\uDD66\u0300adhlsu\u114B\u3878\u387D\u1372\u3891\u38A0own\xE1\u13B3arpoon\u0100lr\u3888\u388Cef\xF4\u382Digh\xF4\u382Fi\u0180;hl\u3899\u389A\u389C\u43C5\xBB\u13FAon\xBB\u389Aparrows;\u61C8\u0180cit\u38B0\u38C4\u38C8\u026F\u38B6\x00\x00\u38C1rn\u0100;e\u38BC\u38BD\u631Dr\xBB\u38BDop;\u630Eng;\u416Fri;\u65F9cr;\uC000\uD835\uDCCA\u0180dir\u38D9\u38DD\u38E2ot;\u62F0lde;\u4169i\u0100;f\u3730\u38E8\xBB\u1813\u0100am\u38EF\u38F2r\xF2\u38A8l\u803B\xFC\u40FCangle;\u69A7\u0780ABDacdeflnoprsz\u391C\u391F\u3929\u392D\u39B5\u39B8\u39BD\u39DF\u39E4\u39E8\u39F3\u39F9\u39FD\u3A01\u3A20r\xF2\u03F7ar\u0100;v\u3926\u3927\u6AE8;\u6AE9as\xE8\u03E1\u0100nr\u3932\u3937grt;\u699C\u0380eknprst\u34E3\u3946\u394B\u3952\u395D\u3964\u3996app\xE1\u2415othin\xE7\u1E96\u0180hir\u34EB\u2EC8\u3959op\xF4\u2FB5\u0100;h\u13B7\u3962\xEF\u318D\u0100iu\u3969\u396Dgm\xE1\u33B3\u0100bp\u3972\u3984setneq\u0100;q\u397D\u3980\uC000\u228A\uFE00;\uC000\u2ACB\uFE00setneq\u0100;q\u398F\u3992\uC000\u228B\uFE00;\uC000\u2ACC\uFE00\u0100hr\u399B\u399Fet\xE1\u369Ciangle\u0100lr\u39AA\u39AFeft\xBB\u0925ight\xBB\u1051y;\u4432ash\xBB\u1036\u0180elr\u39C4\u39D2\u39D7\u0180;be\u2DEA\u39CB\u39CFar;\u62BBq;\u625Alip;\u62EE\u0100bt\u39DC\u1468a\xF2\u1469r;\uC000\uD835\uDD33tr\xE9\u39AEsu\u0100bp\u39EF\u39F1\xBB\u0D1C\xBB\u0D59pf;\uC000\uD835\uDD67ro\xF0\u0EFBtr\xE9\u39B4\u0100cu\u3A06\u3A0Br;\uC000\uD835\uDCCB\u0100bp\u3A10\u3A18n\u0100Ee\u3980\u3A16\xBB\u397En\u0100Ee\u3992\u3A1E\xBB\u3990igzag;\u699A\u0380cefoprs\u3A36\u3A3B\u3A56\u3A5B\u3A54\u3A61\u3A6Airc;\u4175\u0100di\u3A40\u3A51\u0100bg\u3A45\u3A49ar;\u6A5Fe\u0100;q\u15FA\u3A4F;\u6259erp;\u6118r;\uC000\uD835\uDD34pf;\uC000\uD835\uDD68\u0100;e\u1479\u3A66at\xE8\u1479cr;\uC000\uD835\uDCCC\u0AE3\u178E\u3A87\x00\u3A8B\x00\u3A90\u3A9B\x00\x00\u3A9D\u3AA8\u3AAB\u3AAF\x00\x00\u3AC3\u3ACE\x00\u3AD8\u17DC\u17DFtr\xE9\u17D1r;\uC000\uD835\uDD35\u0100Aa\u3A94\u3A97r\xF2\u03C3r\xF2\u09F6;\u43BE\u0100Aa\u3AA1\u3AA4r\xF2\u03B8r\xF2\u09EBa\xF0\u2713is;\u62FB\u0180dpt\u17A4\u3AB5\u3ABE\u0100fl\u3ABA\u17A9;\uC000\uD835\uDD69im\xE5\u17B2\u0100Aa\u3AC7\u3ACAr\xF2\u03CEr\xF2\u0A01\u0100cq\u3AD2\u17B8r;\uC000\uD835\uDCCD\u0100pt\u17D6\u3ADCr\xE9\u17D4\u0400acefiosu\u3AF0\u3AFD\u3B08\u3B0C\u3B11\u3B15\u3B1B\u3B21c\u0100uy\u3AF6\u3AFBte\u803B\xFD\u40FD;\u444F\u0100iy\u3B02\u3B06rc;\u4177;\u444Bn\u803B\xA5\u40A5r;\uC000\uD835\uDD36cy;\u4457pf;\uC000\uD835\uDD6Acr;\uC000\uD835\uDCCE\u0100cm\u3B26\u3B29y;\u444El\u803B\xFF\u40FF\u0500acdefhiosw\u3B42\u3B48\u3B54\u3B58\u3B64\u3B69\u3B6D\u3B74\u3B7A\u3B80cute;\u417A\u0100ay\u3B4D\u3B52ron;\u417E;\u4437ot;\u417C\u0100et\u3B5D\u3B61tr\xE6\u155Fa;\u43B6r;\uC000\uD835\uDD37cy;\u4436grarr;\u61DDpf;\uC000\uD835\uDD6Bcr;\uC000\uD835\uDCCF\u0100jn\u3B85\u3B87;\u600Dj;\u600C".split("").map((c)=>c.charCodeAt(0)));var Kh=new Uint16Array("\u0200aglq\t\x15\x18\x1B\u026D\x0F\x00\x00\x12p;\u4026os;\u4027t;\u403Et;\u403Cuot;\u4022".split("").map((c)=>c.charCodeAt(0)));var m$,tU=new Map([[0,65533],[128,8364],[130,8218],[131,402],[132,8222],[133,8230],[134,8224],[135,8225],[136,710],[137,8240],[138,352],[139,8249],[140,338],[142,381],[145,8216],[146,8217],[147,8220],[148,8221],[149,8226],[150,8211],[151,8212],[152,732],[153,8482],[154,353],[155,8250],[156,339],[158,382],[159,376]]),of=(m$=String.fromCodePoint)!==null&&m$!==void 0?m$:function(c){let f="";if(c>65535)c-=65536,f+=String.fromCharCode(c>>>10&1023|55296),c=56320|c&1023;return f+=String.fromCharCode(c),f};function pR(c){var f;if(c>=55296&&c<=57343||c>1114111)return 65533;return(f=tU.get(c))!==null&&f!==void 0?f:c}var fc;(function(c){c[c.NUM=35]="NUM",c[c.SEMI=59]="SEMI",c[c.EQUALS=61]="EQUALS",c[c.ZERO=48]="ZERO",c[c.NINE=57]="NINE",c[c.LOWER_A=97]="LOWER_A",c[c.LOWER_F=102]="LOWER_F",c[c.LOWER_X=120]="LOWER_X",c[c.LOWER_Z=122]="LOWER_Z",c[c.UPPER_A=65]="UPPER_A",c[c.UPPER_F=70]="UPPER_F",c[c.UPPER_Z=90]="UPPER_Z"})(fc||(fc={}));var rU=32,Mc;(function(c){c[c.VALUE_LENGTH=49152]="VALUE_LENGTH",c[c.BRANCH_LENGTH=16256]="BRANCH_LENGTH",c[c.JUMP_TABLE=127]="JUMP_TABLE"})(Mc||(Mc={}));function p$(c){return c>=fc.ZERO&&c<=fc.NINE}function eU(c){return c>=fc.UPPER_A&&c<=fc.UPPER_F||c>=fc.LOWER_A&&c<=fc.LOWER_F}function cY(c){return c>=fc.UPPER_A&&c<=fc.UPPER_Z||c>=fc.LOWER_A&&c<=fc.LOWER_Z||p$(c)}function fY(c){return c===fc.EQUALS||cY(c)}var cc;(function(c){c[c.EntityStart=0]="EntityStart",c[c.NumericStart=1]="NumericStart",c[c.NumericDecimal=2]="NumericDecimal",c[c.NumericHex=3]="NumericHex",c[c.NamedEntity=4]="NamedEntity"})(cc||(cc={}));var zf;(function(c){c[c.Legacy=0]="Legacy",c[c.Strict=1]="Strict",c[c.Attribute=2]="Attribute"})(zf||(zf={}));class _6{constructor(c,f,R){this.decodeTree=c,this.emitCodePoint=f,this.errors=R,this.state=cc.EntityStart,this.consumed=1,this.result=0,this.treeIndex=0,this.excess=1,this.decodeMode=zf.Strict}startEntity(c){this.decodeMode=c,this.state=cc.EntityStart,this.result=0,this.treeIndex=0,this.excess=1,this.consumed=1}write(c,f){switch(this.state){case cc.EntityStart:{if(c.charCodeAt(f)===fc.NUM)return this.state=cc.NumericStart,this.consumed+=1,this.stateNumericStart(c,f+1);return this.state=cc.NamedEntity,this.stateNamedEntity(c,f)}case cc.NumericStart:return this.stateNumericStart(c,f);case cc.NumericDecimal:return this.stateNumericDecimal(c,f);case cc.NumericHex:return this.stateNumericHex(c,f);case cc.NamedEntity:return this.stateNamedEntity(c,f)}}stateNumericStart(c,f){if(f>=c.length)return-1;if((c.charCodeAt(f)|rU)===fc.LOWER_X)return this.state=cc.NumericHex,this.consumed+=1,this.stateNumericHex(c,f+1);return this.state=cc.NumericDecimal,this.stateNumericDecimal(c,f)}addToNumericResult(c,f,R,h){if(f!==R){let $=R-f;this.result=this.result*Math.pow(h,$)+parseInt(c.substr(f,$),h),this.consumed+=$}}stateNumericHex(c,f){let R=f;while(f<c.length){let h=c.charCodeAt(f);if(p$(h)||eU(h))f+=1;else return this.addToNumericResult(c,R,f,16),this.emitNumericEntity(h,3)}return this.addToNumericResult(c,R,f,16),-1}stateNumericDecimal(c,f){let R=f;while(f<c.length){let h=c.charCodeAt(f);if(p$(h))f+=1;else return this.addToNumericResult(c,R,f,10),this.emitNumericEntity(h,2)}return this.addToNumericResult(c,R,f,10),-1}emitNumericEntity(c,f){var R;if(this.consumed<=f)return(R=this.errors)===null||R===void 0||R.absenceOfDigitsInNumericCharacterReference(this.consumed),0;if(c===fc.SEMI)this.consumed+=1;else if(this.decodeMode===zf.Strict)return 0;if(this.emitCodePoint(pR(this.result),this.consumed),this.errors){if(c!==fc.SEMI)this.errors.missingSemicolonAfterCharacterReference();this.errors.validateNumericCharacterReference(this.result)}return this.consumed}stateNamedEntity(c,f){let{decodeTree:R}=this,h=R[this.treeIndex],$=(h&Mc.VALUE_LENGTH)>>14;for(;f<c.length;f++,this.excess++){let H=c.charCodeAt(f);if(this.treeIndex=s$(R,h,this.treeIndex+Math.max(1,$),H),this.treeIndex<0)return this.result===0||this.decodeMode===zf.Attribute&&($===0||fY(H))?0:this.emitNotTerminatedNamedEntity();if(h=R[this.treeIndex],$=(h&Mc.VALUE_LENGTH)>>14,$!==0){if(H===fc.SEMI)return this.emitNamedEntityData(this.treeIndex,$,this.consumed+this.excess);if(this.decodeMode!==zf.Strict)this.result=this.treeIndex,this.consumed+=this.excess,this.excess=0}}return-1}emitNotTerminatedNamedEntity(){var c;let{result:f,decodeTree:R}=this,h=(R[f]&Mc.VALUE_LENGTH)>>14;return this.emitNamedEntityData(f,h,this.consumed),(c=this.errors)===null||c===void 0||c.missingSemicolonAfterCharacterReference(),this.consumed}emitNamedEntityData(c,f,R){let{decodeTree:h}=this;if(this.emitCodePoint(f===1?h[c]&~Mc.VALUE_LENGTH:h[c+1],R),f===3)this.emitCodePoint(h[c+2],R);return R}end(){var c;switch(this.state){case cc.NamedEntity:return this.result!==0&&(this.decodeMode!==zf.Attribute||this.result===this.treeIndex)?this.emitNotTerminatedNamedEntity():0;case cc.NumericDecimal:return this.emitNumericEntity(0,2);case cc.NumericHex:return this.emitNumericEntity(0,3);case cc.NumericStart:return(c=this.errors)===null||c===void 0||c.absenceOfDigitsInNumericCharacterReference(this.consumed),0;case cc.EntityStart:return 0}}}function n6(c){let f="",R=new _6(c,(h)=>f+=of(h));return function($,H){let A=0,G=0;while((G=$.indexOf("&",G))>=0){f+=$.slice(A,G),R.startEntity(H);let F=R.write($,G+1);if(F<0){A=G+R.end();break}A=G+F,G=F===0?A+1:A}let y=f+$.slice(A);return f="",y}}function s$(c,f,R,h){let $=(f&Mc.BRANCH_LENGTH)>>7,H=f&Mc.JUMP_TABLE;if($===0)return H!==0&&h===H?R:-1;if(H){let y=h-H;return y<0||y>=$?-1:c[R+y]-1}let A=R,G=A+$-1;while(A<=G){let y=A+G>>>1,F=c[y];if(F<h)A=y+1;else if(F>h)G=y-1;else return c[y+$]}return-1}var rM=n6(Ph),eM=n6(Kh);var J;(function(c){c[c.Tab=9]="Tab",c[c.NewLine=10]="NewLine",c[c.FormFeed=12]="FormFeed",c[c.CarriageReturn=13]="CarriageReturn",c[c.Space=32]="Space",c[c.ExclamationMark=33]="ExclamationMark",c[c.Number=35]="Number",c[c.Amp=38]="Amp",c[c.SingleQuote=39]="SingleQuote",c[c.DoubleQuote=34]="DoubleQuote",c[c.Dash=45]="Dash",c[c.Slash=47]="Slash",c[c.Zero=48]="Zero",c[c.Nine=57]="Nine",c[c.Semi=59]="Semi",c[c.Lt=60]="Lt",c[c.Eq=61]="Eq",c[c.Gt=62]="Gt",c[c.Questionmark=63]="Questionmark",c[c.UpperA=65]="UpperA",c[c.LowerA=97]="LowerA",c[c.UpperF=70]="UpperF",c[c.LowerF=102]="LowerF",c[c.UpperZ=90]="UpperZ",c[c.LowerZ=122]="LowerZ",c[c.LowerX=120]="LowerX",c[c.OpeningSquareBracket=91]="OpeningSquareBracket"})(J||(J={}));var v;(function(c){c[c.Text=1]="Text",c[c.BeforeTagName=2]="BeforeTagName",c[c.InTagName=3]="InTagName",c[c.InSelfClosingTag=4]="InSelfClosingTag",c[c.BeforeClosingTagName=5]="BeforeClosingTagName",c[c.InClosingTagName=6]="InClosingTagName",c[c.AfterClosingTagName=7]="AfterClosingTagName",c[c.BeforeAttributeName=8]="BeforeAttributeName",c[c.InAttributeName=9]="InAttributeName",c[c.AfterAttributeName=10]="AfterAttributeName",c[c.BeforeAttributeValue=11]="BeforeAttributeValue",c[c.InAttributeValueDq=12]="InAttributeValueDq",c[c.InAttributeValueSq=13]="InAttributeValueSq",c[c.InAttributeValueNq=14]="InAttributeValueNq",c[c.BeforeDeclaration=15]="BeforeDeclaration",c[c.InDeclaration=16]="InDeclaration",c[c.InProcessingInstruction=17]="InProcessingInstruction",c[c.BeforeComment=18]="BeforeComment",c[c.CDATASequence=19]="CDATASequence",c[c.InSpecialComment=20]="InSpecialComment",c[c.InCommentLike=21]="InCommentLike",c[c.BeforeSpecialS=22]="BeforeSpecialS",c[c.SpecialStartSequence=23]="SpecialStartSequence",c[c.InSpecialTag=24]="InSpecialTag",c[c.BeforeEntity=25]="BeforeEntity",c[c.BeforeNumericEntity=26]="BeforeNumericEntity",c[c.InNamedEntity=27]="InNamedEntity",c[c.InNumericEntity=28]="InNumericEntity",c[c.InHexEntity=29]="InHexEntity"})(v||(v={}));function lc(c){return c===J.Space||c===J.NewLine||c===J.Tab||c===J.FormFeed||c===J.CarriageReturn}function Oh(c){return c===J.Slash||c===J.Gt||lc(c)}function o6(c){return c>=J.Zero&&c<=J.Nine}function RY(c){return c>=J.LowerA&&c<=J.LowerZ||c>=J.UpperA&&c<=J.UpperZ}function hY(c){return c>=J.UpperA&&c<=J.UpperF||c>=J.LowerA&&c<=J.LowerF}var qc;(function(c){c[c.NoValue=0]="NoValue",c[c.Unquoted=1]="Unquoted",c[c.Single=2]="Single",c[c.Double=3]="Double"})(qc||(qc={}));var Zc={Cdata:new Uint8Array([67,68,65,84,65,91]),CdataEnd:new Uint8Array([93,93,62]),CommentEnd:new Uint8Array([45,45,62]),ScriptEnd:new Uint8Array([60,47,115,99,114,105,112,116]),StyleEnd:new Uint8Array([60,47,115,116,121,108,101]),TitleEnd:new Uint8Array([60,47,116,105,116,108,101])};class bh{constructor({xmlMode:c=!1,decodeEntities:f=!0},R){this.cbs=R,this.state=v.Text,this.buffer="",this.sectionStart=0,this.index=0,this.baseState=v.Text,this.isSpecial=!1,this.running=!0,this.offset=0,this.currentSequence=void 0,this.sequenceIndex=0,this.trieIndex=0,this.trieCurrent=0,this.entityResult=0,this.entityExcess=0,this.xmlMode=c,this.decodeEntities=f,this.entityTrie=c?Kh:Ph}reset(){this.state=v.Text,this.buffer="",this.sectionStart=0,this.index=0,this.baseState=v.Text,this.currentSequence=void 0,this.running=!0,this.offset=0}write(c){this.offset+=this.buffer.length,this.buffer=c,this.parse()}end(){if(this.running)this.finish()}pause(){this.running=!1}resume(){if(this.running=!0,this.index<this.buffer.length+this.offset)this.parse()}getIndex(){return this.index}getSectionStart(){return this.sectionStart}stateText(c){if(c===J.Lt||!this.decodeEntities&&this.fastForwardTo(J.Lt)){if(this.index>this.sectionStart)this.cbs.ontext(this.sectionStart,this.index);this.state=v.BeforeTagName,this.sectionStart=this.index}else if(this.decodeEntities&&c===J.Amp)this.state=v.BeforeEntity}stateSpecialStartSequence(c){let f=this.sequenceIndex===this.currentSequence.length;if(!(f?Oh(c):(c|32)===this.currentSequence[this.sequenceIndex]))this.isSpecial=!1;else if(!f){this.sequenceIndex++;return}this.sequenceIndex=0,this.state=v.InTagName,this.stateInTagName(c)}stateInSpecialTag(c){if(this.sequenceIndex===this.currentSequence.length){if(c===J.Gt||lc(c)){let f=this.index-this.currentSequence.length;if(this.sectionStart<f){let R=this.index;this.index=f,this.cbs.ontext(this.sectionStart,f),this.index=R}this.isSpecial=!1,this.sectionStart=f+2,this.stateInClosingTagName(c);return}this.sequenceIndex=0}if((c|32)===this.currentSequence[this.sequenceIndex])this.sequenceIndex+=1;else if(this.sequenceIndex===0){if(this.currentSequence===Zc.TitleEnd){if(this.decodeEntities&&c===J.Amp)this.state=v.BeforeEntity}else if(this.fastForwardTo(J.Lt))this.sequenceIndex=1}else this.sequenceIndex=Number(c===J.Lt)}stateCDATASequence(c){if(c===Zc.Cdata[this.sequenceIndex]){if(++this.sequenceIndex===Zc.Cdata.length)this.state=v.InCommentLike,this.currentSequence=Zc.CdataEnd,this.sequenceIndex=0,this.sectionStart=this.index+1}else this.sequenceIndex=0,this.state=v.InDeclaration,this.stateInDeclaration(c)}fastForwardTo(c){while(++this.index<this.buffer.length+this.offset)if(this.buffer.charCodeAt(this.index-this.offset)===c)return!0;return this.index=this.buffer.length+this.offset-1,!1}stateInCommentLike(c){if(c===this.currentSequence[this.sequenceIndex]){if(++this.sequenceIndex===this.currentSequence.length){if(this.currentSequence===Zc.CdataEnd)this.cbs.oncdata(this.sectionStart,this.index,2);else this.cbs.oncomment(this.sectionStart,this.index,2);this.sequenceIndex=0,this.sectionStart=this.index+1,this.state=v.Text}}else if(this.sequenceIndex===0){if(this.fastForwardTo(this.currentSequence[0]))this.sequenceIndex=1}else if(c!==this.currentSequence[this.sequenceIndex-1])this.sequenceIndex=0}isTagStartChar(c){return this.xmlMode?!Oh(c):RY(c)}startSpecial(c,f){this.isSpecial=!0,this.currentSequence=c,this.sequenceIndex=f,this.state=v.SpecialStartSequence}stateBeforeTagName(c){if(c===J.ExclamationMark)this.state=v.BeforeDeclaration,this.sectionStart=this.index+1;else if(c===J.Questionmark)this.state=v.InProcessingInstruction,this.sectionStart=this.index+1;else if(this.isTagStartChar(c)){let f=c|32;if(this.sectionStart=this.index,!this.xmlMode&&f===Zc.TitleEnd[2])this.startSpecial(Zc.TitleEnd,3);else this.state=!this.xmlMode&&f===Zc.ScriptEnd[2]?v.BeforeSpecialS:v.InTagName}else if(c===J.Slash)this.state=v.BeforeClosingTagName;else this.state=v.Text,this.stateText(c)}stateInTagName(c){if(Oh(c))this.cbs.onopentagname(this.sectionStart,this.index),this.sectionStart=-1,this.state=v.BeforeAttributeName,this.stateBeforeAttributeName(c)}stateBeforeClosingTagName(c){if(lc(c));else if(c===J.Gt)this.state=v.Text;else this.state=this.isTagStartChar(c)?v.InClosingTagName:v.InSpecialComment,this.sectionStart=this.index}stateInClosingTagName(c){if(c===J.Gt||lc(c))this.cbs.onclosetag(this.sectionStart,this.index),this.sectionStart=-1,this.state=v.AfterClosingTagName,this.stateAfterClosingTagName(c)}stateAfterClosingTagName(c){if(c===J.Gt||this.fastForwardTo(J.Gt))this.state=v.Text,this.baseState=v.Text,this.sectionStart=this.index+1}stateBeforeAttributeName(c){if(c===J.Gt){if(this.cbs.onopentagend(this.index),this.isSpecial)this.state=v.InSpecialTag,this.sequenceIndex=0;else this.state=v.Text;this.baseState=this.state,this.sectionStart=this.index+1}else if(c===J.Slash)this.state=v.InSelfClosingTag;else if(!lc(c))this.state=v.InAttributeName,this.sectionStart=this.index}stateInSelfClosingTag(c){if(c===J.Gt)this.cbs.onselfclosingtag(this.index),this.state=v.Text,this.baseState=v.Text,this.sectionStart=this.index+1,this.isSpecial=!1;else if(!lc(c))this.state=v.BeforeAttributeName,this.stateBeforeAttributeName(c)}stateInAttributeName(c){if(c===J.Eq||Oh(c))this.cbs.onattribname(this.sectionStart,this.index),this.sectionStart=-1,this.state=v.AfterAttributeName,this.stateAfterAttributeName(c)}stateAfterAttributeName(c){if(c===J.Eq)this.state=v.BeforeAttributeValue;else if(c===J.Slash||c===J.Gt)this.cbs.onattribend(qc.NoValue,this.index),this.state=v.BeforeAttributeName,this.stateBeforeAttributeName(c);else if(!lc(c))this.cbs.onattribend(qc.NoValue,this.index),this.state=v.InAttributeName,this.sectionStart=this.index}stateBeforeAttributeValue(c){if(c===J.DoubleQuote)this.state=v.InAttributeValueDq,this.sectionStart=this.index+1;else if(c===J.SingleQuote)this.state=v.InAttributeValueSq,this.sectionStart=this.index+1;else if(!lc(c))this.sectionStart=this.index,this.state=v.InAttributeValueNq,this.stateInAttributeValueNoQuotes(c)}handleInAttributeValue(c,f){if(c===f||!this.decodeEntities&&this.fastForwardTo(f))this.cbs.onattribdata(this.sectionStart,this.index),this.sectionStart=-1,this.cbs.onattribend(f===J.DoubleQuote?qc.Double:qc.Single,this.index),this.state=v.BeforeAttributeName;else if(this.decodeEntities&&c===J.Amp)this.baseState=this.state,this.state=v.BeforeEntity}stateInAttributeValueDoubleQuotes(c){this.handleInAttributeValue(c,J.DoubleQuote)}stateInAttributeValueSingleQuotes(c){this.handleInAttributeValue(c,J.SingleQuote)}stateInAttributeValueNoQuotes(c){if(lc(c)||c===J.Gt)this.cbs.onattribdata(this.sectionStart,this.index),this.sectionStart=-1,this.cbs.onattribend(qc.Unquoted,this.index),this.state=v.BeforeAttributeName,this.stateBeforeAttributeName(c);else if(this.decodeEntities&&c===J.Amp)this.baseState=this.state,this.state=v.BeforeEntity}stateBeforeDeclaration(c){if(c===J.OpeningSquareBracket)this.state=v.CDATASequence,this.sequenceIndex=0;else this.state=c===J.Dash?v.BeforeComment:v.InDeclaration}stateInDeclaration(c){if(c===J.Gt||this.fastForwardTo(J.Gt))this.cbs.ondeclaration(this.sectionStart,this.index),this.state=v.Text,this.sectionStart=this.index+1}stateInProcessingInstruction(c){if(c===J.Gt||this.fastForwardTo(J.Gt))this.cbs.onprocessinginstruction(this.sectionStart,this.index),this.state=v.Text,this.sectionStart=this.index+1}stateBeforeComment(c){if(c===J.Dash)this.state=v.InCommentLike,this.currentSequence=Zc.CommentEnd,this.sequenceIndex=2,this.sectionStart=this.index+1;else this.state=v.InDeclaration}stateInSpecialComment(c){if(c===J.Gt||this.fastForwardTo(J.Gt))this.cbs.oncomment(this.sectionStart,this.index,0),this.state=v.Text,this.sectionStart=this.index+1}stateBeforeSpecialS(c){let f=c|32;if(f===Zc.ScriptEnd[3])this.startSpecial(Zc.ScriptEnd,4);else if(f===Zc.StyleEnd[3])this.startSpecial(Zc.StyleEnd,4);else this.state=v.InTagName,this.stateInTagName(c)}stateBeforeEntity(c){if(this.entityExcess=1,this.entityResult=0,c===J.Number)this.state=v.BeforeNumericEntity;else if(c===J.Amp);else this.trieIndex=0,this.trieCurrent=this.entityTrie[0],this.state=v.InNamedEntity,this.stateInNamedEntity(c)}stateInNamedEntity(c){if(this.entityExcess+=1,this.trieIndex=s$(this.entityTrie,this.trieCurrent,this.trieIndex+1,c),this.trieIndex<0){this.emitNamedEntity(),this.index--;return}this.trieCurrent=this.entityTrie[this.trieIndex];let f=this.trieCurrent&Mc.VALUE_LENGTH;if(f){let R=(f>>14)-1;if(!this.allowLegacyEntity()&&c!==J.Semi)this.trieIndex+=R;else{let h=this.index-this.entityExcess+1;if(h>this.sectionStart)this.emitPartial(this.sectionStart,h);if(this.entityResult=this.trieIndex,this.trieIndex+=R,this.entityExcess=0,this.sectionStart=this.index+1,R===0)this.emitNamedEntity()}}}emitNamedEntity(){if(this.state=this.baseState,this.entityResult===0)return;switch((this.entityTrie[this.entityResult]&Mc.VALUE_LENGTH)>>14){case 1:{this.emitCodePoint(this.entityTrie[this.entityResult]&~Mc.VALUE_LENGTH);break}case 2:{this.emitCodePoint(this.entityTrie[this.entityResult+1]);break}case 3:this.emitCodePoint(this.entityTrie[this.entityResult+1]),this.emitCodePoint(this.entityTrie[this.entityResult+2])}}stateBeforeNumericEntity(c){if((c|32)===J.LowerX)this.entityExcess++,this.state=v.InHexEntity;else this.state=v.InNumericEntity,this.stateInNumericEntity(c)}emitNumericEntity(c){let f=this.index-this.entityExcess-1;if(f+2+Number(this.state===v.InHexEntity)!==this.index){if(f>this.sectionStart)this.emitPartial(this.sectionStart,f);this.sectionStart=this.index+Number(c),this.emitCodePoint(pR(this.entityResult))}this.state=this.baseState}stateInNumericEntity(c){if(c===J.Semi)this.emitNumericEntity(!0);else if(o6(c))this.entityResult=this.entityResult*10+(c-J.Zero),this.entityExcess++;else{if(this.allowLegacyEntity())this.emitNumericEntity(!1);else this.state=this.baseState;this.index--}}stateInHexEntity(c){if(c===J.Semi)this.emitNumericEntity(!0);else if(o6(c))this.entityResult=this.entityResult*16+(c-J.Zero),this.entityExcess++;else if(hY(c))this.entityResult=this.entityResult*16+((c|32)-J.LowerA+10),this.entityExcess++;else{if(this.allowLegacyEntity())this.emitNumericEntity(!1);else this.state=this.baseState;this.index--}}allowLegacyEntity(){return!this.xmlMode&&(this.baseState===v.Text||this.baseState===v.InSpecialTag)}cleanup(){if(this.running&&this.sectionStart!==this.index){if(this.state===v.Text||this.state===v.InSpecialTag&&this.sequenceIndex===0)this.cbs.ontext(this.sectionStart,this.index),this.sectionStart=this.index;else if(this.state===v.InAttributeValueDq||this.state===v.InAttributeValueSq||this.state===v.InAttributeValueNq)this.cbs.onattribdata(this.sectionStart,this.index),this.sectionStart=this.index}}shouldContinue(){return this.index<this.buffer.length+this.offset&&this.running}parse(){while(this.shouldContinue()){let c=this.buffer.charCodeAt(this.index-this.offset);switch(this.state){case v.Text:{this.stateText(c);break}case v.SpecialStartSequence:{this.stateSpecialStartSequence(c);break}case v.InSpecialTag:{this.stateInSpecialTag(c);break}case v.CDATASequence:{this.stateCDATASequence(c);break}case v.InAttributeValueDq:{this.stateInAttributeValueDoubleQuotes(c);break}case v.InAttributeName:{this.stateInAttributeName(c);break}case v.InCommentLike:{this.stateInCommentLike(c);break}case v.InSpecialComment:{this.stateInSpecialComment(c);break}case v.BeforeAttributeName:{this.stateBeforeAttributeName(c);break}case v.InTagName:{this.stateInTagName(c);break}case v.InClosingTagName:{this.stateInClosingTagName(c);break}case v.BeforeTagName:{this.stateBeforeTagName(c);break}case v.AfterAttributeName:{this.stateAfterAttributeName(c);break}case v.InAttributeValueSq:{this.stateInAttributeValueSingleQuotes(c);break}case v.BeforeAttributeValue:{this.stateBeforeAttributeValue(c);break}case v.BeforeClosingTagName:{this.stateBeforeClosingTagName(c);break}case v.AfterClosingTagName:{this.stateAfterClosingTagName(c);break}case v.BeforeSpecialS:{this.stateBeforeSpecialS(c);break}case v.InAttributeValueNq:{this.stateInAttributeValueNoQuotes(c);break}case v.InSelfClosingTag:{this.stateInSelfClosingTag(c);break}case v.InDeclaration:{this.stateInDeclaration(c);break}case v.BeforeDeclaration:{this.stateBeforeDeclaration(c);break}case v.BeforeComment:{this.stateBeforeComment(c);break}case v.InProcessingInstruction:{this.stateInProcessingInstruction(c);break}case v.InNamedEntity:{this.stateInNamedEntity(c);break}case v.BeforeEntity:{this.stateBeforeEntity(c);break}case v.InHexEntity:{this.stateInHexEntity(c);break}case v.InNumericEntity:{this.stateInNumericEntity(c);break}default:this.stateBeforeNumericEntity(c)}this.index++}this.cleanup()}finish(){if(this.state===v.InNamedEntity)this.emitNamedEntity();if(this.sectionStart<this.index)this.handleTrailingData();this.cbs.onend()}handleTrailingData(){let c=this.buffer.length+this.offset;if(this.state===v.InCommentLike)if(this.currentSequence===Zc.CdataEnd)this.cbs.oncdata(this.sectionStart,c,0);else this.cbs.oncomment(this.sectionStart,c,0);else if(this.state===v.InNumericEntity&&this.allowLegacyEntity())this.emitNumericEntity(!1);else if(this.state===v.InHexEntity&&this.allowLegacyEntity())this.emitNumericEntity(!1);else if(this.state===v.InTagName||this.state===v.BeforeAttributeName||this.state===v.BeforeAttributeValue||this.state===v.AfterAttributeName||this.state===v.InAttributeName||this.state===v.InAttributeValueSq||this.state===v.InAttributeValueDq||this.state===v.InAttributeValueNq||this.state===v.InClosingTagName);else this.cbs.ontext(this.sectionStart,c)}emitPartial(c,f){if(this.baseState!==v.Text&&this.baseState!==v.InSpecialTag)this.cbs.onattribdata(c,f);else this.cbs.ontext(c,f)}emitCodePoint(c){if(this.baseState!==v.Text&&this.baseState!==v.InSpecialTag)this.cbs.onattribentity(c);else this.cbs.ontextentity(c)}}var af=new Set(["input","option","optgroup","select","button","datalist","textarea"]),u=new Set(["p"]),a6=new Set(["thead","tbody"]),t6=new Set(["dd","dt"]),r6=new Set(["rt","rp"]),$Y=new Map([["tr",new Set(["tr","th","td"])],["th",new Set(["th"])],["td",new Set(["thead","th","td"])],["body",new Set(["head","link","script"])],["li",new Set(["li"])],["p",u],["h1",u],["h2",u],["h3",u],["h4",u],["h5",u],["h6",u],["select",af],["input",af],["output",af],["button",af],["datalist",af],["textarea",af],["option",new Set(["option"])],["optgroup",new Set(["optgroup","option"])],["dd",t6],["dt",t6],["address",u],["article",u],["aside",u],["blockquote",u],["details",u],["div",u],["dl",u],["fieldset",u],["figcaption",u],["figure",u],["footer",u],["form",u],["header",u],["hr",u],["main",u],["nav",u],["ol",u],["pre",u],["section",u],["table",u],["ul",u],["rt",r6],["rp",r6],["tbody",a6],["tfoot",a6]]),HY=new Set(["area","base","basefont","br","col","command","embed","frame","hr","img","input","isindex","keygen","link","meta","param","source","track","wbr"]),e6=new Set(["math","svg"]),c3=new Set(["mi","mo","mn","ms","mtext","annotation-xml","foreignobject","desc","title"]),AY=/\s|\//;class i${constructor(c,f={}){var R,h,$,H,A;this.options=f,this.startIndex=0,this.endIndex=0,this.openTagStart=0,this.tagname="",this.attribname="",this.attribvalue="",this.attribs=null,this.stack=[],this.foreignContext=[],this.buffers=[],this.bufferOffset=0,this.writeIndex=0,this.ended=!1,this.cbs=c!==null&&c!==void 0?c:{},this.lowerCaseTagNames=(R=f.lowerCaseTags)!==null&&R!==void 0?R:!f.xmlMode,this.lowerCaseAttributeNames=(h=f.lowerCaseAttributeNames)!==null&&h!==void 0?h:!f.xmlMode,this.tokenizer=new(($=f.Tokenizer)!==null&&$!==void 0?$:bh)(this.options,this),(A=(H=this.cbs).onparserinit)===null||A===void 0||A.call(H,this)}ontext(c,f){var R,h;let $=this.getSlice(c,f);this.endIndex=f-1,(h=(R=this.cbs).ontext)===null||h===void 0||h.call(R,$),this.startIndex=f}ontextentity(c){var f,R;let h=this.tokenizer.getSectionStart();this.endIndex=h-1,(R=(f=this.cbs).ontext)===null||R===void 0||R.call(f,of(c)),this.startIndex=h}isVoidElement(c){return!this.options.xmlMode&&HY.has(c)}onopentagname(c,f){this.endIndex=f;let R=this.getSlice(c,f);if(this.lowerCaseTagNames)R=R.toLowerCase();this.emitOpenTag(R)}emitOpenTag(c){var f,R,h,$;this.openTagStart=this.startIndex,this.tagname=c;let H=!this.options.xmlMode&&$Y.get(c);if(H)while(this.stack.length>0&&H.has(this.stack[this.stack.length-1])){let A=this.stack.pop();(R=(f=this.cbs).onclosetag)===null||R===void 0||R.call(f,A,!0)}if(!this.isVoidElement(c)){if(this.stack.push(c),e6.has(c))this.foreignContext.push(!0);else if(c3.has(c))this.foreignContext.push(!1)}if(($=(h=this.cbs).onopentagname)===null||$===void 0||$.call(h,c),this.cbs.onopentag)this.attribs={}}endOpenTag(c){var f,R;if(this.startIndex=this.openTagStart,this.attribs)(R=(f=this.cbs).onopentag)===null||R===void 0||R.call(f,this.tagname,this.attribs,c),this.attribs=null;if(this.cbs.onclosetag&&this.isVoidElement(this.tagname))this.cbs.onclosetag(this.tagname,!0);this.tagname=""}onopentagend(c){this.endIndex=c,this.endOpenTag(!1),this.startIndex=c+1}onclosetag(c,f){var R,h,$,H,A,G;this.endIndex=f;let y=this.getSlice(c,f);if(this.lowerCaseTagNames)y=y.toLowerCase();if(e6.has(y)||c3.has(y))this.foreignContext.pop();if(!this.isVoidElement(y)){let F=this.stack.lastIndexOf(y);if(F!==-1)if(this.cbs.onclosetag){let U=this.stack.length-F;while(U--)this.cbs.onclosetag(this.stack.pop(),U!==0)}else this.stack.length=F;else if(!this.options.xmlMode&&y==="p")this.emitOpenTag("p"),this.closeCurrentTag(!0)}else if(!this.options.xmlMode&&y==="br")(h=(R=this.cbs).onopentagname)===null||h===void 0||h.call(R,"br"),(H=($=this.cbs).onopentag)===null||H===void 0||H.call($,"br",{},!0),(G=(A=this.cbs).onclosetag)===null||G===void 0||G.call(A,"br",!1);this.startIndex=f+1}onselfclosingtag(c){if(this.endIndex=c,this.options.xmlMode||this.options.recognizeSelfClosing||this.foreignContext[this.foreignContext.length-1])this.closeCurrentTag(!1),this.startIndex=c+1;else this.onopentagend(c)}closeCurrentTag(c){var f,R;let h=this.tagname;if(this.endOpenTag(c),this.stack[this.stack.length-1]===h)(R=(f=this.cbs).onclosetag)===null||R===void 0||R.call(f,h,!c),this.stack.pop()}onattribname(c,f){this.startIndex=c;let R=this.getSlice(c,f);this.attribname=this.lowerCaseAttributeNames?R.toLowerCase():R}onattribdata(c,f){this.attribvalue+=this.getSlice(c,f)}onattribentity(c){this.attribvalue+=of(c)}onattribend(c,f){var R,h;if(this.endIndex=f,(h=(R=this.cbs).onattribute)===null||h===void 0||h.call(R,this.attribname,this.attribvalue,c===qc.Double?'"':c===qc.Single?"'":c===qc.NoValue?void 0:null),this.attribs&&!Object.prototype.hasOwnProperty.call(this.attribs,this.attribname))this.attribs[this.attribname]=this.attribvalue;this.attribvalue=""}getInstructionName(c){let f=c.search(AY),R=f<0?c:c.substr(0,f);if(this.lowerCaseTagNames)R=R.toLowerCase();return R}ondeclaration(c,f){this.endIndex=f;let R=this.getSlice(c,f);if(this.cbs.onprocessinginstruction){let h=this.getInstructionName(R);this.cbs.onprocessinginstruction(`!${h}`,`!${R}`)}this.startIndex=f+1}onprocessinginstruction(c,f){this.endIndex=f;let R=this.getSlice(c,f);if(this.cbs.onprocessinginstruction){let h=this.getInstructionName(R);this.cbs.onprocessinginstruction(`?${h}`,`?${R}`)}this.startIndex=f+1}oncomment(c,f,R){var h,$,H,A;this.endIndex=f,($=(h=this.cbs).oncomment)===null||$===void 0||$.call(h,this.getSlice(c,f-R)),(A=(H=this.cbs).oncommentend)===null||A===void 0||A.call(H),this.startIndex=f+1}oncdata(c,f,R){var h,$,H,A,G,y,F,U,N,z;this.endIndex=f;let Z=this.getSlice(c,f-R);if(this.options.xmlMode||this.options.recognizeCDATA)($=(h=this.cbs).oncdatastart)===null||$===void 0||$.call(h),(A=(H=this.cbs).ontext)===null||A===void 0||A.call(H,Z),(y=(G=this.cbs).oncdataend)===null||y===void 0||y.call(G);else(U=(F=this.cbs).oncomment)===null||U===void 0||U.call(F,`[CDATA[${Z}]]`),(z=(N=this.cbs).oncommentend)===null||z===void 0||z.call(N);this.startIndex=f+1}onend(){var c,f;if(this.cbs.onclosetag){this.endIndex=this.startIndex;for(let R=this.stack.length;R>0;this.cbs.onclosetag(this.stack[--R],!0));}(f=(c=this.cbs).onend)===null||f===void 0||f.call(c)}reset(){var c,f,R,h;(f=(c=this.cbs).onreset)===null||f===void 0||f.call(c),this.tokenizer.reset(),this.tagname="",this.attribname="",this.attribs=null,this.stack.length=0,this.startIndex=0,this.endIndex=0,(h=(R=this.cbs).onparserinit)===null||h===void 0||h.call(R,this),this.buffers.length=0,this.bufferOffset=0,this.writeIndex=0,this.ended=!1}parseComplete(c){this.reset(),this.end(c)}getSlice(c,f){while(c-this.bufferOffset>=this.buffers[0].length)this.shiftBuffer();let R=this.buffers[0].slice(c-this.bufferOffset,f-this.bufferOffset);while(f-this.bufferOffset>this.buffers[0].length)this.shiftBuffer(),R+=this.buffers[0].slice(0,f-this.bufferOffset);return R}shiftBuffer(){this.bufferOffset+=this.buffers[0].length,this.writeIndex--,this.buffers.shift()}write(c){var f,R;if(this.ended){(R=(f=this.cbs).onerror)===null||R===void 0||R.call(f,Error(".write() after done!"));return}if(this.buffers.push(c),this.tokenizer.running)this.tokenizer.write(c),this.writeIndex++}end(c){var f,R;if(this.ended){(R=(f=this.cbs).onerror)===null||R===void 0||R.call(f,Error(".end() after done!"));return}if(c)this.write(c);this.ended=!0,this.tokenizer.end()}pause(){this.tokenizer.pause()}resume(){this.tokenizer.resume();while(this.tokenizer.running&&this.writeIndex<this.buffers.length)this.tokenizer.write(this.buffers[this.writeIndex++]);if(this.ended)this.tokenizer.end()}parseChunk(c){this.write(c)}done(c){this.end(c)}}var f3=/["&'<>$\x80-\uFFFF]/g,R3=new Map([[34,"&quot;"],[38,"&amp;"],[39,"&apos;"],[60,"&lt;"],[62,"&gt;"]]),GY=String.prototype.codePointAt!=null?(c,f)=>c.codePointAt(f):(c,f)=>(c.charCodeAt(f)&64512)===55296?(c.charCodeAt(f)-55296)*1024+c.charCodeAt(f+1)-56320+65536:c.charCodeAt(f);function qh(c){let f="",R=0,h;while((h=f3.exec(c))!==null){let $=h.index,H=c.charCodeAt($),A=R3.get(H);if(A!==void 0)f+=c.substring(R,$)+A,R=$+1;else f+=`${c.substring(R,$)}&#x${GY(c,$).toString(16)};`,R=f3.lastIndex+=Number((H&64512)===55296)}return f+c.substr(R)}function k$(c,f){return function(h){let $,H=0,A="";while($=c.exec(h)){if(H!==$.index)A+=h.substring(H,$.index);A+=f.get($[0].charCodeAt(0)),H=$.index+1}return A+h.substring(H)}}var yY=k$(/[&<>'"]/g,R3),l$=k$(/["&\u00A0]/g,new Map([[34,"&quot;"],[38,"&amp;"],[160,"&nbsp;"]])),d$=k$(/[&<>\u00A0]/g,new Map([[38,"&amp;"],[60,"&lt;"],[62,"&gt;"],[160,"&nbsp;"]]));var h3;(function(c){c[c.XML=0]="XML",c[c.HTML=1]="HTML"})(h3||(h3={}));var $3;(function(c){c[c.UTF8=0]="UTF8",c[c.ASCII=1]="ASCII",c[c.Extensive=2]="Extensive",c[c.Attribute=3]="Attribute",c[c.Text=4]="Text"})($3||($3={}));var H3=new Map(["altGlyph","altGlyphDef","altGlyphItem","animateColor","animateMotion","animateTransform","clipPath","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","foreignObject","glyphRef","linearGradient","radialGradient","textPath"].map((c)=>[c.toLowerCase(),c])),A3=new Map(["definitionURL","attributeName","attributeType","baseFrequency","baseProfile","calcMode","clipPathUnits","diffuseConstant","edgeMode","filterUnits","glyphRef","gradientTransform","gradientUnits","kernelMatrix","kernelUnitLength","keyPoints","keySplines","keyTimes","lengthAdjust","limitingConeAngle","markerHeight","markerUnits","markerWidth","maskContentUnits","maskUnits","numOctaves","pathLength","patternContentUnits","patternTransform","patternUnits","pointsAtX","pointsAtY","pointsAtZ","preserveAlpha","preserveAspectRatio","primitiveUnits","refX","refY","repeatCount","repeatDur","requiredExtensions","requiredFeatures","specularConstant","specularExponent","spreadMethod","startOffset","stdDeviation","stitchTiles","surfaceScale","systemLanguage","tableValues","targetX","targetY","textLength","viewBox","viewTarget","xChannelSelector","yChannelSelector","zoomAndPan"].map((c)=>[c.toLowerCase(),c]));var FY=new Set(["style","script","xmp","iframe","noembed","noframes","plaintext","noscript"]);function WY(c){return c.replace(/"/g,"&quot;")}function vY(c,f){var R;if(!c)return;let h=((R=f.encodeEntities)!==null&&R!==void 0?R:f.decodeEntities)===!1?WY:f.xmlMode||f.encodeEntities!=="utf8"?qh:l$;return Object.keys(c).map(($)=>{var H,A;let G=(H=c[$])!==null&&H!==void 0?H:"";if(f.xmlMode==="foreign")$=(A=A3.get($))!==null&&A!==void 0?A:$;if(!f.emptyAttrs&&!f.xmlMode&&G==="")return $;return`${$}="${h(G)}"`}).join(" ")}var G3=new Set(["area","base","basefont","br","col","command","embed","frame","hr","img","input","isindex","keygen","link","meta","param","source","track","wbr"]);function sR(c,f={}){let R="length"in c?c:[c],h="";for(let $=0;$<R.length;$++)h+=UY(R[$],f);return h}function UY(c,f){switch(c.type){case Y6:return sR(c.children,f);case X6:case Z6:return JY(c);case J6:return MY(c);case B6:return SY(c);case z6:case S6:case M6:return ZY(c,f);case N6:return zY(c,f)}}var YY=new Set(["mi","mo","mn","ms","mtext","annotation-xml","foreignObject","desc","title"]),NY=new Set(["svg","math"]);function ZY(c,f){var R;if(f.xmlMode==="foreign"){if(c.name=(R=H3.get(c.name))!==null&&R!==void 0?R:c.name,c.parent&&YY.has(c.parent.name))f={...f,xmlMode:!1}}if(!f.xmlMode&&NY.has(c.name))f={...f,xmlMode:"foreign"};let h=`<${c.name}`,$=vY(c.attribs,f);if($)h+=` ${$}`;if(c.children.length===0&&(f.xmlMode?f.selfClosingTags!==!1:f.selfClosingTags&&G3.has(c.name))){if(!f.xmlMode)h+=" ";h+="/>"}else{if(h+=">",c.children.length>0)h+=sR(c.children,f);if(f.xmlMode||!G3.has(c.name))h+=`</${c.name}>`}return h}function JY(c){return`<${c.data}>`}function zY(c,f){var R;let h=c.data||"";if(((R=f.encodeEntities)!==null&&R!==void 0?R:f.decodeEntities)!==!1&&!(!f.xmlMode&&c.parent&&FY.has(c.parent.name)))h=f.xmlMode||f.encodeEntities!=="utf8"?qh(h):d$(h);return h}function SY(c){return`<![CDATA[${c.children[0].data}]]>`}function MY(c){return`<!--${c.data}-->`}function y3(c,f){let R=new j$(void 0,f);return new i$(R,f).end(c),R.root}var e$=Y(U3(),1);function c8(c,f,R=()=>{return}){if(c===void 0){let h=function(...$){return f(h,...$)};return h}if(c>=0)return function(...h){return f(c8(c-1,f,R),...h)};return R}function z3(c,f){let R=0,h=c.length;while(R<h&&c[R]===f)++R;while(h>R&&c[h-1]===f)--h;return R>0||h<c.length?c.substring(R,h):c}function qY(c,f){let R=c.length;while(R>0&&c[R-1]===f)--R;return R<c.length?c.substring(0,R):c}function VY(c){return c.replace(/[\s\S]/g,(f)=>"\\u"+f.charCodeAt().toString(16).padStart(4,"0"))}function S3(c,f){let R=new Map;for(let h=c.length;h-- >0;){let $=c[h],H=f($);R.set(H,R.has(H)?e$.default($,R.get(H),{arrayMerge:EY}):$)}return[...R.values()].reverse()}var EY=(c,f,R)=>[...f];function rf(c,f){for(let R of f){if(!c)return;c=c[R]}return c}function Y3(c,f="a",R=26){let h=[];do c-=1,h.push(c%R),c=c/R>>0;while(c>0);let $=f.charCodeAt(0);return h.reverse().map((H)=>String.fromCharCode($+H)).join("")}var _$=["I","X","C","M"],N3=["V","L","D"];function Z3(c){return[...c+""].map((f)=>+f).reverse().map((f,R)=>f%5<4?(f<5?"":N3[R])+_$[R].repeat(f%5):_$[R]+(f<5?N3[R]:_$[R+1])).reverse().join("")}class f8{constructor(c,f=void 0){this.lines=[],this.nextLineWords=[],this.maxLineLength=f||c.wordwrap||Number.MAX_VALUE,this.nextLineAvailableChars=this.maxLineLength,this.wrapCharacters=rf(c,["longWordSplit","wrapCharacters"])||[],this.forceWrapOnLimit=rf(c,["longWordSplit","forceWrapOnLimit"])||!1,this.stashedSpace=!1,this.wordBreakOpportunity=!1}pushWord(c,f=!1){if(this.nextLineAvailableChars<=0&&!f)this.startNewLine();let R=this.nextLineWords.length===0,h=c.length+(R?0:1);if(h<=this.nextLineAvailableChars||f)this.nextLineWords.push(c),this.nextLineAvailableChars-=h;else{let[$,...H]=this.splitLongWord(c);if(!R)this.startNewLine();this.nextLineWords.push($),this.nextLineAvailableChars-=$.length;for(let A of H)this.startNewLine(),this.nextLineWords.push(A),this.nextLineAvailableChars-=A.length}}popWord(){let c=this.nextLineWords.pop();if(c!==void 0){let f=this.nextLineWords.length===0,R=c.length+(f?0:1);this.nextLineAvailableChars+=R}return c}concatWord(c,f=!1){if(this.wordBreakOpportunity&&c.length>this.nextLineAvailableChars)this.pushWord(c,f),this.wordBreakOpportunity=!1;else{let R=this.popWord();this.pushWord(R?R.concat(c):c,f)}}startNewLine(c=1){if(this.lines.push(this.nextLineWords),c>1)this.lines.push(...Array.from({length:c-1},()=>[]));this.nextLineWords=[],this.nextLineAvailableChars=this.maxLineLength}isEmpty(){return this.lines.length===0&&this.nextLineWords.length===0}clear(){this.lines.length=0,this.nextLineWords.length=0,this.nextLineAvailableChars=this.maxLineLength}toString(){return[...this.lines,this.nextLineWords].map((c)=>c.join(" ")).join(`
51
+ ${"".padEnd(f)}${"^".repeat(R)}`}function C6(c){return IU(b$,c)}function bc(c){if(!c.type)throw Error("This is not an AST node.");switch(c.type){case"universal":return jh(c.namespace)+"*";case"tag":return jh(c.namespace)+lf(c.name);case"class":return"."+lf(c.name);case"id":return"#"+lf(c.name);case"attrPresence":return`[${jh(c.namespace)}${lf(c.name)}]`;case"attrValue":return`[${jh(c.namespace)}${lf(c.name)}${c.matcher}"${PU(c.value)}"${c.modifier?c.modifier:""}]`;case"combinator":return bc(c.left)+c.combinator;case"compound":return c.list.reduce((f,R)=>{if(R.type==="combinator")return bc(R)+f;else return f+bc(R)},"");case"list":return c.list.map(bc).join(",")}}function jh(c){return c||c===""?lf(c)+"|":""}function Lh(c){return`\\${c.codePointAt(0).toString(16)} `}function lf(c){return c.replace(/(^[0-9])|(^-[0-9])|(^-$)|([-0-9a-zA-Z_]|[^\x00-\x7F])|(\x00)|([\x01-\x1f]|\x7f)|([\s\S])/g,(f,R,h,$,H,A,G,y)=>R?Lh(R):h?"-"+Lh(h.slice(1)):$?"\\-":H?H:A?"\uFFFD":G?Lh(G):"\\"+y)}function PU(c){return c.replace(/(")|(\\)|(\x00)|([\x01-\x1f]|\x7f)/g,(f,R,h,$,H)=>R?"\\\"":h?"\\\\":$?"\uFFFD":Lh(H))}function uR(c){if(!c.type)throw Error("This is not an AST node.");switch(c.type){case"compound":{c.list.forEach(uR),c.list.sort((f,R)=>m6(V6(f),V6(R)));break}case"combinator":{uR(c.left);break}case"list":{c.list.forEach(uR),c.list.sort((f,R)=>bc(f)<bc(R)?-1:1);break}}return c}function V6(c){switch(c.type){case"universal":return[1];case"tag":return[1];case"id":return[2];case"class":return[3,c.name];case"attrPresence":return[4,bc(c)];case"attrValue":return[5,bc(c)];case"combinator":return[15,bc(c)]}}function T$(c,f){return m6(c,f)}function m6(c,f){if(!Array.isArray(c)||!Array.isArray(f))throw Error("Arguments must be arrays.");let R=c.length<f.length?c.length:f.length;for(let h=0;h<R;h++){if(c[h]===f[h])continue;return c[h]<f[h]?-1:1}return c.length-f.length}class Ih{constructor(c){this.branches=_f(OU(c))}build(c){return c(this.branches)}}function OU(c){let f=c.length,R=Array(f);for(let h=0;h<f;h++){let[$,H]=c[h],A=bU(C6($));R[h]={ast:A,terminal:{type:"terminal",valueContainer:{index:h,value:H,specificity:A.specificity}}}}return R}function bU(c){return s6(c),uR(c),c}function s6(c){let f=[];c.list.forEach((R)=>{switch(R.type){case"class":f.push({matcher:"~=",modifier:null,name:"class",namespace:null,specificity:R.specificity,type:"attrValue",value:R.name});break;case"id":f.push({matcher:"=",modifier:null,name:"id",namespace:null,specificity:R.specificity,type:"attrValue",value:R.name});break;case"combinator":s6(R.left),f.push(R);break;case"universal":break;default:f.push(R);break}}),c.list=f}function _f(c){let f=[];while(c.length){let R=l6(c,(A)=>!0,i6),{matches:h,nonmatches:$,empty:H}=VU(c,R);if(c=$,h.length)f.push(EU(R,h));if(H.length)f.push(...qU(H))}return f}function qU(c){let f=[];for(let R of c){let h=R.terminal;if(h.type==="terminal")f.push(h);else{let{matches:$,rest:H}=mU(h.cont,(A)=>A.type==="terminal");if($.forEach((A)=>f.push(A)),H.length)h.cont=H,f.push(h)}}return f}function VU(c,f){let R=[],h=[],$=[];for(let H of c){let A=H.ast.list;if(A.length)(A.some((y)=>i6(y)===f)?R:h).push(H);else $.push(H)}return{matches:R,nonmatches:h,empty:$}}function i6(c){switch(c.type){case"attrPresence":return`attrPresence ${c.name}`;case"attrValue":return`attrValue ${c.name}`;case"combinator":return`combinator ${c.combinator}`;default:return c.type}}function EU(c,f){if(c==="tag")return TU(f);if(c.startsWith("attrValue "))return gU(c.substring(10),f);if(c.startsWith("attrPresence "))return uU(c.substring(13),f);if(c==="combinator >")return p6(">",f);if(c==="combinator +")return p6("+",f);throw Error(`Unsupported selector kind: ${c}`)}function TU(c){let f=u$(c,(h)=>h.type==="tag",(h)=>h.name);return{type:"tagName",variants:Object.entries(f).map(([h,$])=>({type:"variant",value:h,cont:_f($.items)}))}}function uU(c,f){for(let R of f)k6(R,(h)=>h.type==="attrPresence"&&h.name===c);return{type:"attrPresence",name:c,cont:_f(f)}}function gU(c,f){let R=u$(f,($)=>$.type==="attrValue"&&$.name===c,($)=>`${$.matcher} ${$.modifier||""} ${$.value}`),h=[];for(let $ of Object.values(R)){let H=$.oneSimpleSelector,A=CU(H),G=_f($.items);h.push({type:"matcher",matcher:H.matcher,modifier:H.modifier,value:H.value,predicate:A,cont:G})}return{type:"attrValue",name:c,matchers:h}}function CU(c){if(c.modifier==="i"){let f=c.value.toLowerCase();switch(c.matcher){case"=":return(R)=>f===R.toLowerCase();case"~=":return(R)=>R.toLowerCase().split(/[ \t]+/).includes(f);case"^=":return(R)=>R.toLowerCase().startsWith(f);case"$=":return(R)=>R.toLowerCase().endsWith(f);case"*=":return(R)=>R.toLowerCase().includes(f);case"|=":return(R)=>{let h=R.toLowerCase();return f===h||h.startsWith(f)&&h[f.length]==="-"}}}else{let f=c.value;switch(c.matcher){case"=":return(R)=>f===R;case"~=":return(R)=>R.split(/[ \t]+/).includes(f);case"^=":return(R)=>R.startsWith(f);case"$=":return(R)=>R.endsWith(f);case"*=":return(R)=>R.includes(f);case"|=":return(R)=>f===R||R.startsWith(f)&&R[f.length]==="-"}}}function p6(c,f){let R=u$(f,($)=>$.type==="combinator"&&$.combinator===c,($)=>bc($.left)),h=[];for(let $ of Object.values(R)){let H=_f($.items),A=$.oneSimpleSelector.left;h.push({ast:A,terminal:{type:"popElement",cont:H}})}return{type:"pushElement",combinator:c,cont:_f(h)}}function u$(c,f,R){let h={};while(c.length){let $=l6(c,f,R),H=(U)=>f(U)&&R(U)===$,A=(U)=>U.ast.list.some(H),{matches:G,rest:y}=pU(c,A),F=null;for(let U of G){let N=k6(U,H);if(!F)F=N}if(F==null)throw Error("No simple selector is found.");h[$]={oneSimpleSelector:F,items:G},c=y}return h}function k6(c,f){let R=c.ast.list,h=Array(R.length),$=-1;for(let A=R.length;A-- >0;)if(f(R[A]))h[A]=!0,$=A;if($==-1)throw Error("Couldn't find the required simple selector.");let H=R[$];return c.ast.list=R.filter((A,G)=>!h[G]),H}function l6(c,f,R){let h={};for(let A of c){let G={};for(let y of A.ast.list.filter(f))G[R(y)]=!0;for(let y of Object.keys(G))if(h[y])h[y]++;else h[y]=1}let $="",H=0;for(let A of Object.entries(h))if(A[1]>H)$=A[0],H=A[1];return $}function mU(c,f){let R=[],h=[];for(let $ of c)if(f($))R.push($);else h.push($);return{matches:R,rest:h}}function pU(c,f){let R=[],h=[];for(let $ of c)if(f($))R.push($);else h.push($);return{matches:R,rest:h}}class g${constructor(c){this.f=c}pickAll(c){return this.f(c)}pick1(c,f=!1){let R=this.f(c),h=R.length;if(h===0)return null;if(h===1)return R[0].value;let $=f?sU:iU,H=R[0];for(let A=1;A<h;A++){let G=R[A];if($(H,G))H=G}return H.value}}function sU(c,f){let R=T$(f.specificity,c.specificity);return R>0||R===0&&f.index<c.index}function iU(c,f){let R=T$(f.specificity,c.specificity);return R>0||R===0&&f.index>c.index}function C$(c){return new g$(nf(c))}function nf(c){let f=c.map(kU);return(R,...h)=>f.flatMap(($)=>$(R,...h))}function kU(c){switch(c.type){case"terminal":{let f=[c.valueContainer];return(R,...h)=>f}case"tagName":return lU(c);case"attrValue":return _U(c);case"attrPresence":return dU(c);case"pushElement":return nU(c);case"popElement":return aU(c)}}function lU(c){let f={};for(let R of c.variants)f[R.value]=nf(R.cont);return(R,...h)=>{let $=f[R.name];return $?$(R,...h):[]}}function dU(c){let f=c.name,R=nf(c.cont);return(h,...$)=>Object.prototype.hasOwnProperty.call(h.attribs,f)?R(h,...$):[]}function _U(c){let f=[];for(let h of c.matchers){let $=h.predicate,H=nf(h.cont);f.push((A,G,...y)=>$(A)?H(G,...y):[])}let R=c.name;return(h,...$)=>{let H=h.attribs[R];return H||H===""?f.flatMap((A)=>A(H,h,...$)):[]}}function nU(c){let f=nf(c.cont),R=c.combinator==="+"?d6:oU;return(h,...$)=>{let H=R(h);if(H===null)return[];return f(H,h,...$)}}var d6=(c)=>{let f=c.prev;if(f===null)return null;return Xh(f)?f:d6(f)},oU=(c)=>{let f=c.parent;return f&&Xh(f)?f:null};function aU(c){let f=nf(c.cont);return(R,h,...$)=>f(h,...$)}var Ph=new Uint16Array("\u1D41<\xD5\u0131\u028A\u049D\u057B\u05D0\u0675\u06DE\u07A2\u07D6\u080F\u0A4A\u0A91\u0DA1\u0E6D\u0F09\u0F26\u10CA\u1228\u12E1\u1415\u149D\u14C3\u14DF\u1525\x00\x00\x00\x00\x00\x00\u156B\u16CD\u198D\u1C12\u1DDD\u1F7E\u2060\u21B0\u228D\u23C0\u23FB\u2442\u2824\u2912\u2D08\u2E48\u2FCE\u3016\u32BA\u3639\u37AC\u38FE\u3A28\u3A71\u3AE0\u3B2E\u0800EMabcfglmnoprstu\\bfms\x7F\x84\x8B\x90\x95\x98\xA6\xB3\xB9\xC8\xCFlig\u803B\xC6\u40C6P\u803B&\u4026cute\u803B\xC1\u40C1reve;\u4102\u0100iyx}rc\u803B\xC2\u40C2;\u4410r;\uC000\uD835\uDD04rave\u803B\xC0\u40C0pha;\u4391acr;\u4100d;\u6A53\u0100gp\x9D\xA1on;\u4104f;\uC000\uD835\uDD38plyFunction;\u6061ing\u803B\xC5\u40C5\u0100cs\xBE\xC3r;\uC000\uD835\uDC9Cign;\u6254ilde\u803B\xC3\u40C3ml\u803B\xC4\u40C4\u0400aceforsu\xE5\xFB\xFE\u0117\u011C\u0122\u0127\u012A\u0100cr\xEA\xF2kslash;\u6216\u0176\xF6\xF8;\u6AE7ed;\u6306y;\u4411\u0180crt\u0105\u010B\u0114ause;\u6235noullis;\u612Ca;\u4392r;\uC000\uD835\uDD05pf;\uC000\uD835\uDD39eve;\u42D8c\xF2\u0113mpeq;\u624E\u0700HOacdefhilorsu\u014D\u0151\u0156\u0180\u019E\u01A2\u01B5\u01B7\u01BA\u01DC\u0215\u0273\u0278\u027Ecy;\u4427PY\u803B\xA9\u40A9\u0180cpy\u015D\u0162\u017Aute;\u4106\u0100;i\u0167\u0168\u62D2talDifferentialD;\u6145leys;\u612D\u0200aeio\u0189\u018E\u0194\u0198ron;\u410Cdil\u803B\xC7\u40C7rc;\u4108nint;\u6230ot;\u410A\u0100dn\u01A7\u01ADilla;\u40B8terDot;\u40B7\xF2\u017Fi;\u43A7rcle\u0200DMPT\u01C7\u01CB\u01D1\u01D6ot;\u6299inus;\u6296lus;\u6295imes;\u6297o\u0100cs\u01E2\u01F8kwiseContourIntegral;\u6232eCurly\u0100DQ\u0203\u020FoubleQuote;\u601Duote;\u6019\u0200lnpu\u021E\u0228\u0247\u0255on\u0100;e\u0225\u0226\u6237;\u6A74\u0180git\u022F\u0236\u023Aruent;\u6261nt;\u622FourIntegral;\u622E\u0100fr\u024C\u024E;\u6102oduct;\u6210nterClockwiseContourIntegral;\u6233oss;\u6A2Fcr;\uC000\uD835\uDC9Ep\u0100;C\u0284\u0285\u62D3ap;\u624D\u0580DJSZacefios\u02A0\u02AC\u02B0\u02B4\u02B8\u02CB\u02D7\u02E1\u02E6\u0333\u048D\u0100;o\u0179\u02A5trahd;\u6911cy;\u4402cy;\u4405cy;\u440F\u0180grs\u02BF\u02C4\u02C7ger;\u6021r;\u61A1hv;\u6AE4\u0100ay\u02D0\u02D5ron;\u410E;\u4414l\u0100;t\u02DD\u02DE\u6207a;\u4394r;\uC000\uD835\uDD07\u0100af\u02EB\u0327\u0100cm\u02F0\u0322ritical\u0200ADGT\u0300\u0306\u0316\u031Ccute;\u40B4o\u0174\u030B\u030D;\u42D9bleAcute;\u42DDrave;\u4060ilde;\u42DCond;\u62C4ferentialD;\u6146\u0470\u033D\x00\x00\x00\u0342\u0354\x00\u0405f;\uC000\uD835\uDD3B\u0180;DE\u0348\u0349\u034D\u40A8ot;\u60DCqual;\u6250ble\u0300CDLRUV\u0363\u0372\u0382\u03CF\u03E2\u03F8ontourIntegra\xEC\u0239o\u0274\u0379\x00\x00\u037B\xBB\u0349nArrow;\u61D3\u0100eo\u0387\u03A4ft\u0180ART\u0390\u0396\u03A1rrow;\u61D0ightArrow;\u61D4e\xE5\u02CAng\u0100LR\u03AB\u03C4eft\u0100AR\u03B3\u03B9rrow;\u67F8ightArrow;\u67FAightArrow;\u67F9ight\u0100AT\u03D8\u03DErrow;\u61D2ee;\u62A8p\u0241\u03E9\x00\x00\u03EFrrow;\u61D1ownArrow;\u61D5erticalBar;\u6225n\u0300ABLRTa\u0412\u042A\u0430\u045E\u047F\u037Crrow\u0180;BU\u041D\u041E\u0422\u6193ar;\u6913pArrow;\u61F5reve;\u4311eft\u02D2\u043A\x00\u0446\x00\u0450ightVector;\u6950eeVector;\u695Eector\u0100;B\u0459\u045A\u61BDar;\u6956ight\u01D4\u0467\x00\u0471eeVector;\u695Fector\u0100;B\u047A\u047B\u61C1ar;\u6957ee\u0100;A\u0486\u0487\u62A4rrow;\u61A7\u0100ct\u0492\u0497r;\uC000\uD835\uDC9Frok;\u4110\u0800NTacdfglmopqstux\u04BD\u04C0\u04C4\u04CB\u04DE\u04E2\u04E7\u04EE\u04F5\u0521\u052F\u0536\u0552\u055D\u0560\u0565G;\u414AH\u803B\xD0\u40D0cute\u803B\xC9\u40C9\u0180aiy\u04D2\u04D7\u04DCron;\u411Arc\u803B\xCA\u40CA;\u442Dot;\u4116r;\uC000\uD835\uDD08rave\u803B\xC8\u40C8ement;\u6208\u0100ap\u04FA\u04FEcr;\u4112ty\u0253\u0506\x00\x00\u0512mallSquare;\u65FBerySmallSquare;\u65AB\u0100gp\u0526\u052Aon;\u4118f;\uC000\uD835\uDD3Csilon;\u4395u\u0100ai\u053C\u0549l\u0100;T\u0542\u0543\u6A75ilde;\u6242librium;\u61CC\u0100ci\u0557\u055Ar;\u6130m;\u6A73a;\u4397ml\u803B\xCB\u40CB\u0100ip\u056A\u056Fsts;\u6203onentialE;\u6147\u0280cfios\u0585\u0588\u058D\u05B2\u05CCy;\u4424r;\uC000\uD835\uDD09lled\u0253\u0597\x00\x00\u05A3mallSquare;\u65FCerySmallSquare;\u65AA\u0370\u05BA\x00\u05BF\x00\x00\u05C4f;\uC000\uD835\uDD3DAll;\u6200riertrf;\u6131c\xF2\u05CB\u0600JTabcdfgorst\u05E8\u05EC\u05EF\u05FA\u0600\u0612\u0616\u061B\u061D\u0623\u066C\u0672cy;\u4403\u803B>\u403Emma\u0100;d\u05F7\u05F8\u4393;\u43DCreve;\u411E\u0180eiy\u0607\u060C\u0610dil;\u4122rc;\u411C;\u4413ot;\u4120r;\uC000\uD835\uDD0A;\u62D9pf;\uC000\uD835\uDD3Eeater\u0300EFGLST\u0635\u0644\u064E\u0656\u065B\u0666qual\u0100;L\u063E\u063F\u6265ess;\u62DBullEqual;\u6267reater;\u6AA2ess;\u6277lantEqual;\u6A7Eilde;\u6273cr;\uC000\uD835\uDCA2;\u626B\u0400Aacfiosu\u0685\u068B\u0696\u069B\u069E\u06AA\u06BE\u06CARDcy;\u442A\u0100ct\u0690\u0694ek;\u42C7;\u405Eirc;\u4124r;\u610ClbertSpace;\u610B\u01F0\u06AF\x00\u06B2f;\u610DizontalLine;\u6500\u0100ct\u06C3\u06C5\xF2\u06A9rok;\u4126mp\u0144\u06D0\u06D8ownHum\xF0\u012Fqual;\u624F\u0700EJOacdfgmnostu\u06FA\u06FE\u0703\u0707\u070E\u071A\u071E\u0721\u0728\u0744\u0778\u078B\u078F\u0795cy;\u4415lig;\u4132cy;\u4401cute\u803B\xCD\u40CD\u0100iy\u0713\u0718rc\u803B\xCE\u40CE;\u4418ot;\u4130r;\u6111rave\u803B\xCC\u40CC\u0180;ap\u0720\u072F\u073F\u0100cg\u0734\u0737r;\u412AinaryI;\u6148lie\xF3\u03DD\u01F4\u0749\x00\u0762\u0100;e\u074D\u074E\u622C\u0100gr\u0753\u0758ral;\u622Bsection;\u62C2isible\u0100CT\u076C\u0772omma;\u6063imes;\u6062\u0180gpt\u077F\u0783\u0788on;\u412Ef;\uC000\uD835\uDD40a;\u4399cr;\u6110ilde;\u4128\u01EB\u079A\x00\u079Ecy;\u4406l\u803B\xCF\u40CF\u0280cfosu\u07AC\u07B7\u07BC\u07C2\u07D0\u0100iy\u07B1\u07B5rc;\u4134;\u4419r;\uC000\uD835\uDD0Dpf;\uC000\uD835\uDD41\u01E3\u07C7\x00\u07CCr;\uC000\uD835\uDCA5rcy;\u4408kcy;\u4404\u0380HJacfos\u07E4\u07E8\u07EC\u07F1\u07FD\u0802\u0808cy;\u4425cy;\u440Cppa;\u439A\u0100ey\u07F6\u07FBdil;\u4136;\u441Ar;\uC000\uD835\uDD0Epf;\uC000\uD835\uDD42cr;\uC000\uD835\uDCA6\u0580JTaceflmost\u0825\u0829\u082C\u0850\u0863\u09B3\u09B8\u09C7\u09CD\u0A37\u0A47cy;\u4409\u803B<\u403C\u0280cmnpr\u0837\u083C\u0841\u0844\u084Dute;\u4139bda;\u439Bg;\u67EAlacetrf;\u6112r;\u619E\u0180aey\u0857\u085C\u0861ron;\u413Ddil;\u413B;\u441B\u0100fs\u0868\u0970t\u0500ACDFRTUVar\u087E\u08A9\u08B1\u08E0\u08E6\u08FC\u092F\u095B\u0390\u096A\u0100nr\u0883\u088FgleBracket;\u67E8row\u0180;BR\u0899\u089A\u089E\u6190ar;\u61E4ightArrow;\u61C6eiling;\u6308o\u01F5\u08B7\x00\u08C3bleBracket;\u67E6n\u01D4\u08C8\x00\u08D2eeVector;\u6961ector\u0100;B\u08DB\u08DC\u61C3ar;\u6959loor;\u630Aight\u0100AV\u08EF\u08F5rrow;\u6194ector;\u694E\u0100er\u0901\u0917e\u0180;AV\u0909\u090A\u0910\u62A3rrow;\u61A4ector;\u695Aiangle\u0180;BE\u0924\u0925\u0929\u62B2ar;\u69CFqual;\u62B4p\u0180DTV\u0937\u0942\u094CownVector;\u6951eeVector;\u6960ector\u0100;B\u0956\u0957\u61BFar;\u6958ector\u0100;B\u0965\u0966\u61BCar;\u6952ight\xE1\u039Cs\u0300EFGLST\u097E\u098B\u0995\u099D\u09A2\u09ADqualGreater;\u62DAullEqual;\u6266reater;\u6276ess;\u6AA1lantEqual;\u6A7Dilde;\u6272r;\uC000\uD835\uDD0F\u0100;e\u09BD\u09BE\u62D8ftarrow;\u61DAidot;\u413F\u0180npw\u09D4\u0A16\u0A1Bg\u0200LRlr\u09DE\u09F7\u0A02\u0A10eft\u0100AR\u09E6\u09ECrrow;\u67F5ightArrow;\u67F7ightArrow;\u67F6eft\u0100ar\u03B3\u0A0Aight\xE1\u03BFight\xE1\u03CAf;\uC000\uD835\uDD43er\u0100LR\u0A22\u0A2CeftArrow;\u6199ightArrow;\u6198\u0180cht\u0A3E\u0A40\u0A42\xF2\u084C;\u61B0rok;\u4141;\u626A\u0400acefiosu\u0A5A\u0A5D\u0A60\u0A77\u0A7C\u0A85\u0A8B\u0A8Ep;\u6905y;\u441C\u0100dl\u0A65\u0A6FiumSpace;\u605Flintrf;\u6133r;\uC000\uD835\uDD10nusPlus;\u6213pf;\uC000\uD835\uDD44c\xF2\u0A76;\u439C\u0480Jacefostu\u0AA3\u0AA7\u0AAD\u0AC0\u0B14\u0B19\u0D91\u0D97\u0D9Ecy;\u440Acute;\u4143\u0180aey\u0AB4\u0AB9\u0ABEron;\u4147dil;\u4145;\u441D\u0180gsw\u0AC7\u0AF0\u0B0Eative\u0180MTV\u0AD3\u0ADF\u0AE8ediumSpace;\u600Bhi\u0100cn\u0AE6\u0AD8\xEB\u0AD9eryThi\xEE\u0AD9ted\u0100GL\u0AF8\u0B06reaterGreate\xF2\u0673essLes\xF3\u0A48Line;\u400Ar;\uC000\uD835\uDD11\u0200Bnpt\u0B22\u0B28\u0B37\u0B3Areak;\u6060BreakingSpace;\u40A0f;\u6115\u0680;CDEGHLNPRSTV\u0B55\u0B56\u0B6A\u0B7C\u0BA1\u0BEB\u0C04\u0C5E\u0C84\u0CA6\u0CD8\u0D61\u0D85\u6AEC\u0100ou\u0B5B\u0B64ngruent;\u6262pCap;\u626DoubleVerticalBar;\u6226\u0180lqx\u0B83\u0B8A\u0B9Bement;\u6209ual\u0100;T\u0B92\u0B93\u6260ilde;\uC000\u2242\u0338ists;\u6204reater\u0380;EFGLST\u0BB6\u0BB7\u0BBD\u0BC9\u0BD3\u0BD8\u0BE5\u626Fqual;\u6271ullEqual;\uC000\u2267\u0338reater;\uC000\u226B\u0338ess;\u6279lantEqual;\uC000\u2A7E\u0338ilde;\u6275ump\u0144\u0BF2\u0BFDownHump;\uC000\u224E\u0338qual;\uC000\u224F\u0338e\u0100fs\u0C0A\u0C27tTriangle\u0180;BE\u0C1A\u0C1B\u0C21\u62EAar;\uC000\u29CF\u0338qual;\u62ECs\u0300;EGLST\u0C35\u0C36\u0C3C\u0C44\u0C4B\u0C58\u626Equal;\u6270reater;\u6278ess;\uC000\u226A\u0338lantEqual;\uC000\u2A7D\u0338ilde;\u6274ested\u0100GL\u0C68\u0C79reaterGreater;\uC000\u2AA2\u0338essLess;\uC000\u2AA1\u0338recedes\u0180;ES\u0C92\u0C93\u0C9B\u6280qual;\uC000\u2AAF\u0338lantEqual;\u62E0\u0100ei\u0CAB\u0CB9verseElement;\u620CghtTriangle\u0180;BE\u0CCB\u0CCC\u0CD2\u62EBar;\uC000\u29D0\u0338qual;\u62ED\u0100qu\u0CDD\u0D0CuareSu\u0100bp\u0CE8\u0CF9set\u0100;E\u0CF0\u0CF3\uC000\u228F\u0338qual;\u62E2erset\u0100;E\u0D03\u0D06\uC000\u2290\u0338qual;\u62E3\u0180bcp\u0D13\u0D24\u0D4Eset\u0100;E\u0D1B\u0D1E\uC000\u2282\u20D2qual;\u6288ceeds\u0200;EST\u0D32\u0D33\u0D3B\u0D46\u6281qual;\uC000\u2AB0\u0338lantEqual;\u62E1ilde;\uC000\u227F\u0338erset\u0100;E\u0D58\u0D5B\uC000\u2283\u20D2qual;\u6289ilde\u0200;EFT\u0D6E\u0D6F\u0D75\u0D7F\u6241qual;\u6244ullEqual;\u6247ilde;\u6249erticalBar;\u6224cr;\uC000\uD835\uDCA9ilde\u803B\xD1\u40D1;\u439D\u0700Eacdfgmoprstuv\u0DBD\u0DC2\u0DC9\u0DD5\u0DDB\u0DE0\u0DE7\u0DFC\u0E02\u0E20\u0E22\u0E32\u0E3F\u0E44lig;\u4152cute\u803B\xD3\u40D3\u0100iy\u0DCE\u0DD3rc\u803B\xD4\u40D4;\u441Eblac;\u4150r;\uC000\uD835\uDD12rave\u803B\xD2\u40D2\u0180aei\u0DEE\u0DF2\u0DF6cr;\u414Cga;\u43A9cron;\u439Fpf;\uC000\uD835\uDD46enCurly\u0100DQ\u0E0E\u0E1AoubleQuote;\u601Cuote;\u6018;\u6A54\u0100cl\u0E27\u0E2Cr;\uC000\uD835\uDCAAash\u803B\xD8\u40D8i\u016C\u0E37\u0E3Cde\u803B\xD5\u40D5es;\u6A37ml\u803B\xD6\u40D6er\u0100BP\u0E4B\u0E60\u0100ar\u0E50\u0E53r;\u603Eac\u0100ek\u0E5A\u0E5C;\u63DEet;\u63B4arenthesis;\u63DC\u0480acfhilors\u0E7F\u0E87\u0E8A\u0E8F\u0E92\u0E94\u0E9D\u0EB0\u0EFCrtialD;\u6202y;\u441Fr;\uC000\uD835\uDD13i;\u43A6;\u43A0usMinus;\u40B1\u0100ip\u0EA2\u0EADncareplan\xE5\u069Df;\u6119\u0200;eio\u0EB9\u0EBA\u0EE0\u0EE4\u6ABBcedes\u0200;EST\u0EC8\u0EC9\u0ECF\u0EDA\u627Aqual;\u6AAFlantEqual;\u627Cilde;\u627Eme;\u6033\u0100dp\u0EE9\u0EEEuct;\u620Fortion\u0100;a\u0225\u0EF9l;\u621D\u0100ci\u0F01\u0F06r;\uC000\uD835\uDCAB;\u43A8\u0200Ufos\u0F11\u0F16\u0F1B\u0F1FOT\u803B\"\u4022r;\uC000\uD835\uDD14pf;\u611Acr;\uC000\uD835\uDCAC\u0600BEacefhiorsu\u0F3E\u0F43\u0F47\u0F60\u0F73\u0FA7\u0FAA\u0FAD\u1096\u10A9\u10B4\u10BEarr;\u6910G\u803B\xAE\u40AE\u0180cnr\u0F4E\u0F53\u0F56ute;\u4154g;\u67EBr\u0100;t\u0F5C\u0F5D\u61A0l;\u6916\u0180aey\u0F67\u0F6C\u0F71ron;\u4158dil;\u4156;\u4420\u0100;v\u0F78\u0F79\u611Cerse\u0100EU\u0F82\u0F99\u0100lq\u0F87\u0F8Eement;\u620Builibrium;\u61CBpEquilibrium;\u696Fr\xBB\u0F79o;\u43A1ght\u0400ACDFTUVa\u0FC1\u0FEB\u0FF3\u1022\u1028\u105B\u1087\u03D8\u0100nr\u0FC6\u0FD2gleBracket;\u67E9row\u0180;BL\u0FDC\u0FDD\u0FE1\u6192ar;\u61E5eftArrow;\u61C4eiling;\u6309o\u01F5\u0FF9\x00\u1005bleBracket;\u67E7n\u01D4\u100A\x00\u1014eeVector;\u695Dector\u0100;B\u101D\u101E\u61C2ar;\u6955loor;\u630B\u0100er\u102D\u1043e\u0180;AV\u1035\u1036\u103C\u62A2rrow;\u61A6ector;\u695Biangle\u0180;BE\u1050\u1051\u1055\u62B3ar;\u69D0qual;\u62B5p\u0180DTV\u1063\u106E\u1078ownVector;\u694FeeVector;\u695Cector\u0100;B\u1082\u1083\u61BEar;\u6954ector\u0100;B\u1091\u1092\u61C0ar;\u6953\u0100pu\u109B\u109Ef;\u611DndImplies;\u6970ightarrow;\u61DB\u0100ch\u10B9\u10BCr;\u611B;\u61B1leDelayed;\u69F4\u0680HOacfhimoqstu\u10E4\u10F1\u10F7\u10FD\u1119\u111E\u1151\u1156\u1161\u1167\u11B5\u11BB\u11BF\u0100Cc\u10E9\u10EEHcy;\u4429y;\u4428FTcy;\u442Ccute;\u415A\u0280;aeiy\u1108\u1109\u110E\u1113\u1117\u6ABCron;\u4160dil;\u415Erc;\u415C;\u4421r;\uC000\uD835\uDD16ort\u0200DLRU\u112A\u1134\u113E\u1149ownArrow\xBB\u041EeftArrow\xBB\u089AightArrow\xBB\u0FDDpArrow;\u6191gma;\u43A3allCircle;\u6218pf;\uC000\uD835\uDD4A\u0272\u116D\x00\x00\u1170t;\u621Aare\u0200;ISU\u117B\u117C\u1189\u11AF\u65A1ntersection;\u6293u\u0100bp\u118F\u119Eset\u0100;E\u1197\u1198\u628Fqual;\u6291erset\u0100;E\u11A8\u11A9\u6290qual;\u6292nion;\u6294cr;\uC000\uD835\uDCAEar;\u62C6\u0200bcmp\u11C8\u11DB\u1209\u120B\u0100;s\u11CD\u11CE\u62D0et\u0100;E\u11CD\u11D5qual;\u6286\u0100ch\u11E0\u1205eeds\u0200;EST\u11ED\u11EE\u11F4\u11FF\u627Bqual;\u6AB0lantEqual;\u627Dilde;\u627FTh\xE1\u0F8C;\u6211\u0180;es\u1212\u1213\u1223\u62D1rset\u0100;E\u121C\u121D\u6283qual;\u6287et\xBB\u1213\u0580HRSacfhiors\u123E\u1244\u1249\u1255\u125E\u1271\u1276\u129F\u12C2\u12C8\u12D1ORN\u803B\xDE\u40DEADE;\u6122\u0100Hc\u124E\u1252cy;\u440By;\u4426\u0100bu\u125A\u125C;\u4009;\u43A4\u0180aey\u1265\u126A\u126Fron;\u4164dil;\u4162;\u4422r;\uC000\uD835\uDD17\u0100ei\u127B\u1289\u01F2\u1280\x00\u1287efore;\u6234a;\u4398\u0100cn\u128E\u1298kSpace;\uC000\u205F\u200ASpace;\u6009lde\u0200;EFT\u12AB\u12AC\u12B2\u12BC\u623Cqual;\u6243ullEqual;\u6245ilde;\u6248pf;\uC000\uD835\uDD4BipleDot;\u60DB\u0100ct\u12D6\u12DBr;\uC000\uD835\uDCAFrok;\u4166\u0AE1\u12F7\u130E\u131A\u1326\x00\u132C\u1331\x00\x00\x00\x00\x00\u1338\u133D\u1377\u1385\x00\u13FF\u1404\u140A\u1410\u0100cr\u12FB\u1301ute\u803B\xDA\u40DAr\u0100;o\u1307\u1308\u619Fcir;\u6949r\u01E3\u1313\x00\u1316y;\u440Eve;\u416C\u0100iy\u131E\u1323rc\u803B\xDB\u40DB;\u4423blac;\u4170r;\uC000\uD835\uDD18rave\u803B\xD9\u40D9acr;\u416A\u0100di\u1341\u1369er\u0100BP\u1348\u135D\u0100ar\u134D\u1350r;\u405Fac\u0100ek\u1357\u1359;\u63DFet;\u63B5arenthesis;\u63DDon\u0100;P\u1370\u1371\u62C3lus;\u628E\u0100gp\u137B\u137Fon;\u4172f;\uC000\uD835\uDD4C\u0400ADETadps\u1395\u13AE\u13B8\u13C4\u03E8\u13D2\u13D7\u13F3rrow\u0180;BD\u1150\u13A0\u13A4ar;\u6912ownArrow;\u61C5ownArrow;\u6195quilibrium;\u696Eee\u0100;A\u13CB\u13CC\u62A5rrow;\u61A5own\xE1\u03F3er\u0100LR\u13DE\u13E8eftArrow;\u6196ightArrow;\u6197i\u0100;l\u13F9\u13FA\u43D2on;\u43A5ing;\u416Ecr;\uC000\uD835\uDCB0ilde;\u4168ml\u803B\xDC\u40DC\u0480Dbcdefosv\u1427\u142C\u1430\u1433\u143E\u1485\u148A\u1490\u1496ash;\u62ABar;\u6AEBy;\u4412ash\u0100;l\u143B\u143C\u62A9;\u6AE6\u0100er\u1443\u1445;\u62C1\u0180bty\u144C\u1450\u147Aar;\u6016\u0100;i\u144F\u1455cal\u0200BLST\u1461\u1465\u146A\u1474ar;\u6223ine;\u407Ceparator;\u6758ilde;\u6240ThinSpace;\u600Ar;\uC000\uD835\uDD19pf;\uC000\uD835\uDD4Dcr;\uC000\uD835\uDCB1dash;\u62AA\u0280cefos\u14A7\u14AC\u14B1\u14B6\u14BCirc;\u4174dge;\u62C0r;\uC000\uD835\uDD1Apf;\uC000\uD835\uDD4Ecr;\uC000\uD835\uDCB2\u0200fios\u14CB\u14D0\u14D2\u14D8r;\uC000\uD835\uDD1B;\u439Epf;\uC000\uD835\uDD4Fcr;\uC000\uD835\uDCB3\u0480AIUacfosu\u14F1\u14F5\u14F9\u14FD\u1504\u150F\u1514\u151A\u1520cy;\u442Fcy;\u4407cy;\u442Ecute\u803B\xDD\u40DD\u0100iy\u1509\u150Drc;\u4176;\u442Br;\uC000\uD835\uDD1Cpf;\uC000\uD835\uDD50cr;\uC000\uD835\uDCB4ml;\u4178\u0400Hacdefos\u1535\u1539\u153F\u154B\u154F\u155D\u1560\u1564cy;\u4416cute;\u4179\u0100ay\u1544\u1549ron;\u417D;\u4417ot;\u417B\u01F2\u1554\x00\u155BoWidt\xE8\u0AD9a;\u4396r;\u6128pf;\u6124cr;\uC000\uD835\uDCB5\u0BE1\u1583\u158A\u1590\x00\u15B0\u15B6\u15BF\x00\x00\x00\x00\u15C6\u15DB\u15EB\u165F\u166D\x00\u1695\u169B\u16B2\u16B9\x00\u16BEcute\u803B\xE1\u40E1reve;\u4103\u0300;Ediuy\u159C\u159D\u15A1\u15A3\u15A8\u15AD\u623E;\uC000\u223E\u0333;\u623Frc\u803B\xE2\u40E2te\u80BB\xB4\u0306;\u4430lig\u803B\xE6\u40E6\u0100;r\xB2\u15BA;\uC000\uD835\uDD1Erave\u803B\xE0\u40E0\u0100ep\u15CA\u15D6\u0100fp\u15CF\u15D4sym;\u6135\xE8\u15D3ha;\u43B1\u0100ap\u15DFc\u0100cl\u15E4\u15E7r;\u4101g;\u6A3F\u0264\u15F0\x00\x00\u160A\u0280;adsv\u15FA\u15FB\u15FF\u1601\u1607\u6227nd;\u6A55;\u6A5Clope;\u6A58;\u6A5A\u0380;elmrsz\u1618\u1619\u161B\u161E\u163F\u164F\u1659\u6220;\u69A4e\xBB\u1619sd\u0100;a\u1625\u1626\u6221\u0461\u1630\u1632\u1634\u1636\u1638\u163A\u163C\u163E;\u69A8;\u69A9;\u69AA;\u69AB;\u69AC;\u69AD;\u69AE;\u69AFt\u0100;v\u1645\u1646\u621Fb\u0100;d\u164C\u164D\u62BE;\u699D\u0100pt\u1654\u1657h;\u6222\xBB\xB9arr;\u637C\u0100gp\u1663\u1667on;\u4105f;\uC000\uD835\uDD52\u0380;Eaeiop\u12C1\u167B\u167D\u1682\u1684\u1687\u168A;\u6A70cir;\u6A6F;\u624Ad;\u624Bs;\u4027rox\u0100;e\u12C1\u1692\xF1\u1683ing\u803B\xE5\u40E5\u0180cty\u16A1\u16A6\u16A8r;\uC000\uD835\uDCB6;\u402Amp\u0100;e\u12C1\u16AF\xF1\u0288ilde\u803B\xE3\u40E3ml\u803B\xE4\u40E4\u0100ci\u16C2\u16C8onin\xF4\u0272nt;\u6A11\u0800Nabcdefiklnoprsu\u16ED\u16F1\u1730\u173C\u1743\u1748\u1778\u177D\u17E0\u17E6\u1839\u1850\u170D\u193D\u1948\u1970ot;\u6AED\u0100cr\u16F6\u171Ek\u0200ceps\u1700\u1705\u170D\u1713ong;\u624Cpsilon;\u43F6rime;\u6035im\u0100;e\u171A\u171B\u623Dq;\u62CD\u0176\u1722\u1726ee;\u62BDed\u0100;g\u172C\u172D\u6305e\xBB\u172Drk\u0100;t\u135C\u1737brk;\u63B6\u0100oy\u1701\u1741;\u4431quo;\u601E\u0280cmprt\u1753\u175B\u1761\u1764\u1768aus\u0100;e\u010A\u0109ptyv;\u69B0s\xE9\u170Cno\xF5\u0113\u0180ahw\u176F\u1771\u1773;\u43B2;\u6136een;\u626Cr;\uC000\uD835\uDD1Fg\u0380costuvw\u178D\u179D\u17B3\u17C1\u17D5\u17DB\u17DE\u0180aiu\u1794\u1796\u179A\xF0\u0760rc;\u65EFp\xBB\u1371\u0180dpt\u17A4\u17A8\u17ADot;\u6A00lus;\u6A01imes;\u6A02\u0271\u17B9\x00\x00\u17BEcup;\u6A06ar;\u6605riangle\u0100du\u17CD\u17D2own;\u65BDp;\u65B3plus;\u6A04e\xE5\u1444\xE5\u14ADarow;\u690D\u0180ako\u17ED\u1826\u1835\u0100cn\u17F2\u1823k\u0180lst\u17FA\u05AB\u1802ozenge;\u69EBriangle\u0200;dlr\u1812\u1813\u1818\u181D\u65B4own;\u65BEeft;\u65C2ight;\u65B8k;\u6423\u01B1\u182B\x00\u1833\u01B2\u182F\x00\u1831;\u6592;\u65914;\u6593ck;\u6588\u0100eo\u183E\u184D\u0100;q\u1843\u1846\uC000=\u20E5uiv;\uC000\u2261\u20E5t;\u6310\u0200ptwx\u1859\u185E\u1867\u186Cf;\uC000\uD835\uDD53\u0100;t\u13CB\u1863om\xBB\u13CCtie;\u62C8\u0600DHUVbdhmptuv\u1885\u1896\u18AA\u18BB\u18D7\u18DB\u18EC\u18FF\u1905\u190A\u1910\u1921\u0200LRlr\u188E\u1890\u1892\u1894;\u6557;\u6554;\u6556;\u6553\u0280;DUdu\u18A1\u18A2\u18A4\u18A6\u18A8\u6550;\u6566;\u6569;\u6564;\u6567\u0200LRlr\u18B3\u18B5\u18B7\u18B9;\u655D;\u655A;\u655C;\u6559\u0380;HLRhlr\u18CA\u18CB\u18CD\u18CF\u18D1\u18D3\u18D5\u6551;\u656C;\u6563;\u6560;\u656B;\u6562;\u655Fox;\u69C9\u0200LRlr\u18E4\u18E6\u18E8\u18EA;\u6555;\u6552;\u6510;\u650C\u0280;DUdu\u06BD\u18F7\u18F9\u18FB\u18FD;\u6565;\u6568;\u652C;\u6534inus;\u629Flus;\u629Eimes;\u62A0\u0200LRlr\u1919\u191B\u191D\u191F;\u655B;\u6558;\u6518;\u6514\u0380;HLRhlr\u1930\u1931\u1933\u1935\u1937\u1939\u193B\u6502;\u656A;\u6561;\u655E;\u653C;\u6524;\u651C\u0100ev\u0123\u1942bar\u803B\xA6\u40A6\u0200ceio\u1951\u1956\u195A\u1960r;\uC000\uD835\uDCB7mi;\u604Fm\u0100;e\u171A\u171Cl\u0180;bh\u1968\u1969\u196B\u405C;\u69C5sub;\u67C8\u016C\u1974\u197El\u0100;e\u1979\u197A\u6022t\xBB\u197Ap\u0180;Ee\u012F\u1985\u1987;\u6AAE\u0100;q\u06DC\u06DB\u0CE1\u19A7\x00\u19E8\u1A11\u1A15\u1A32\x00\u1A37\u1A50\x00\x00\u1AB4\x00\x00\u1AC1\x00\x00\u1B21\u1B2E\u1B4D\u1B52\x00\u1BFD\x00\u1C0C\u0180cpr\u19AD\u19B2\u19DDute;\u4107\u0300;abcds\u19BF\u19C0\u19C4\u19CA\u19D5\u19D9\u6229nd;\u6A44rcup;\u6A49\u0100au\u19CF\u19D2p;\u6A4Bp;\u6A47ot;\u6A40;\uC000\u2229\uFE00\u0100eo\u19E2\u19E5t;\u6041\xEE\u0693\u0200aeiu\u19F0\u19FB\u1A01\u1A05\u01F0\u19F5\x00\u19F8s;\u6A4Don;\u410Ddil\u803B\xE7\u40E7rc;\u4109ps\u0100;s\u1A0C\u1A0D\u6A4Cm;\u6A50ot;\u410B\u0180dmn\u1A1B\u1A20\u1A26il\u80BB\xB8\u01ADptyv;\u69B2t\u8100\xA2;e\u1A2D\u1A2E\u40A2r\xE4\u01B2r;\uC000\uD835\uDD20\u0180cei\u1A3D\u1A40\u1A4Dy;\u4447ck\u0100;m\u1A47\u1A48\u6713ark\xBB\u1A48;\u43C7r\u0380;Ecefms\u1A5F\u1A60\u1A62\u1A6B\u1AA4\u1AAA\u1AAE\u65CB;\u69C3\u0180;el\u1A69\u1A6A\u1A6D\u42C6q;\u6257e\u0261\u1A74\x00\x00\u1A88rrow\u0100lr\u1A7C\u1A81eft;\u61BAight;\u61BB\u0280RSacd\u1A92\u1A94\u1A96\u1A9A\u1A9F\xBB\u0F47;\u64C8st;\u629Birc;\u629Aash;\u629Dnint;\u6A10id;\u6AEFcir;\u69C2ubs\u0100;u\u1ABB\u1ABC\u6663it\xBB\u1ABC\u02EC\u1AC7\u1AD4\u1AFA\x00\u1B0Aon\u0100;e\u1ACD\u1ACE\u403A\u0100;q\xC7\xC6\u026D\u1AD9\x00\x00\u1AE2a\u0100;t\u1ADE\u1ADF\u402C;\u4040\u0180;fl\u1AE8\u1AE9\u1AEB\u6201\xEE\u1160e\u0100mx\u1AF1\u1AF6ent\xBB\u1AE9e\xF3\u024D\u01E7\u1AFE\x00\u1B07\u0100;d\u12BB\u1B02ot;\u6A6Dn\xF4\u0246\u0180fry\u1B10\u1B14\u1B17;\uC000\uD835\uDD54o\xE4\u0254\u8100\xA9;s\u0155\u1B1Dr;\u6117\u0100ao\u1B25\u1B29rr;\u61B5ss;\u6717\u0100cu\u1B32\u1B37r;\uC000\uD835\uDCB8\u0100bp\u1B3C\u1B44\u0100;e\u1B41\u1B42\u6ACF;\u6AD1\u0100;e\u1B49\u1B4A\u6AD0;\u6AD2dot;\u62EF\u0380delprvw\u1B60\u1B6C\u1B77\u1B82\u1BAC\u1BD4\u1BF9arr\u0100lr\u1B68\u1B6A;\u6938;\u6935\u0270\u1B72\x00\x00\u1B75r;\u62DEc;\u62DFarr\u0100;p\u1B7F\u1B80\u61B6;\u693D\u0300;bcdos\u1B8F\u1B90\u1B96\u1BA1\u1BA5\u1BA8\u622Arcap;\u6A48\u0100au\u1B9B\u1B9Ep;\u6A46p;\u6A4Aot;\u628Dr;\u6A45;\uC000\u222A\uFE00\u0200alrv\u1BB5\u1BBF\u1BDE\u1BE3rr\u0100;m\u1BBC\u1BBD\u61B7;\u693Cy\u0180evw\u1BC7\u1BD4\u1BD8q\u0270\u1BCE\x00\x00\u1BD2re\xE3\u1B73u\xE3\u1B75ee;\u62CEedge;\u62CFen\u803B\xA4\u40A4earrow\u0100lr\u1BEE\u1BF3eft\xBB\u1B80ight\xBB\u1BBDe\xE4\u1BDD\u0100ci\u1C01\u1C07onin\xF4\u01F7nt;\u6231lcty;\u632D\u0980AHabcdefhijlorstuwz\u1C38\u1C3B\u1C3F\u1C5D\u1C69\u1C75\u1C8A\u1C9E\u1CAC\u1CB7\u1CFB\u1CFF\u1D0D\u1D7B\u1D91\u1DAB\u1DBB\u1DC6\u1DCDr\xF2\u0381ar;\u6965\u0200glrs\u1C48\u1C4D\u1C52\u1C54ger;\u6020eth;\u6138\xF2\u1133h\u0100;v\u1C5A\u1C5B\u6010\xBB\u090A\u016B\u1C61\u1C67arow;\u690Fa\xE3\u0315\u0100ay\u1C6E\u1C73ron;\u410F;\u4434\u0180;ao\u0332\u1C7C\u1C84\u0100gr\u02BF\u1C81r;\u61CAtseq;\u6A77\u0180glm\u1C91\u1C94\u1C98\u803B\xB0\u40B0ta;\u43B4ptyv;\u69B1\u0100ir\u1CA3\u1CA8sht;\u697F;\uC000\uD835\uDD21ar\u0100lr\u1CB3\u1CB5\xBB\u08DC\xBB\u101E\u0280aegsv\u1CC2\u0378\u1CD6\u1CDC\u1CE0m\u0180;os\u0326\u1CCA\u1CD4nd\u0100;s\u0326\u1CD1uit;\u6666amma;\u43DDin;\u62F2\u0180;io\u1CE7\u1CE8\u1CF8\u40F7de\u8100\xF7;o\u1CE7\u1CF0ntimes;\u62C7n\xF8\u1CF7cy;\u4452c\u026F\u1D06\x00\x00\u1D0Arn;\u631Eop;\u630D\u0280lptuw\u1D18\u1D1D\u1D22\u1D49\u1D55lar;\u4024f;\uC000\uD835\uDD55\u0280;emps\u030B\u1D2D\u1D37\u1D3D\u1D42q\u0100;d\u0352\u1D33ot;\u6251inus;\u6238lus;\u6214quare;\u62A1blebarwedg\xE5\xFAn\u0180adh\u112E\u1D5D\u1D67ownarrow\xF3\u1C83arpoon\u0100lr\u1D72\u1D76ef\xF4\u1CB4igh\xF4\u1CB6\u0162\u1D7F\u1D85karo\xF7\u0F42\u026F\u1D8A\x00\x00\u1D8Ern;\u631Fop;\u630C\u0180cot\u1D98\u1DA3\u1DA6\u0100ry\u1D9D\u1DA1;\uC000\uD835\uDCB9;\u4455l;\u69F6rok;\u4111\u0100dr\u1DB0\u1DB4ot;\u62F1i\u0100;f\u1DBA\u1816\u65BF\u0100ah\u1DC0\u1DC3r\xF2\u0429a\xF2\u0FA6angle;\u69A6\u0100ci\u1DD2\u1DD5y;\u445Fgrarr;\u67FF\u0900Dacdefglmnopqrstux\u1E01\u1E09\u1E19\u1E38\u0578\u1E3C\u1E49\u1E61\u1E7E\u1EA5\u1EAF\u1EBD\u1EE1\u1F2A\u1F37\u1F44\u1F4E\u1F5A\u0100Do\u1E06\u1D34o\xF4\u1C89\u0100cs\u1E0E\u1E14ute\u803B\xE9\u40E9ter;\u6A6E\u0200aioy\u1E22\u1E27\u1E31\u1E36ron;\u411Br\u0100;c\u1E2D\u1E2E\u6256\u803B\xEA\u40EAlon;\u6255;\u444Dot;\u4117\u0100Dr\u1E41\u1E45ot;\u6252;\uC000\uD835\uDD22\u0180;rs\u1E50\u1E51\u1E57\u6A9Aave\u803B\xE8\u40E8\u0100;d\u1E5C\u1E5D\u6A96ot;\u6A98\u0200;ils\u1E6A\u1E6B\u1E72\u1E74\u6A99nters;\u63E7;\u6113\u0100;d\u1E79\u1E7A\u6A95ot;\u6A97\u0180aps\u1E85\u1E89\u1E97cr;\u4113ty\u0180;sv\u1E92\u1E93\u1E95\u6205et\xBB\u1E93p\u01001;\u1E9D\u1EA4\u0133\u1EA1\u1EA3;\u6004;\u6005\u6003\u0100gs\u1EAA\u1EAC;\u414Bp;\u6002\u0100gp\u1EB4\u1EB8on;\u4119f;\uC000\uD835\uDD56\u0180als\u1EC4\u1ECE\u1ED2r\u0100;s\u1ECA\u1ECB\u62D5l;\u69E3us;\u6A71i\u0180;lv\u1EDA\u1EDB\u1EDF\u43B5on\xBB\u1EDB;\u43F5\u0200csuv\u1EEA\u1EF3\u1F0B\u1F23\u0100io\u1EEF\u1E31rc\xBB\u1E2E\u0269\u1EF9\x00\x00\u1EFB\xED\u0548ant\u0100gl\u1F02\u1F06tr\xBB\u1E5Dess\xBB\u1E7A\u0180aei\u1F12\u1F16\u1F1Als;\u403Dst;\u625Fv\u0100;D\u0235\u1F20D;\u6A78parsl;\u69E5\u0100Da\u1F2F\u1F33ot;\u6253rr;\u6971\u0180cdi\u1F3E\u1F41\u1EF8r;\u612Fo\xF4\u0352\u0100ah\u1F49\u1F4B;\u43B7\u803B\xF0\u40F0\u0100mr\u1F53\u1F57l\u803B\xEB\u40EBo;\u60AC\u0180cip\u1F61\u1F64\u1F67l;\u4021s\xF4\u056E\u0100eo\u1F6C\u1F74ctatio\xEE\u0559nential\xE5\u0579\u09E1\u1F92\x00\u1F9E\x00\u1FA1\u1FA7\x00\x00\u1FC6\u1FCC\x00\u1FD3\x00\u1FE6\u1FEA\u2000\x00\u2008\u205Allingdotse\xF1\u1E44y;\u4444male;\u6640\u0180ilr\u1FAD\u1FB3\u1FC1lig;\u8000\uFB03\u0269\u1FB9\x00\x00\u1FBDg;\u8000\uFB00ig;\u8000\uFB04;\uC000\uD835\uDD23lig;\u8000\uFB01lig;\uC000fj\u0180alt\u1FD9\u1FDC\u1FE1t;\u666Dig;\u8000\uFB02ns;\u65B1of;\u4192\u01F0\u1FEE\x00\u1FF3f;\uC000\uD835\uDD57\u0100ak\u05BF\u1FF7\u0100;v\u1FFC\u1FFD\u62D4;\u6AD9artint;\u6A0D\u0100ao\u200C\u2055\u0100cs\u2011\u2052\u03B1\u201A\u2030\u2038\u2045\u2048\x00\u2050\u03B2\u2022\u2025\u2027\u202A\u202C\x00\u202E\u803B\xBD\u40BD;\u6153\u803B\xBC\u40BC;\u6155;\u6159;\u615B\u01B3\u2034\x00\u2036;\u6154;\u6156\u02B4\u203E\u2041\x00\x00\u2043\u803B\xBE\u40BE;\u6157;\u615C5;\u6158\u01B6\u204C\x00\u204E;\u615A;\u615D8;\u615El;\u6044wn;\u6322cr;\uC000\uD835\uDCBB\u0880Eabcdefgijlnorstv\u2082\u2089\u209F\u20A5\u20B0\u20B4\u20F0\u20F5\u20FA\u20FF\u2103\u2112\u2138\u0317\u213E\u2152\u219E\u0100;l\u064D\u2087;\u6A8C\u0180cmp\u2090\u2095\u209Dute;\u41F5ma\u0100;d\u209C\u1CDA\u43B3;\u6A86reve;\u411F\u0100iy\u20AA\u20AErc;\u411D;\u4433ot;\u4121\u0200;lqs\u063E\u0642\u20BD\u20C9\u0180;qs\u063E\u064C\u20C4lan\xF4\u0665\u0200;cdl\u0665\u20D2\u20D5\u20E5c;\u6AA9ot\u0100;o\u20DC\u20DD\u6A80\u0100;l\u20E2\u20E3\u6A82;\u6A84\u0100;e\u20EA\u20ED\uC000\u22DB\uFE00s;\u6A94r;\uC000\uD835\uDD24\u0100;g\u0673\u061Bmel;\u6137cy;\u4453\u0200;Eaj\u065A\u210C\u210E\u2110;\u6A92;\u6AA5;\u6AA4\u0200Eaes\u211B\u211D\u2129\u2134;\u6269p\u0100;p\u2123\u2124\u6A8Arox\xBB\u2124\u0100;q\u212E\u212F\u6A88\u0100;q\u212E\u211Bim;\u62E7pf;\uC000\uD835\uDD58\u0100ci\u2143\u2146r;\u610Am\u0180;el\u066B\u214E\u2150;\u6A8E;\u6A90\u8300>;cdlqr\u05EE\u2160\u216A\u216E\u2173\u2179\u0100ci\u2165\u2167;\u6AA7r;\u6A7Aot;\u62D7Par;\u6995uest;\u6A7C\u0280adels\u2184\u216A\u2190\u0656\u219B\u01F0\u2189\x00\u218Epro\xF8\u209Er;\u6978q\u0100lq\u063F\u2196les\xF3\u2088i\xED\u066B\u0100en\u21A3\u21ADrtneqq;\uC000\u2269\uFE00\xC5\u21AA\u0500Aabcefkosy\u21C4\u21C7\u21F1\u21F5\u21FA\u2218\u221D\u222F\u2268\u227Dr\xF2\u03A0\u0200ilmr\u21D0\u21D4\u21D7\u21DBrs\xF0\u1484f\xBB\u2024il\xF4\u06A9\u0100dr\u21E0\u21E4cy;\u444A\u0180;cw\u08F4\u21EB\u21EFir;\u6948;\u61ADar;\u610Firc;\u4125\u0180alr\u2201\u220E\u2213rts\u0100;u\u2209\u220A\u6665it\xBB\u220Alip;\u6026con;\u62B9r;\uC000\uD835\uDD25s\u0100ew\u2223\u2229arow;\u6925arow;\u6926\u0280amopr\u223A\u223E\u2243\u225E\u2263rr;\u61FFtht;\u623Bk\u0100lr\u2249\u2253eftarrow;\u61A9ightarrow;\u61AAf;\uC000\uD835\uDD59bar;\u6015\u0180clt\u226F\u2274\u2278r;\uC000\uD835\uDCBDas\xE8\u21F4rok;\u4127\u0100bp\u2282\u2287ull;\u6043hen\xBB\u1C5B\u0AE1\u22A3\x00\u22AA\x00\u22B8\u22C5\u22CE\x00\u22D5\u22F3\x00\x00\u22F8\u2322\u2367\u2362\u237F\x00\u2386\u23AA\u23B4cute\u803B\xED\u40ED\u0180;iy\u0771\u22B0\u22B5rc\u803B\xEE\u40EE;\u4438\u0100cx\u22BC\u22BFy;\u4435cl\u803B\xA1\u40A1\u0100fr\u039F\u22C9;\uC000\uD835\uDD26rave\u803B\xEC\u40EC\u0200;ino\u073E\u22DD\u22E9\u22EE\u0100in\u22E2\u22E6nt;\u6A0Ct;\u622Dfin;\u69DCta;\u6129lig;\u4133\u0180aop\u22FE\u231A\u231D\u0180cgt\u2305\u2308\u2317r;\u412B\u0180elp\u071F\u230F\u2313in\xE5\u078Ear\xF4\u0720h;\u4131f;\u62B7ed;\u41B5\u0280;cfot\u04F4\u232C\u2331\u233D\u2341are;\u6105in\u0100;t\u2338\u2339\u621Eie;\u69DDdo\xF4\u2319\u0280;celp\u0757\u234C\u2350\u235B\u2361al;\u62BA\u0100gr\u2355\u2359er\xF3\u1563\xE3\u234Darhk;\u6A17rod;\u6A3C\u0200cgpt\u236F\u2372\u2376\u237By;\u4451on;\u412Ff;\uC000\uD835\uDD5Aa;\u43B9uest\u803B\xBF\u40BF\u0100ci\u238A\u238Fr;\uC000\uD835\uDCBEn\u0280;Edsv\u04F4\u239B\u239D\u23A1\u04F3;\u62F9ot;\u62F5\u0100;v\u23A6\u23A7\u62F4;\u62F3\u0100;i\u0777\u23AElde;\u4129\u01EB\u23B8\x00\u23BCcy;\u4456l\u803B\xEF\u40EF\u0300cfmosu\u23CC\u23D7\u23DC\u23E1\u23E7\u23F5\u0100iy\u23D1\u23D5rc;\u4135;\u4439r;\uC000\uD835\uDD27ath;\u4237pf;\uC000\uD835\uDD5B\u01E3\u23EC\x00\u23F1r;\uC000\uD835\uDCBFrcy;\u4458kcy;\u4454\u0400acfghjos\u240B\u2416\u2422\u2427\u242D\u2431\u2435\u243Bppa\u0100;v\u2413\u2414\u43BA;\u43F0\u0100ey\u241B\u2420dil;\u4137;\u443Ar;\uC000\uD835\uDD28reen;\u4138cy;\u4445cy;\u445Cpf;\uC000\uD835\uDD5Ccr;\uC000\uD835\uDCC0\u0B80ABEHabcdefghjlmnoprstuv\u2470\u2481\u2486\u248D\u2491\u250E\u253D\u255A\u2580\u264E\u265E\u2665\u2679\u267D\u269A\u26B2\u26D8\u275D\u2768\u278B\u27C0\u2801\u2812\u0180art\u2477\u247A\u247Cr\xF2\u09C6\xF2\u0395ail;\u691Barr;\u690E\u0100;g\u0994\u248B;\u6A8Bar;\u6962\u0963\u24A5\x00\u24AA\x00\u24B1\x00\x00\x00\x00\x00\u24B5\u24BA\x00\u24C6\u24C8\u24CD\x00\u24F9ute;\u413Amptyv;\u69B4ra\xEE\u084Cbda;\u43BBg\u0180;dl\u088E\u24C1\u24C3;\u6991\xE5\u088E;\u6A85uo\u803B\xAB\u40ABr\u0400;bfhlpst\u0899\u24DE\u24E6\u24E9\u24EB\u24EE\u24F1\u24F5\u0100;f\u089D\u24E3s;\u691Fs;\u691D\xEB\u2252p;\u61ABl;\u6939im;\u6973l;\u61A2\u0180;ae\u24FF\u2500\u2504\u6AABil;\u6919\u0100;s\u2509\u250A\u6AAD;\uC000\u2AAD\uFE00\u0180abr\u2515\u2519\u251Drr;\u690Crk;\u6772\u0100ak\u2522\u252Cc\u0100ek\u2528\u252A;\u407B;\u405B\u0100es\u2531\u2533;\u698Bl\u0100du\u2539\u253B;\u698F;\u698D\u0200aeuy\u2546\u254B\u2556\u2558ron;\u413E\u0100di\u2550\u2554il;\u413C\xEC\u08B0\xE2\u2529;\u443B\u0200cqrs\u2563\u2566\u256D\u257Da;\u6936uo\u0100;r\u0E19\u1746\u0100du\u2572\u2577har;\u6967shar;\u694Bh;\u61B2\u0280;fgqs\u258B\u258C\u0989\u25F3\u25FF\u6264t\u0280ahlrt\u2598\u25A4\u25B7\u25C2\u25E8rrow\u0100;t\u0899\u25A1a\xE9\u24F6arpoon\u0100du\u25AF\u25B4own\xBB\u045Ap\xBB\u0966eftarrows;\u61C7ight\u0180ahs\u25CD\u25D6\u25DErrow\u0100;s\u08F4\u08A7arpoon\xF3\u0F98quigarro\xF7\u21F0hreetimes;\u62CB\u0180;qs\u258B\u0993\u25FAlan\xF4\u09AC\u0280;cdgs\u09AC\u260A\u260D\u261D\u2628c;\u6AA8ot\u0100;o\u2614\u2615\u6A7F\u0100;r\u261A\u261B\u6A81;\u6A83\u0100;e\u2622\u2625\uC000\u22DA\uFE00s;\u6A93\u0280adegs\u2633\u2639\u263D\u2649\u264Bppro\xF8\u24C6ot;\u62D6q\u0100gq\u2643\u2645\xF4\u0989gt\xF2\u248C\xF4\u099Bi\xED\u09B2\u0180ilr\u2655\u08E1\u265Asht;\u697C;\uC000\uD835\uDD29\u0100;E\u099C\u2663;\u6A91\u0161\u2669\u2676r\u0100du\u25B2\u266E\u0100;l\u0965\u2673;\u696Alk;\u6584cy;\u4459\u0280;acht\u0A48\u2688\u268B\u2691\u2696r\xF2\u25C1orne\xF2\u1D08ard;\u696Bri;\u65FA\u0100io\u269F\u26A4dot;\u4140ust\u0100;a\u26AC\u26AD\u63B0che\xBB\u26AD\u0200Eaes\u26BB\u26BD\u26C9\u26D4;\u6268p\u0100;p\u26C3\u26C4\u6A89rox\xBB\u26C4\u0100;q\u26CE\u26CF\u6A87\u0100;q\u26CE\u26BBim;\u62E6\u0400abnoptwz\u26E9\u26F4\u26F7\u271A\u272F\u2741\u2747\u2750\u0100nr\u26EE\u26F1g;\u67ECr;\u61FDr\xEB\u08C1g\u0180lmr\u26FF\u270D\u2714eft\u0100ar\u09E6\u2707ight\xE1\u09F2apsto;\u67FCight\xE1\u09FDparrow\u0100lr\u2725\u2729ef\xF4\u24EDight;\u61AC\u0180afl\u2736\u2739\u273Dr;\u6985;\uC000\uD835\uDD5Dus;\u6A2Dimes;\u6A34\u0161\u274B\u274Fst;\u6217\xE1\u134E\u0180;ef\u2757\u2758\u1800\u65CAnge\xBB\u2758ar\u0100;l\u2764\u2765\u4028t;\u6993\u0280achmt\u2773\u2776\u277C\u2785\u2787r\xF2\u08A8orne\xF2\u1D8Car\u0100;d\u0F98\u2783;\u696D;\u600Eri;\u62BF\u0300achiqt\u2798\u279D\u0A40\u27A2\u27AE\u27BBquo;\u6039r;\uC000\uD835\uDCC1m\u0180;eg\u09B2\u27AA\u27AC;\u6A8D;\u6A8F\u0100bu\u252A\u27B3o\u0100;r\u0E1F\u27B9;\u601Arok;\u4142\u8400<;cdhilqr\u082B\u27D2\u2639\u27DC\u27E0\u27E5\u27EA\u27F0\u0100ci\u27D7\u27D9;\u6AA6r;\u6A79re\xE5\u25F2mes;\u62C9arr;\u6976uest;\u6A7B\u0100Pi\u27F5\u27F9ar;\u6996\u0180;ef\u2800\u092D\u181B\u65C3r\u0100du\u2807\u280Dshar;\u694Ahar;\u6966\u0100en\u2817\u2821rtneqq;\uC000\u2268\uFE00\xC5\u281E\u0700Dacdefhilnopsu\u2840\u2845\u2882\u288E\u2893\u28A0\u28A5\u28A8\u28DA\u28E2\u28E4\u0A83\u28F3\u2902Dot;\u623A\u0200clpr\u284E\u2852\u2863\u287Dr\u803B\xAF\u40AF\u0100et\u2857\u2859;\u6642\u0100;e\u285E\u285F\u6720se\xBB\u285F\u0100;s\u103B\u2868to\u0200;dlu\u103B\u2873\u2877\u287Bow\xEE\u048Cef\xF4\u090F\xF0\u13D1ker;\u65AE\u0100oy\u2887\u288Cmma;\u6A29;\u443Cash;\u6014asuredangle\xBB\u1626r;\uC000\uD835\uDD2Ao;\u6127\u0180cdn\u28AF\u28B4\u28C9ro\u803B\xB5\u40B5\u0200;acd\u1464\u28BD\u28C0\u28C4s\xF4\u16A7ir;\u6AF0ot\u80BB\xB7\u01B5us\u0180;bd\u28D2\u1903\u28D3\u6212\u0100;u\u1D3C\u28D8;\u6A2A\u0163\u28DE\u28E1p;\u6ADB\xF2\u2212\xF0\u0A81\u0100dp\u28E9\u28EEels;\u62A7f;\uC000\uD835\uDD5E\u0100ct\u28F8\u28FDr;\uC000\uD835\uDCC2pos\xBB\u159D\u0180;lm\u2909\u290A\u290D\u43BCtimap;\u62B8\u0C00GLRVabcdefghijlmoprstuvw\u2942\u2953\u297E\u2989\u2998\u29DA\u29E9\u2A15\u2A1A\u2A58\u2A5D\u2A83\u2A95\u2AA4\u2AA8\u2B04\u2B07\u2B44\u2B7F\u2BAE\u2C34\u2C67\u2C7C\u2CE9\u0100gt\u2947\u294B;\uC000\u22D9\u0338\u0100;v\u2950\u0BCF\uC000\u226B\u20D2\u0180elt\u295A\u2972\u2976ft\u0100ar\u2961\u2967rrow;\u61CDightarrow;\u61CE;\uC000\u22D8\u0338\u0100;v\u297B\u0C47\uC000\u226A\u20D2ightarrow;\u61CF\u0100Dd\u298E\u2993ash;\u62AFash;\u62AE\u0280bcnpt\u29A3\u29A7\u29AC\u29B1\u29CCla\xBB\u02DEute;\u4144g;\uC000\u2220\u20D2\u0280;Eiop\u0D84\u29BC\u29C0\u29C5\u29C8;\uC000\u2A70\u0338d;\uC000\u224B\u0338s;\u4149ro\xF8\u0D84ur\u0100;a\u29D3\u29D4\u666El\u0100;s\u29D3\u0B38\u01F3\u29DF\x00\u29E3p\u80BB\xA0\u0B37mp\u0100;e\u0BF9\u0C00\u0280aeouy\u29F4\u29FE\u2A03\u2A10\u2A13\u01F0\u29F9\x00\u29FB;\u6A43on;\u4148dil;\u4146ng\u0100;d\u0D7E\u2A0Aot;\uC000\u2A6D\u0338p;\u6A42;\u443Dash;\u6013\u0380;Aadqsx\u0B92\u2A29\u2A2D\u2A3B\u2A41\u2A45\u2A50rr;\u61D7r\u0100hr\u2A33\u2A36k;\u6924\u0100;o\u13F2\u13F0ot;\uC000\u2250\u0338ui\xF6\u0B63\u0100ei\u2A4A\u2A4Ear;\u6928\xED\u0B98ist\u0100;s\u0BA0\u0B9Fr;\uC000\uD835\uDD2B\u0200Eest\u0BC5\u2A66\u2A79\u2A7C\u0180;qs\u0BBC\u2A6D\u0BE1\u0180;qs\u0BBC\u0BC5\u2A74lan\xF4\u0BE2i\xED\u0BEA\u0100;r\u0BB6\u2A81\xBB\u0BB7\u0180Aap\u2A8A\u2A8D\u2A91r\xF2\u2971rr;\u61AEar;\u6AF2\u0180;sv\u0F8D\u2A9C\u0F8C\u0100;d\u2AA1\u2AA2\u62FC;\u62FAcy;\u445A\u0380AEadest\u2AB7\u2ABA\u2ABE\u2AC2\u2AC5\u2AF6\u2AF9r\xF2\u2966;\uC000\u2266\u0338rr;\u619Ar;\u6025\u0200;fqs\u0C3B\u2ACE\u2AE3\u2AEFt\u0100ar\u2AD4\u2AD9rro\xF7\u2AC1ightarro\xF7\u2A90\u0180;qs\u0C3B\u2ABA\u2AEAlan\xF4\u0C55\u0100;s\u0C55\u2AF4\xBB\u0C36i\xED\u0C5D\u0100;r\u0C35\u2AFEi\u0100;e\u0C1A\u0C25i\xE4\u0D90\u0100pt\u2B0C\u2B11f;\uC000\uD835\uDD5F\u8180\xAC;in\u2B19\u2B1A\u2B36\u40ACn\u0200;Edv\u0B89\u2B24\u2B28\u2B2E;\uC000\u22F9\u0338ot;\uC000\u22F5\u0338\u01E1\u0B89\u2B33\u2B35;\u62F7;\u62F6i\u0100;v\u0CB8\u2B3C\u01E1\u0CB8\u2B41\u2B43;\u62FE;\u62FD\u0180aor\u2B4B\u2B63\u2B69r\u0200;ast\u0B7B\u2B55\u2B5A\u2B5Flle\xEC\u0B7Bl;\uC000\u2AFD\u20E5;\uC000\u2202\u0338lint;\u6A14\u0180;ce\u0C92\u2B70\u2B73u\xE5\u0CA5\u0100;c\u0C98\u2B78\u0100;e\u0C92\u2B7D\xF1\u0C98\u0200Aait\u2B88\u2B8B\u2B9D\u2BA7r\xF2\u2988rr\u0180;cw\u2B94\u2B95\u2B99\u619B;\uC000\u2933\u0338;\uC000\u219D\u0338ghtarrow\xBB\u2B95ri\u0100;e\u0CCB\u0CD6\u0380chimpqu\u2BBD\u2BCD\u2BD9\u2B04\u0B78\u2BE4\u2BEF\u0200;cer\u0D32\u2BC6\u0D37\u2BC9u\xE5\u0D45;\uC000\uD835\uDCC3ort\u026D\u2B05\x00\x00\u2BD6ar\xE1\u2B56m\u0100;e\u0D6E\u2BDF\u0100;q\u0D74\u0D73su\u0100bp\u2BEB\u2BED\xE5\u0CF8\xE5\u0D0B\u0180bcp\u2BF6\u2C11\u2C19\u0200;Ees\u2BFF\u2C00\u0D22\u2C04\u6284;\uC000\u2AC5\u0338et\u0100;e\u0D1B\u2C0Bq\u0100;q\u0D23\u2C00c\u0100;e\u0D32\u2C17\xF1\u0D38\u0200;Ees\u2C22\u2C23\u0D5F\u2C27\u6285;\uC000\u2AC6\u0338et\u0100;e\u0D58\u2C2Eq\u0100;q\u0D60\u2C23\u0200gilr\u2C3D\u2C3F\u2C45\u2C47\xEC\u0BD7lde\u803B\xF1\u40F1\xE7\u0C43iangle\u0100lr\u2C52\u2C5Ceft\u0100;e\u0C1A\u2C5A\xF1\u0C26ight\u0100;e\u0CCB\u2C65\xF1\u0CD7\u0100;m\u2C6C\u2C6D\u43BD\u0180;es\u2C74\u2C75\u2C79\u4023ro;\u6116p;\u6007\u0480DHadgilrs\u2C8F\u2C94\u2C99\u2C9E\u2CA3\u2CB0\u2CB6\u2CD3\u2CE3ash;\u62ADarr;\u6904p;\uC000\u224D\u20D2ash;\u62AC\u0100et\u2CA8\u2CAC;\uC000\u2265\u20D2;\uC000>\u20D2nfin;\u69DE\u0180Aet\u2CBD\u2CC1\u2CC5rr;\u6902;\uC000\u2264\u20D2\u0100;r\u2CCA\u2CCD\uC000<\u20D2ie;\uC000\u22B4\u20D2\u0100At\u2CD8\u2CDCrr;\u6903rie;\uC000\u22B5\u20D2im;\uC000\u223C\u20D2\u0180Aan\u2CF0\u2CF4\u2D02rr;\u61D6r\u0100hr\u2CFA\u2CFDk;\u6923\u0100;o\u13E7\u13E5ear;\u6927\u1253\u1A95\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\u2D2D\x00\u2D38\u2D48\u2D60\u2D65\u2D72\u2D84\u1B07\x00\x00\u2D8D\u2DAB\x00\u2DC8\u2DCE\x00\u2DDC\u2E19\u2E2B\u2E3E\u2E43\u0100cs\u2D31\u1A97ute\u803B\xF3\u40F3\u0100iy\u2D3C\u2D45r\u0100;c\u1A9E\u2D42\u803B\xF4\u40F4;\u443E\u0280abios\u1AA0\u2D52\u2D57\u01C8\u2D5Alac;\u4151v;\u6A38old;\u69BClig;\u4153\u0100cr\u2D69\u2D6Dir;\u69BF;\uC000\uD835\uDD2C\u036F\u2D79\x00\x00\u2D7C\x00\u2D82n;\u42DBave\u803B\xF2\u40F2;\u69C1\u0100bm\u2D88\u0DF4ar;\u69B5\u0200acit\u2D95\u2D98\u2DA5\u2DA8r\xF2\u1A80\u0100ir\u2D9D\u2DA0r;\u69BEoss;\u69BBn\xE5\u0E52;\u69C0\u0180aei\u2DB1\u2DB5\u2DB9cr;\u414Dga;\u43C9\u0180cdn\u2DC0\u2DC5\u01CDron;\u43BF;\u69B6pf;\uC000\uD835\uDD60\u0180ael\u2DD4\u2DD7\u01D2r;\u69B7rp;\u69B9\u0380;adiosv\u2DEA\u2DEB\u2DEE\u2E08\u2E0D\u2E10\u2E16\u6228r\xF2\u1A86\u0200;efm\u2DF7\u2DF8\u2E02\u2E05\u6A5Dr\u0100;o\u2DFE\u2DFF\u6134f\xBB\u2DFF\u803B\xAA\u40AA\u803B\xBA\u40BAgof;\u62B6r;\u6A56lope;\u6A57;\u6A5B\u0180clo\u2E1F\u2E21\u2E27\xF2\u2E01ash\u803B\xF8\u40F8l;\u6298i\u016C\u2E2F\u2E34de\u803B\xF5\u40F5es\u0100;a\u01DB\u2E3As;\u6A36ml\u803B\xF6\u40F6bar;\u633D\u0AE1\u2E5E\x00\u2E7D\x00\u2E80\u2E9D\x00\u2EA2\u2EB9\x00\x00\u2ECB\u0E9C\x00\u2F13\x00\x00\u2F2B\u2FBC\x00\u2FC8r\u0200;ast\u0403\u2E67\u2E72\u0E85\u8100\xB6;l\u2E6D\u2E6E\u40B6le\xEC\u0403\u0269\u2E78\x00\x00\u2E7Bm;\u6AF3;\u6AFDy;\u443Fr\u0280cimpt\u2E8B\u2E8F\u2E93\u1865\u2E97nt;\u4025od;\u402Eil;\u6030enk;\u6031r;\uC000\uD835\uDD2D\u0180imo\u2EA8\u2EB0\u2EB4\u0100;v\u2EAD\u2EAE\u43C6;\u43D5ma\xF4\u0A76ne;\u660E\u0180;tv\u2EBF\u2EC0\u2EC8\u43C0chfork\xBB\u1FFD;\u43D6\u0100au\u2ECF\u2EDFn\u0100ck\u2ED5\u2EDDk\u0100;h\u21F4\u2EDB;\u610E\xF6\u21F4s\u0480;abcdemst\u2EF3\u2EF4\u1908\u2EF9\u2EFD\u2F04\u2F06\u2F0A\u2F0E\u402Bcir;\u6A23ir;\u6A22\u0100ou\u1D40\u2F02;\u6A25;\u6A72n\u80BB\xB1\u0E9Dim;\u6A26wo;\u6A27\u0180ipu\u2F19\u2F20\u2F25ntint;\u6A15f;\uC000\uD835\uDD61nd\u803B\xA3\u40A3\u0500;Eaceinosu\u0EC8\u2F3F\u2F41\u2F44\u2F47\u2F81\u2F89\u2F92\u2F7E\u2FB6;\u6AB3p;\u6AB7u\xE5\u0ED9\u0100;c\u0ECE\u2F4C\u0300;acens\u0EC8\u2F59\u2F5F\u2F66\u2F68\u2F7Eppro\xF8\u2F43urlye\xF1\u0ED9\xF1\u0ECE\u0180aes\u2F6F\u2F76\u2F7Approx;\u6AB9qq;\u6AB5im;\u62E8i\xED\u0EDFme\u0100;s\u2F88\u0EAE\u6032\u0180Eas\u2F78\u2F90\u2F7A\xF0\u2F75\u0180dfp\u0EEC\u2F99\u2FAF\u0180als\u2FA0\u2FA5\u2FAAlar;\u632Eine;\u6312urf;\u6313\u0100;t\u0EFB\u2FB4\xEF\u0EFBrel;\u62B0\u0100ci\u2FC0\u2FC5r;\uC000\uD835\uDCC5;\u43C8ncsp;\u6008\u0300fiopsu\u2FDA\u22E2\u2FDF\u2FE5\u2FEB\u2FF1r;\uC000\uD835\uDD2Epf;\uC000\uD835\uDD62rime;\u6057cr;\uC000\uD835\uDCC6\u0180aeo\u2FF8\u3009\u3013t\u0100ei\u2FFE\u3005rnion\xF3\u06B0nt;\u6A16st\u0100;e\u3010\u3011\u403F\xF1\u1F19\xF4\u0F14\u0A80ABHabcdefhilmnoprstux\u3040\u3051\u3055\u3059\u30E0\u310E\u312B\u3147\u3162\u3172\u318E\u3206\u3215\u3224\u3229\u3258\u326E\u3272\u3290\u32B0\u32B7\u0180art\u3047\u304A\u304Cr\xF2\u10B3\xF2\u03DDail;\u691Car\xF2\u1C65ar;\u6964\u0380cdenqrt\u3068\u3075\u3078\u307F\u308F\u3094\u30CC\u0100eu\u306D\u3071;\uC000\u223D\u0331te;\u4155i\xE3\u116Emptyv;\u69B3g\u0200;del\u0FD1\u3089\u308B\u308D;\u6992;\u69A5\xE5\u0FD1uo\u803B\xBB\u40BBr\u0580;abcfhlpstw\u0FDC\u30AC\u30AF\u30B7\u30B9\u30BC\u30BE\u30C0\u30C3\u30C7\u30CAp;\u6975\u0100;f\u0FE0\u30B4s;\u6920;\u6933s;\u691E\xEB\u225D\xF0\u272El;\u6945im;\u6974l;\u61A3;\u619D\u0100ai\u30D1\u30D5il;\u691Ao\u0100;n\u30DB\u30DC\u6236al\xF3\u0F1E\u0180abr\u30E7\u30EA\u30EEr\xF2\u17E5rk;\u6773\u0100ak\u30F3\u30FDc\u0100ek\u30F9\u30FB;\u407D;\u405D\u0100es\u3102\u3104;\u698Cl\u0100du\u310A\u310C;\u698E;\u6990\u0200aeuy\u3117\u311C\u3127\u3129ron;\u4159\u0100di\u3121\u3125il;\u4157\xEC\u0FF2\xE2\u30FA;\u4440\u0200clqs\u3134\u3137\u313D\u3144a;\u6937dhar;\u6969uo\u0100;r\u020E\u020Dh;\u61B3\u0180acg\u314E\u315F\u0F44l\u0200;ips\u0F78\u3158\u315B\u109Cn\xE5\u10BBar\xF4\u0FA9t;\u65AD\u0180ilr\u3169\u1023\u316Esht;\u697D;\uC000\uD835\uDD2F\u0100ao\u3177\u3186r\u0100du\u317D\u317F\xBB\u047B\u0100;l\u1091\u3184;\u696C\u0100;v\u318B\u318C\u43C1;\u43F1\u0180gns\u3195\u31F9\u31FCht\u0300ahlrst\u31A4\u31B0\u31C2\u31D8\u31E4\u31EErrow\u0100;t\u0FDC\u31ADa\xE9\u30C8arpoon\u0100du\u31BB\u31BFow\xEE\u317Ep\xBB\u1092eft\u0100ah\u31CA\u31D0rrow\xF3\u0FEAarpoon\xF3\u0551ightarrows;\u61C9quigarro\xF7\u30CBhreetimes;\u62CCg;\u42DAingdotse\xF1\u1F32\u0180ahm\u320D\u3210\u3213r\xF2\u0FEAa\xF2\u0551;\u600Foust\u0100;a\u321E\u321F\u63B1che\xBB\u321Fmid;\u6AEE\u0200abpt\u3232\u323D\u3240\u3252\u0100nr\u3237\u323Ag;\u67EDr;\u61FEr\xEB\u1003\u0180afl\u3247\u324A\u324Er;\u6986;\uC000\uD835\uDD63us;\u6A2Eimes;\u6A35\u0100ap\u325D\u3267r\u0100;g\u3263\u3264\u4029t;\u6994olint;\u6A12ar\xF2\u31E3\u0200achq\u327B\u3280\u10BC\u3285quo;\u603Ar;\uC000\uD835\uDCC7\u0100bu\u30FB\u328Ao\u0100;r\u0214\u0213\u0180hir\u3297\u329B\u32A0re\xE5\u31F8mes;\u62CAi\u0200;efl\u32AA\u1059\u1821\u32AB\u65B9tri;\u69CEluhar;\u6968;\u611E\u0D61\u32D5\u32DB\u32DF\u332C\u3338\u3371\x00\u337A\u33A4\x00\x00\u33EC\u33F0\x00\u3428\u3448\u345A\u34AD\u34B1\u34CA\u34F1\x00\u3616\x00\x00\u3633cute;\u415Bqu\xEF\u27BA\u0500;Eaceinpsy\u11ED\u32F3\u32F5\u32FF\u3302\u330B\u330F\u331F\u3326\u3329;\u6AB4\u01F0\u32FA\x00\u32FC;\u6AB8on;\u4161u\xE5\u11FE\u0100;d\u11F3\u3307il;\u415Frc;\u415D\u0180Eas\u3316\u3318\u331B;\u6AB6p;\u6ABAim;\u62E9olint;\u6A13i\xED\u1204;\u4441ot\u0180;be\u3334\u1D47\u3335\u62C5;\u6A66\u0380Aacmstx\u3346\u334A\u3357\u335B\u335E\u3363\u336Drr;\u61D8r\u0100hr\u3350\u3352\xEB\u2228\u0100;o\u0A36\u0A34t\u803B\xA7\u40A7i;\u403Bwar;\u6929m\u0100in\u3369\xF0nu\xF3\xF1t;\u6736r\u0100;o\u3376\u2055\uC000\uD835\uDD30\u0200acoy\u3382\u3386\u3391\u33A0rp;\u666F\u0100hy\u338B\u338Fcy;\u4449;\u4448rt\u026D\u3399\x00\x00\u339Ci\xE4\u1464ara\xEC\u2E6F\u803B\xAD\u40AD\u0100gm\u33A8\u33B4ma\u0180;fv\u33B1\u33B2\u33B2\u43C3;\u43C2\u0400;deglnpr\u12AB\u33C5\u33C9\u33CE\u33D6\u33DE\u33E1\u33E6ot;\u6A6A\u0100;q\u12B1\u12B0\u0100;E\u33D3\u33D4\u6A9E;\u6AA0\u0100;E\u33DB\u33DC\u6A9D;\u6A9Fe;\u6246lus;\u6A24arr;\u6972ar\xF2\u113D\u0200aeit\u33F8\u3408\u340F\u3417\u0100ls\u33FD\u3404lsetm\xE9\u336Ahp;\u6A33parsl;\u69E4\u0100dl\u1463\u3414e;\u6323\u0100;e\u341C\u341D\u6AAA\u0100;s\u3422\u3423\u6AAC;\uC000\u2AAC\uFE00\u0180flp\u342E\u3433\u3442tcy;\u444C\u0100;b\u3438\u3439\u402F\u0100;a\u343E\u343F\u69C4r;\u633Ff;\uC000\uD835\uDD64a\u0100dr\u344D\u0402es\u0100;u\u3454\u3455\u6660it\xBB\u3455\u0180csu\u3460\u3479\u349F\u0100au\u3465\u346Fp\u0100;s\u1188\u346B;\uC000\u2293\uFE00p\u0100;s\u11B4\u3475;\uC000\u2294\uFE00u\u0100bp\u347F\u348F\u0180;es\u1197\u119C\u3486et\u0100;e\u1197\u348D\xF1\u119D\u0180;es\u11A8\u11AD\u3496et\u0100;e\u11A8\u349D\xF1\u11AE\u0180;af\u117B\u34A6\u05B0r\u0165\u34AB\u05B1\xBB\u117Car\xF2\u1148\u0200cemt\u34B9\u34BE\u34C2\u34C5r;\uC000\uD835\uDCC8tm\xEE\xF1i\xEC\u3415ar\xE6\u11BE\u0100ar\u34CE\u34D5r\u0100;f\u34D4\u17BF\u6606\u0100an\u34DA\u34EDight\u0100ep\u34E3\u34EApsilo\xEE\u1EE0h\xE9\u2EAFs\xBB\u2852\u0280bcmnp\u34FB\u355E\u1209\u358B\u358E\u0480;Edemnprs\u350E\u350F\u3511\u3515\u351E\u3523\u352C\u3531\u3536\u6282;\u6AC5ot;\u6ABD\u0100;d\u11DA\u351Aot;\u6AC3ult;\u6AC1\u0100Ee\u3528\u352A;\u6ACB;\u628Alus;\u6ABFarr;\u6979\u0180eiu\u353D\u3552\u3555t\u0180;en\u350E\u3545\u354Bq\u0100;q\u11DA\u350Feq\u0100;q\u352B\u3528m;\u6AC7\u0100bp\u355A\u355C;\u6AD5;\u6AD3c\u0300;acens\u11ED\u356C\u3572\u3579\u357B\u3326ppro\xF8\u32FAurlye\xF1\u11FE\xF1\u11F3\u0180aes\u3582\u3588\u331Bppro\xF8\u331Aq\xF1\u3317g;\u666A\u0680123;Edehlmnps\u35A9\u35AC\u35AF\u121C\u35B2\u35B4\u35C0\u35C9\u35D5\u35DA\u35DF\u35E8\u35ED\u803B\xB9\u40B9\u803B\xB2\u40B2\u803B\xB3\u40B3;\u6AC6\u0100os\u35B9\u35BCt;\u6ABEub;\u6AD8\u0100;d\u1222\u35C5ot;\u6AC4s\u0100ou\u35CF\u35D2l;\u67C9b;\u6AD7arr;\u697Bult;\u6AC2\u0100Ee\u35E4\u35E6;\u6ACC;\u628Blus;\u6AC0\u0180eiu\u35F4\u3609\u360Ct\u0180;en\u121C\u35FC\u3602q\u0100;q\u1222\u35B2eq\u0100;q\u35E7\u35E4m;\u6AC8\u0100bp\u3611\u3613;\u6AD4;\u6AD6\u0180Aan\u361C\u3620\u362Drr;\u61D9r\u0100hr\u3626\u3628\xEB\u222E\u0100;o\u0A2B\u0A29war;\u692Alig\u803B\xDF\u40DF\u0BE1\u3651\u365D\u3660\u12CE\u3673\u3679\x00\u367E\u36C2\x00\x00\x00\x00\x00\u36DB\u3703\x00\u3709\u376C\x00\x00\x00\u3787\u0272\u3656\x00\x00\u365Bget;\u6316;\u43C4r\xEB\u0E5F\u0180aey\u3666\u366B\u3670ron;\u4165dil;\u4163;\u4442lrec;\u6315r;\uC000\uD835\uDD31\u0200eiko\u3686\u369D\u36B5\u36BC\u01F2\u368B\x00\u3691e\u01004f\u1284\u1281a\u0180;sv\u3698\u3699\u369B\u43B8ym;\u43D1\u0100cn\u36A2\u36B2k\u0100as\u36A8\u36AEppro\xF8\u12C1im\xBB\u12ACs\xF0\u129E\u0100as\u36BA\u36AE\xF0\u12C1rn\u803B\xFE\u40FE\u01EC\u031F\u36C6\u22E7es\u8180\xD7;bd\u36CF\u36D0\u36D8\u40D7\u0100;a\u190F\u36D5r;\u6A31;\u6A30\u0180eps\u36E1\u36E3\u3700\xE1\u2A4D\u0200;bcf\u0486\u36EC\u36F0\u36F4ot;\u6336ir;\u6AF1\u0100;o\u36F9\u36FC\uC000\uD835\uDD65rk;\u6ADA\xE1\u3362rime;\u6034\u0180aip\u370F\u3712\u3764d\xE5\u1248\u0380adempst\u3721\u374D\u3740\u3751\u3757\u375C\u375Fngle\u0280;dlqr\u3730\u3731\u3736\u3740\u3742\u65B5own\xBB\u1DBBeft\u0100;e\u2800\u373E\xF1\u092E;\u625Cight\u0100;e\u32AA\u374B\xF1\u105Aot;\u65ECinus;\u6A3Alus;\u6A39b;\u69CDime;\u6A3Bezium;\u63E2\u0180cht\u3772\u377D\u3781\u0100ry\u3777\u377B;\uC000\uD835\uDCC9;\u4446cy;\u445Brok;\u4167\u0100io\u378B\u378Ex\xF4\u1777head\u0100lr\u3797\u37A0eftarro\xF7\u084Fightarrow\xBB\u0F5D\u0900AHabcdfghlmoprstuw\u37D0\u37D3\u37D7\u37E4\u37F0\u37FC\u380E\u381C\u3823\u3834\u3851\u385D\u386B\u38A9\u38CC\u38D2\u38EA\u38F6r\xF2\u03EDar;\u6963\u0100cr\u37DC\u37E2ute\u803B\xFA\u40FA\xF2\u1150r\u01E3\u37EA\x00\u37EDy;\u445Eve;\u416D\u0100iy\u37F5\u37FArc\u803B\xFB\u40FB;\u4443\u0180abh\u3803\u3806\u380Br\xF2\u13ADlac;\u4171a\xF2\u13C3\u0100ir\u3813\u3818sht;\u697E;\uC000\uD835\uDD32rave\u803B\xF9\u40F9\u0161\u3827\u3831r\u0100lr\u382C\u382E\xBB\u0957\xBB\u1083lk;\u6580\u0100ct\u3839\u384D\u026F\u383F\x00\x00\u384Arn\u0100;e\u3845\u3846\u631Cr\xBB\u3846op;\u630Fri;\u65F8\u0100al\u3856\u385Acr;\u416B\u80BB\xA8\u0349\u0100gp\u3862\u3866on;\u4173f;\uC000\uD835\uDD66\u0300adhlsu\u114B\u3878\u387D\u1372\u3891\u38A0own\xE1\u13B3arpoon\u0100lr\u3888\u388Cef\xF4\u382Digh\xF4\u382Fi\u0180;hl\u3899\u389A\u389C\u43C5\xBB\u13FAon\xBB\u389Aparrows;\u61C8\u0180cit\u38B0\u38C4\u38C8\u026F\u38B6\x00\x00\u38C1rn\u0100;e\u38BC\u38BD\u631Dr\xBB\u38BDop;\u630Eng;\u416Fri;\u65F9cr;\uC000\uD835\uDCCA\u0180dir\u38D9\u38DD\u38E2ot;\u62F0lde;\u4169i\u0100;f\u3730\u38E8\xBB\u1813\u0100am\u38EF\u38F2r\xF2\u38A8l\u803B\xFC\u40FCangle;\u69A7\u0780ABDacdeflnoprsz\u391C\u391F\u3929\u392D\u39B5\u39B8\u39BD\u39DF\u39E4\u39E8\u39F3\u39F9\u39FD\u3A01\u3A20r\xF2\u03F7ar\u0100;v\u3926\u3927\u6AE8;\u6AE9as\xE8\u03E1\u0100nr\u3932\u3937grt;\u699C\u0380eknprst\u34E3\u3946\u394B\u3952\u395D\u3964\u3996app\xE1\u2415othin\xE7\u1E96\u0180hir\u34EB\u2EC8\u3959op\xF4\u2FB5\u0100;h\u13B7\u3962\xEF\u318D\u0100iu\u3969\u396Dgm\xE1\u33B3\u0100bp\u3972\u3984setneq\u0100;q\u397D\u3980\uC000\u228A\uFE00;\uC000\u2ACB\uFE00setneq\u0100;q\u398F\u3992\uC000\u228B\uFE00;\uC000\u2ACC\uFE00\u0100hr\u399B\u399Fet\xE1\u369Ciangle\u0100lr\u39AA\u39AFeft\xBB\u0925ight\xBB\u1051y;\u4432ash\xBB\u1036\u0180elr\u39C4\u39D2\u39D7\u0180;be\u2DEA\u39CB\u39CFar;\u62BBq;\u625Alip;\u62EE\u0100bt\u39DC\u1468a\xF2\u1469r;\uC000\uD835\uDD33tr\xE9\u39AEsu\u0100bp\u39EF\u39F1\xBB\u0D1C\xBB\u0D59pf;\uC000\uD835\uDD67ro\xF0\u0EFBtr\xE9\u39B4\u0100cu\u3A06\u3A0Br;\uC000\uD835\uDCCB\u0100bp\u3A10\u3A18n\u0100Ee\u3980\u3A16\xBB\u397En\u0100Ee\u3992\u3A1E\xBB\u3990igzag;\u699A\u0380cefoprs\u3A36\u3A3B\u3A56\u3A5B\u3A54\u3A61\u3A6Airc;\u4175\u0100di\u3A40\u3A51\u0100bg\u3A45\u3A49ar;\u6A5Fe\u0100;q\u15FA\u3A4F;\u6259erp;\u6118r;\uC000\uD835\uDD34pf;\uC000\uD835\uDD68\u0100;e\u1479\u3A66at\xE8\u1479cr;\uC000\uD835\uDCCC\u0AE3\u178E\u3A87\x00\u3A8B\x00\u3A90\u3A9B\x00\x00\u3A9D\u3AA8\u3AAB\u3AAF\x00\x00\u3AC3\u3ACE\x00\u3AD8\u17DC\u17DFtr\xE9\u17D1r;\uC000\uD835\uDD35\u0100Aa\u3A94\u3A97r\xF2\u03C3r\xF2\u09F6;\u43BE\u0100Aa\u3AA1\u3AA4r\xF2\u03B8r\xF2\u09EBa\xF0\u2713is;\u62FB\u0180dpt\u17A4\u3AB5\u3ABE\u0100fl\u3ABA\u17A9;\uC000\uD835\uDD69im\xE5\u17B2\u0100Aa\u3AC7\u3ACAr\xF2\u03CEr\xF2\u0A01\u0100cq\u3AD2\u17B8r;\uC000\uD835\uDCCD\u0100pt\u17D6\u3ADCr\xE9\u17D4\u0400acefiosu\u3AF0\u3AFD\u3B08\u3B0C\u3B11\u3B15\u3B1B\u3B21c\u0100uy\u3AF6\u3AFBte\u803B\xFD\u40FD;\u444F\u0100iy\u3B02\u3B06rc;\u4177;\u444Bn\u803B\xA5\u40A5r;\uC000\uD835\uDD36cy;\u4457pf;\uC000\uD835\uDD6Acr;\uC000\uD835\uDCCE\u0100cm\u3B26\u3B29y;\u444El\u803B\xFF\u40FF\u0500acdefhiosw\u3B42\u3B48\u3B54\u3B58\u3B64\u3B69\u3B6D\u3B74\u3B7A\u3B80cute;\u417A\u0100ay\u3B4D\u3B52ron;\u417E;\u4437ot;\u417C\u0100et\u3B5D\u3B61tr\xE6\u155Fa;\u43B6r;\uC000\uD835\uDD37cy;\u4436grarr;\u61DDpf;\uC000\uD835\uDD6Bcr;\uC000\uD835\uDCCF\u0100jn\u3B85\u3B87;\u600Dj;\u600C".split("").map((c)=>c.charCodeAt(0)));var Kh=new Uint16Array("\u0200aglq\t\x15\x18\x1B\u026D\x0F\x00\x00\x12p;\u4026os;\u4027t;\u403Et;\u403Cuot;\u4022".split("").map((c)=>c.charCodeAt(0)));var m$,tU=new Map([[0,65533],[128,8364],[130,8218],[131,402],[132,8222],[133,8230],[134,8224],[135,8225],[136,710],[137,8240],[138,352],[139,8249],[140,338],[142,381],[145,8216],[146,8217],[147,8220],[148,8221],[149,8226],[150,8211],[151,8212],[152,732],[153,8482],[154,353],[155,8250],[156,339],[158,382],[159,376]]),of=(m$=String.fromCodePoint)!==null&&m$!==void 0?m$:function(c){let f="";if(c>65535)c-=65536,f+=String.fromCharCode(c>>>10&1023|55296),c=56320|c&1023;return f+=String.fromCharCode(c),f};function pR(c){var f;if(c>=55296&&c<=57343||c>1114111)return 65533;return(f=tU.get(c))!==null&&f!==void 0?f:c}var fc;(function(c){c[c.NUM=35]="NUM",c[c.SEMI=59]="SEMI",c[c.EQUALS=61]="EQUALS",c[c.ZERO=48]="ZERO",c[c.NINE=57]="NINE",c[c.LOWER_A=97]="LOWER_A",c[c.LOWER_F=102]="LOWER_F",c[c.LOWER_X=120]="LOWER_X",c[c.LOWER_Z=122]="LOWER_Z",c[c.UPPER_A=65]="UPPER_A",c[c.UPPER_F=70]="UPPER_F",c[c.UPPER_Z=90]="UPPER_Z"})(fc||(fc={}));var rU=32,Mc;(function(c){c[c.VALUE_LENGTH=49152]="VALUE_LENGTH",c[c.BRANCH_LENGTH=16256]="BRANCH_LENGTH",c[c.JUMP_TABLE=127]="JUMP_TABLE"})(Mc||(Mc={}));function p$(c){return c>=fc.ZERO&&c<=fc.NINE}function eU(c){return c>=fc.UPPER_A&&c<=fc.UPPER_F||c>=fc.LOWER_A&&c<=fc.LOWER_F}function cY(c){return c>=fc.UPPER_A&&c<=fc.UPPER_Z||c>=fc.LOWER_A&&c<=fc.LOWER_Z||p$(c)}function fY(c){return c===fc.EQUALS||cY(c)}var cc;(function(c){c[c.EntityStart=0]="EntityStart",c[c.NumericStart=1]="NumericStart",c[c.NumericDecimal=2]="NumericDecimal",c[c.NumericHex=3]="NumericHex",c[c.NamedEntity=4]="NamedEntity"})(cc||(cc={}));var zf;(function(c){c[c.Legacy=0]="Legacy",c[c.Strict=1]="Strict",c[c.Attribute=2]="Attribute"})(zf||(zf={}));class _6{constructor(c,f,R){this.decodeTree=c,this.emitCodePoint=f,this.errors=R,this.state=cc.EntityStart,this.consumed=1,this.result=0,this.treeIndex=0,this.excess=1,this.decodeMode=zf.Strict}startEntity(c){this.decodeMode=c,this.state=cc.EntityStart,this.result=0,this.treeIndex=0,this.excess=1,this.consumed=1}write(c,f){switch(this.state){case cc.EntityStart:{if(c.charCodeAt(f)===fc.NUM)return this.state=cc.NumericStart,this.consumed+=1,this.stateNumericStart(c,f+1);return this.state=cc.NamedEntity,this.stateNamedEntity(c,f)}case cc.NumericStart:return this.stateNumericStart(c,f);case cc.NumericDecimal:return this.stateNumericDecimal(c,f);case cc.NumericHex:return this.stateNumericHex(c,f);case cc.NamedEntity:return this.stateNamedEntity(c,f)}}stateNumericStart(c,f){if(f>=c.length)return-1;if((c.charCodeAt(f)|rU)===fc.LOWER_X)return this.state=cc.NumericHex,this.consumed+=1,this.stateNumericHex(c,f+1);return this.state=cc.NumericDecimal,this.stateNumericDecimal(c,f)}addToNumericResult(c,f,R,h){if(f!==R){let $=R-f;this.result=this.result*Math.pow(h,$)+parseInt(c.substr(f,$),h),this.consumed+=$}}stateNumericHex(c,f){let R=f;while(f<c.length){let h=c.charCodeAt(f);if(p$(h)||eU(h))f+=1;else return this.addToNumericResult(c,R,f,16),this.emitNumericEntity(h,3)}return this.addToNumericResult(c,R,f,16),-1}stateNumericDecimal(c,f){let R=f;while(f<c.length){let h=c.charCodeAt(f);if(p$(h))f+=1;else return this.addToNumericResult(c,R,f,10),this.emitNumericEntity(h,2)}return this.addToNumericResult(c,R,f,10),-1}emitNumericEntity(c,f){var R;if(this.consumed<=f)return(R=this.errors)===null||R===void 0||R.absenceOfDigitsInNumericCharacterReference(this.consumed),0;if(c===fc.SEMI)this.consumed+=1;else if(this.decodeMode===zf.Strict)return 0;if(this.emitCodePoint(pR(this.result),this.consumed),this.errors){if(c!==fc.SEMI)this.errors.missingSemicolonAfterCharacterReference();this.errors.validateNumericCharacterReference(this.result)}return this.consumed}stateNamedEntity(c,f){let{decodeTree:R}=this,h=R[this.treeIndex],$=(h&Mc.VALUE_LENGTH)>>14;for(;f<c.length;f++,this.excess++){let H=c.charCodeAt(f);if(this.treeIndex=s$(R,h,this.treeIndex+Math.max(1,$),H),this.treeIndex<0)return this.result===0||this.decodeMode===zf.Attribute&&($===0||fY(H))?0:this.emitNotTerminatedNamedEntity();if(h=R[this.treeIndex],$=(h&Mc.VALUE_LENGTH)>>14,$!==0){if(H===fc.SEMI)return this.emitNamedEntityData(this.treeIndex,$,this.consumed+this.excess);if(this.decodeMode!==zf.Strict)this.result=this.treeIndex,this.consumed+=this.excess,this.excess=0}}return-1}emitNotTerminatedNamedEntity(){var c;let{result:f,decodeTree:R}=this,h=(R[f]&Mc.VALUE_LENGTH)>>14;return this.emitNamedEntityData(f,h,this.consumed),(c=this.errors)===null||c===void 0||c.missingSemicolonAfterCharacterReference(),this.consumed}emitNamedEntityData(c,f,R){let{decodeTree:h}=this;if(this.emitCodePoint(f===1?h[c]&~Mc.VALUE_LENGTH:h[c+1],R),f===3)this.emitCodePoint(h[c+2],R);return R}end(){var c;switch(this.state){case cc.NamedEntity:return this.result!==0&&(this.decodeMode!==zf.Attribute||this.result===this.treeIndex)?this.emitNotTerminatedNamedEntity():0;case cc.NumericDecimal:return this.emitNumericEntity(0,2);case cc.NumericHex:return this.emitNumericEntity(0,3);case cc.NumericStart:return(c=this.errors)===null||c===void 0||c.absenceOfDigitsInNumericCharacterReference(this.consumed),0;case cc.EntityStart:return 0}}}function n6(c){let f="",R=new _6(c,(h)=>f+=of(h));return function($,H){let A=0,G=0;while((G=$.indexOf("&",G))>=0){f+=$.slice(A,G),R.startEntity(H);let F=R.write($,G+1);if(F<0){A=G+R.end();break}A=G+F,G=F===0?A+1:A}let y=f+$.slice(A);return f="",y}}function s$(c,f,R,h){let $=(f&Mc.BRANCH_LENGTH)>>7,H=f&Mc.JUMP_TABLE;if($===0)return H!==0&&h===H?R:-1;if(H){let y=h-H;return y<0||y>=$?-1:c[R+y]-1}let A=R,G=A+$-1;while(A<=G){let y=A+G>>>1,F=c[y];if(F<h)A=y+1;else if(F>h)G=y-1;else return c[y+$]}return-1}var rM=n6(Ph),eM=n6(Kh);var J;(function(c){c[c.Tab=9]="Tab",c[c.NewLine=10]="NewLine",c[c.FormFeed=12]="FormFeed",c[c.CarriageReturn=13]="CarriageReturn",c[c.Space=32]="Space",c[c.ExclamationMark=33]="ExclamationMark",c[c.Number=35]="Number",c[c.Amp=38]="Amp",c[c.SingleQuote=39]="SingleQuote",c[c.DoubleQuote=34]="DoubleQuote",c[c.Dash=45]="Dash",c[c.Slash=47]="Slash",c[c.Zero=48]="Zero",c[c.Nine=57]="Nine",c[c.Semi=59]="Semi",c[c.Lt=60]="Lt",c[c.Eq=61]="Eq",c[c.Gt=62]="Gt",c[c.Questionmark=63]="Questionmark",c[c.UpperA=65]="UpperA",c[c.LowerA=97]="LowerA",c[c.UpperF=70]="UpperF",c[c.LowerF=102]="LowerF",c[c.UpperZ=90]="UpperZ",c[c.LowerZ=122]="LowerZ",c[c.LowerX=120]="LowerX",c[c.OpeningSquareBracket=91]="OpeningSquareBracket"})(J||(J={}));var v;(function(c){c[c.Text=1]="Text",c[c.BeforeTagName=2]="BeforeTagName",c[c.InTagName=3]="InTagName",c[c.InSelfClosingTag=4]="InSelfClosingTag",c[c.BeforeClosingTagName=5]="BeforeClosingTagName",c[c.InClosingTagName=6]="InClosingTagName",c[c.AfterClosingTagName=7]="AfterClosingTagName",c[c.BeforeAttributeName=8]="BeforeAttributeName",c[c.InAttributeName=9]="InAttributeName",c[c.AfterAttributeName=10]="AfterAttributeName",c[c.BeforeAttributeValue=11]="BeforeAttributeValue",c[c.InAttributeValueDq=12]="InAttributeValueDq",c[c.InAttributeValueSq=13]="InAttributeValueSq",c[c.InAttributeValueNq=14]="InAttributeValueNq",c[c.BeforeDeclaration=15]="BeforeDeclaration",c[c.InDeclaration=16]="InDeclaration",c[c.InProcessingInstruction=17]="InProcessingInstruction",c[c.BeforeComment=18]="BeforeComment",c[c.CDATASequence=19]="CDATASequence",c[c.InSpecialComment=20]="InSpecialComment",c[c.InCommentLike=21]="InCommentLike",c[c.BeforeSpecialS=22]="BeforeSpecialS",c[c.SpecialStartSequence=23]="SpecialStartSequence",c[c.InSpecialTag=24]="InSpecialTag",c[c.BeforeEntity=25]="BeforeEntity",c[c.BeforeNumericEntity=26]="BeforeNumericEntity",c[c.InNamedEntity=27]="InNamedEntity",c[c.InNumericEntity=28]="InNumericEntity",c[c.InHexEntity=29]="InHexEntity"})(v||(v={}));function lc(c){return c===J.Space||c===J.NewLine||c===J.Tab||c===J.FormFeed||c===J.CarriageReturn}function Oh(c){return c===J.Slash||c===J.Gt||lc(c)}function o6(c){return c>=J.Zero&&c<=J.Nine}function RY(c){return c>=J.LowerA&&c<=J.LowerZ||c>=J.UpperA&&c<=J.UpperZ}function hY(c){return c>=J.UpperA&&c<=J.UpperF||c>=J.LowerA&&c<=J.LowerF}var qc;(function(c){c[c.NoValue=0]="NoValue",c[c.Unquoted=1]="Unquoted",c[c.Single=2]="Single",c[c.Double=3]="Double"})(qc||(qc={}));var Zc={Cdata:new Uint8Array([67,68,65,84,65,91]),CdataEnd:new Uint8Array([93,93,62]),CommentEnd:new Uint8Array([45,45,62]),ScriptEnd:new Uint8Array([60,47,115,99,114,105,112,116]),StyleEnd:new Uint8Array([60,47,115,116,121,108,101]),TitleEnd:new Uint8Array([60,47,116,105,116,108,101])};class bh{constructor({xmlMode:c=!1,decodeEntities:f=!0},R){this.cbs=R,this.state=v.Text,this.buffer="",this.sectionStart=0,this.index=0,this.baseState=v.Text,this.isSpecial=!1,this.running=!0,this.offset=0,this.currentSequence=void 0,this.sequenceIndex=0,this.trieIndex=0,this.trieCurrent=0,this.entityResult=0,this.entityExcess=0,this.xmlMode=c,this.decodeEntities=f,this.entityTrie=c?Kh:Ph}reset(){this.state=v.Text,this.buffer="",this.sectionStart=0,this.index=0,this.baseState=v.Text,this.currentSequence=void 0,this.running=!0,this.offset=0}write(c){this.offset+=this.buffer.length,this.buffer=c,this.parse()}end(){if(this.running)this.finish()}pause(){this.running=!1}resume(){if(this.running=!0,this.index<this.buffer.length+this.offset)this.parse()}getIndex(){return this.index}getSectionStart(){return this.sectionStart}stateText(c){if(c===J.Lt||!this.decodeEntities&&this.fastForwardTo(J.Lt)){if(this.index>this.sectionStart)this.cbs.ontext(this.sectionStart,this.index);this.state=v.BeforeTagName,this.sectionStart=this.index}else if(this.decodeEntities&&c===J.Amp)this.state=v.BeforeEntity}stateSpecialStartSequence(c){let f=this.sequenceIndex===this.currentSequence.length;if(!(f?Oh(c):(c|32)===this.currentSequence[this.sequenceIndex]))this.isSpecial=!1;else if(!f){this.sequenceIndex++;return}this.sequenceIndex=0,this.state=v.InTagName,this.stateInTagName(c)}stateInSpecialTag(c){if(this.sequenceIndex===this.currentSequence.length){if(c===J.Gt||lc(c)){let f=this.index-this.currentSequence.length;if(this.sectionStart<f){let R=this.index;this.index=f,this.cbs.ontext(this.sectionStart,f),this.index=R}this.isSpecial=!1,this.sectionStart=f+2,this.stateInClosingTagName(c);return}this.sequenceIndex=0}if((c|32)===this.currentSequence[this.sequenceIndex])this.sequenceIndex+=1;else if(this.sequenceIndex===0){if(this.currentSequence===Zc.TitleEnd){if(this.decodeEntities&&c===J.Amp)this.state=v.BeforeEntity}else if(this.fastForwardTo(J.Lt))this.sequenceIndex=1}else this.sequenceIndex=Number(c===J.Lt)}stateCDATASequence(c){if(c===Zc.Cdata[this.sequenceIndex]){if(++this.sequenceIndex===Zc.Cdata.length)this.state=v.InCommentLike,this.currentSequence=Zc.CdataEnd,this.sequenceIndex=0,this.sectionStart=this.index+1}else this.sequenceIndex=0,this.state=v.InDeclaration,this.stateInDeclaration(c)}fastForwardTo(c){while(++this.index<this.buffer.length+this.offset)if(this.buffer.charCodeAt(this.index-this.offset)===c)return!0;return this.index=this.buffer.length+this.offset-1,!1}stateInCommentLike(c){if(c===this.currentSequence[this.sequenceIndex]){if(++this.sequenceIndex===this.currentSequence.length){if(this.currentSequence===Zc.CdataEnd)this.cbs.oncdata(this.sectionStart,this.index,2);else this.cbs.oncomment(this.sectionStart,this.index,2);this.sequenceIndex=0,this.sectionStart=this.index+1,this.state=v.Text}}else if(this.sequenceIndex===0){if(this.fastForwardTo(this.currentSequence[0]))this.sequenceIndex=1}else if(c!==this.currentSequence[this.sequenceIndex-1])this.sequenceIndex=0}isTagStartChar(c){return this.xmlMode?!Oh(c):RY(c)}startSpecial(c,f){this.isSpecial=!0,this.currentSequence=c,this.sequenceIndex=f,this.state=v.SpecialStartSequence}stateBeforeTagName(c){if(c===J.ExclamationMark)this.state=v.BeforeDeclaration,this.sectionStart=this.index+1;else if(c===J.Questionmark)this.state=v.InProcessingInstruction,this.sectionStart=this.index+1;else if(this.isTagStartChar(c)){let f=c|32;if(this.sectionStart=this.index,!this.xmlMode&&f===Zc.TitleEnd[2])this.startSpecial(Zc.TitleEnd,3);else this.state=!this.xmlMode&&f===Zc.ScriptEnd[2]?v.BeforeSpecialS:v.InTagName}else if(c===J.Slash)this.state=v.BeforeClosingTagName;else this.state=v.Text,this.stateText(c)}stateInTagName(c){if(Oh(c))this.cbs.onopentagname(this.sectionStart,this.index),this.sectionStart=-1,this.state=v.BeforeAttributeName,this.stateBeforeAttributeName(c)}stateBeforeClosingTagName(c){if(lc(c));else if(c===J.Gt)this.state=v.Text;else this.state=this.isTagStartChar(c)?v.InClosingTagName:v.InSpecialComment,this.sectionStart=this.index}stateInClosingTagName(c){if(c===J.Gt||lc(c))this.cbs.onclosetag(this.sectionStart,this.index),this.sectionStart=-1,this.state=v.AfterClosingTagName,this.stateAfterClosingTagName(c)}stateAfterClosingTagName(c){if(c===J.Gt||this.fastForwardTo(J.Gt))this.state=v.Text,this.baseState=v.Text,this.sectionStart=this.index+1}stateBeforeAttributeName(c){if(c===J.Gt){if(this.cbs.onopentagend(this.index),this.isSpecial)this.state=v.InSpecialTag,this.sequenceIndex=0;else this.state=v.Text;this.baseState=this.state,this.sectionStart=this.index+1}else if(c===J.Slash)this.state=v.InSelfClosingTag;else if(!lc(c))this.state=v.InAttributeName,this.sectionStart=this.index}stateInSelfClosingTag(c){if(c===J.Gt)this.cbs.onselfclosingtag(this.index),this.state=v.Text,this.baseState=v.Text,this.sectionStart=this.index+1,this.isSpecial=!1;else if(!lc(c))this.state=v.BeforeAttributeName,this.stateBeforeAttributeName(c)}stateInAttributeName(c){if(c===J.Eq||Oh(c))this.cbs.onattribname(this.sectionStart,this.index),this.sectionStart=-1,this.state=v.AfterAttributeName,this.stateAfterAttributeName(c)}stateAfterAttributeName(c){if(c===J.Eq)this.state=v.BeforeAttributeValue;else if(c===J.Slash||c===J.Gt)this.cbs.onattribend(qc.NoValue,this.index),this.state=v.BeforeAttributeName,this.stateBeforeAttributeName(c);else if(!lc(c))this.cbs.onattribend(qc.NoValue,this.index),this.state=v.InAttributeName,this.sectionStart=this.index}stateBeforeAttributeValue(c){if(c===J.DoubleQuote)this.state=v.InAttributeValueDq,this.sectionStart=this.index+1;else if(c===J.SingleQuote)this.state=v.InAttributeValueSq,this.sectionStart=this.index+1;else if(!lc(c))this.sectionStart=this.index,this.state=v.InAttributeValueNq,this.stateInAttributeValueNoQuotes(c)}handleInAttributeValue(c,f){if(c===f||!this.decodeEntities&&this.fastForwardTo(f))this.cbs.onattribdata(this.sectionStart,this.index),this.sectionStart=-1,this.cbs.onattribend(f===J.DoubleQuote?qc.Double:qc.Single,this.index),this.state=v.BeforeAttributeName;else if(this.decodeEntities&&c===J.Amp)this.baseState=this.state,this.state=v.BeforeEntity}stateInAttributeValueDoubleQuotes(c){this.handleInAttributeValue(c,J.DoubleQuote)}stateInAttributeValueSingleQuotes(c){this.handleInAttributeValue(c,J.SingleQuote)}stateInAttributeValueNoQuotes(c){if(lc(c)||c===J.Gt)this.cbs.onattribdata(this.sectionStart,this.index),this.sectionStart=-1,this.cbs.onattribend(qc.Unquoted,this.index),this.state=v.BeforeAttributeName,this.stateBeforeAttributeName(c);else if(this.decodeEntities&&c===J.Amp)this.baseState=this.state,this.state=v.BeforeEntity}stateBeforeDeclaration(c){if(c===J.OpeningSquareBracket)this.state=v.CDATASequence,this.sequenceIndex=0;else this.state=c===J.Dash?v.BeforeComment:v.InDeclaration}stateInDeclaration(c){if(c===J.Gt||this.fastForwardTo(J.Gt))this.cbs.ondeclaration(this.sectionStart,this.index),this.state=v.Text,this.sectionStart=this.index+1}stateInProcessingInstruction(c){if(c===J.Gt||this.fastForwardTo(J.Gt))this.cbs.onprocessinginstruction(this.sectionStart,this.index),this.state=v.Text,this.sectionStart=this.index+1}stateBeforeComment(c){if(c===J.Dash)this.state=v.InCommentLike,this.currentSequence=Zc.CommentEnd,this.sequenceIndex=2,this.sectionStart=this.index+1;else this.state=v.InDeclaration}stateInSpecialComment(c){if(c===J.Gt||this.fastForwardTo(J.Gt))this.cbs.oncomment(this.sectionStart,this.index,0),this.state=v.Text,this.sectionStart=this.index+1}stateBeforeSpecialS(c){let f=c|32;if(f===Zc.ScriptEnd[3])this.startSpecial(Zc.ScriptEnd,4);else if(f===Zc.StyleEnd[3])this.startSpecial(Zc.StyleEnd,4);else this.state=v.InTagName,this.stateInTagName(c)}stateBeforeEntity(c){if(this.entityExcess=1,this.entityResult=0,c===J.Number)this.state=v.BeforeNumericEntity;else if(c===J.Amp);else this.trieIndex=0,this.trieCurrent=this.entityTrie[0],this.state=v.InNamedEntity,this.stateInNamedEntity(c)}stateInNamedEntity(c){if(this.entityExcess+=1,this.trieIndex=s$(this.entityTrie,this.trieCurrent,this.trieIndex+1,c),this.trieIndex<0){this.emitNamedEntity(),this.index--;return}this.trieCurrent=this.entityTrie[this.trieIndex];let f=this.trieCurrent&Mc.VALUE_LENGTH;if(f){let R=(f>>14)-1;if(!this.allowLegacyEntity()&&c!==J.Semi)this.trieIndex+=R;else{let h=this.index-this.entityExcess+1;if(h>this.sectionStart)this.emitPartial(this.sectionStart,h);if(this.entityResult=this.trieIndex,this.trieIndex+=R,this.entityExcess=0,this.sectionStart=this.index+1,R===0)this.emitNamedEntity()}}}emitNamedEntity(){if(this.state=this.baseState,this.entityResult===0)return;switch((this.entityTrie[this.entityResult]&Mc.VALUE_LENGTH)>>14){case 1:{this.emitCodePoint(this.entityTrie[this.entityResult]&~Mc.VALUE_LENGTH);break}case 2:{this.emitCodePoint(this.entityTrie[this.entityResult+1]);break}case 3:this.emitCodePoint(this.entityTrie[this.entityResult+1]),this.emitCodePoint(this.entityTrie[this.entityResult+2])}}stateBeforeNumericEntity(c){if((c|32)===J.LowerX)this.entityExcess++,this.state=v.InHexEntity;else this.state=v.InNumericEntity,this.stateInNumericEntity(c)}emitNumericEntity(c){let f=this.index-this.entityExcess-1;if(f+2+Number(this.state===v.InHexEntity)!==this.index){if(f>this.sectionStart)this.emitPartial(this.sectionStart,f);this.sectionStart=this.index+Number(c),this.emitCodePoint(pR(this.entityResult))}this.state=this.baseState}stateInNumericEntity(c){if(c===J.Semi)this.emitNumericEntity(!0);else if(o6(c))this.entityResult=this.entityResult*10+(c-J.Zero),this.entityExcess++;else{if(this.allowLegacyEntity())this.emitNumericEntity(!1);else this.state=this.baseState;this.index--}}stateInHexEntity(c){if(c===J.Semi)this.emitNumericEntity(!0);else if(o6(c))this.entityResult=this.entityResult*16+(c-J.Zero),this.entityExcess++;else if(hY(c))this.entityResult=this.entityResult*16+((c|32)-J.LowerA+10),this.entityExcess++;else{if(this.allowLegacyEntity())this.emitNumericEntity(!1);else this.state=this.baseState;this.index--}}allowLegacyEntity(){return!this.xmlMode&&(this.baseState===v.Text||this.baseState===v.InSpecialTag)}cleanup(){if(this.running&&this.sectionStart!==this.index){if(this.state===v.Text||this.state===v.InSpecialTag&&this.sequenceIndex===0)this.cbs.ontext(this.sectionStart,this.index),this.sectionStart=this.index;else if(this.state===v.InAttributeValueDq||this.state===v.InAttributeValueSq||this.state===v.InAttributeValueNq)this.cbs.onattribdata(this.sectionStart,this.index),this.sectionStart=this.index}}shouldContinue(){return this.index<this.buffer.length+this.offset&&this.running}parse(){while(this.shouldContinue()){let c=this.buffer.charCodeAt(this.index-this.offset);switch(this.state){case v.Text:{this.stateText(c);break}case v.SpecialStartSequence:{this.stateSpecialStartSequence(c);break}case v.InSpecialTag:{this.stateInSpecialTag(c);break}case v.CDATASequence:{this.stateCDATASequence(c);break}case v.InAttributeValueDq:{this.stateInAttributeValueDoubleQuotes(c);break}case v.InAttributeName:{this.stateInAttributeName(c);break}case v.InCommentLike:{this.stateInCommentLike(c);break}case v.InSpecialComment:{this.stateInSpecialComment(c);break}case v.BeforeAttributeName:{this.stateBeforeAttributeName(c);break}case v.InTagName:{this.stateInTagName(c);break}case v.InClosingTagName:{this.stateInClosingTagName(c);break}case v.BeforeTagName:{this.stateBeforeTagName(c);break}case v.AfterAttributeName:{this.stateAfterAttributeName(c);break}case v.InAttributeValueSq:{this.stateInAttributeValueSingleQuotes(c);break}case v.BeforeAttributeValue:{this.stateBeforeAttributeValue(c);break}case v.BeforeClosingTagName:{this.stateBeforeClosingTagName(c);break}case v.AfterClosingTagName:{this.stateAfterClosingTagName(c);break}case v.BeforeSpecialS:{this.stateBeforeSpecialS(c);break}case v.InAttributeValueNq:{this.stateInAttributeValueNoQuotes(c);break}case v.InSelfClosingTag:{this.stateInSelfClosingTag(c);break}case v.InDeclaration:{this.stateInDeclaration(c);break}case v.BeforeDeclaration:{this.stateBeforeDeclaration(c);break}case v.BeforeComment:{this.stateBeforeComment(c);break}case v.InProcessingInstruction:{this.stateInProcessingInstruction(c);break}case v.InNamedEntity:{this.stateInNamedEntity(c);break}case v.BeforeEntity:{this.stateBeforeEntity(c);break}case v.InHexEntity:{this.stateInHexEntity(c);break}case v.InNumericEntity:{this.stateInNumericEntity(c);break}default:this.stateBeforeNumericEntity(c)}this.index++}this.cleanup()}finish(){if(this.state===v.InNamedEntity)this.emitNamedEntity();if(this.sectionStart<this.index)this.handleTrailingData();this.cbs.onend()}handleTrailingData(){let c=this.buffer.length+this.offset;if(this.state===v.InCommentLike)if(this.currentSequence===Zc.CdataEnd)this.cbs.oncdata(this.sectionStart,c,0);else this.cbs.oncomment(this.sectionStart,c,0);else if(this.state===v.InNumericEntity&&this.allowLegacyEntity())this.emitNumericEntity(!1);else if(this.state===v.InHexEntity&&this.allowLegacyEntity())this.emitNumericEntity(!1);else if(this.state===v.InTagName||this.state===v.BeforeAttributeName||this.state===v.BeforeAttributeValue||this.state===v.AfterAttributeName||this.state===v.InAttributeName||this.state===v.InAttributeValueSq||this.state===v.InAttributeValueDq||this.state===v.InAttributeValueNq||this.state===v.InClosingTagName);else this.cbs.ontext(this.sectionStart,c)}emitPartial(c,f){if(this.baseState!==v.Text&&this.baseState!==v.InSpecialTag)this.cbs.onattribdata(c,f);else this.cbs.ontext(c,f)}emitCodePoint(c){if(this.baseState!==v.Text&&this.baseState!==v.InSpecialTag)this.cbs.onattribentity(c);else this.cbs.ontextentity(c)}}var af=new Set(["input","option","optgroup","select","button","datalist","textarea"]),u=new Set(["p"]),a6=new Set(["thead","tbody"]),t6=new Set(["dd","dt"]),r6=new Set(["rt","rp"]),$Y=new Map([["tr",new Set(["tr","th","td"])],["th",new Set(["th"])],["td",new Set(["thead","th","td"])],["body",new Set(["head","link","script"])],["li",new Set(["li"])],["p",u],["h1",u],["h2",u],["h3",u],["h4",u],["h5",u],["h6",u],["select",af],["input",af],["output",af],["button",af],["datalist",af],["textarea",af],["option",new Set(["option"])],["optgroup",new Set(["optgroup","option"])],["dd",t6],["dt",t6],["address",u],["article",u],["aside",u],["blockquote",u],["details",u],["div",u],["dl",u],["fieldset",u],["figcaption",u],["figure",u],["footer",u],["form",u],["header",u],["hr",u],["main",u],["nav",u],["ol",u],["pre",u],["section",u],["table",u],["ul",u],["rt",r6],["rp",r6],["tbody",a6],["tfoot",a6]]),HY=new Set(["area","base","basefont","br","col","command","embed","frame","hr","img","input","isindex","keygen","link","meta","param","source","track","wbr"]),e6=new Set(["math","svg"]),c3=new Set(["mi","mo","mn","ms","mtext","annotation-xml","foreignobject","desc","title"]),AY=/\s|\//;class i${constructor(c,f={}){var R,h,$,H,A;this.options=f,this.startIndex=0,this.endIndex=0,this.openTagStart=0,this.tagname="",this.attribname="",this.attribvalue="",this.attribs=null,this.stack=[],this.foreignContext=[],this.buffers=[],this.bufferOffset=0,this.writeIndex=0,this.ended=!1,this.cbs=c!==null&&c!==void 0?c:{},this.lowerCaseTagNames=(R=f.lowerCaseTags)!==null&&R!==void 0?R:!f.xmlMode,this.lowerCaseAttributeNames=(h=f.lowerCaseAttributeNames)!==null&&h!==void 0?h:!f.xmlMode,this.tokenizer=new(($=f.Tokenizer)!==null&&$!==void 0?$:bh)(this.options,this),(A=(H=this.cbs).onparserinit)===null||A===void 0||A.call(H,this)}ontext(c,f){var R,h;let $=this.getSlice(c,f);this.endIndex=f-1,(h=(R=this.cbs).ontext)===null||h===void 0||h.call(R,$),this.startIndex=f}ontextentity(c){var f,R;let h=this.tokenizer.getSectionStart();this.endIndex=h-1,(R=(f=this.cbs).ontext)===null||R===void 0||R.call(f,of(c)),this.startIndex=h}isVoidElement(c){return!this.options.xmlMode&&HY.has(c)}onopentagname(c,f){this.endIndex=f;let R=this.getSlice(c,f);if(this.lowerCaseTagNames)R=R.toLowerCase();this.emitOpenTag(R)}emitOpenTag(c){var f,R,h,$;this.openTagStart=this.startIndex,this.tagname=c;let H=!this.options.xmlMode&&$Y.get(c);if(H)while(this.stack.length>0&&H.has(this.stack[this.stack.length-1])){let A=this.stack.pop();(R=(f=this.cbs).onclosetag)===null||R===void 0||R.call(f,A,!0)}if(!this.isVoidElement(c)){if(this.stack.push(c),e6.has(c))this.foreignContext.push(!0);else if(c3.has(c))this.foreignContext.push(!1)}if(($=(h=this.cbs).onopentagname)===null||$===void 0||$.call(h,c),this.cbs.onopentag)this.attribs={}}endOpenTag(c){var f,R;if(this.startIndex=this.openTagStart,this.attribs)(R=(f=this.cbs).onopentag)===null||R===void 0||R.call(f,this.tagname,this.attribs,c),this.attribs=null;if(this.cbs.onclosetag&&this.isVoidElement(this.tagname))this.cbs.onclosetag(this.tagname,!0);this.tagname=""}onopentagend(c){this.endIndex=c,this.endOpenTag(!1),this.startIndex=c+1}onclosetag(c,f){var R,h,$,H,A,G;this.endIndex=f;let y=this.getSlice(c,f);if(this.lowerCaseTagNames)y=y.toLowerCase();if(e6.has(y)||c3.has(y))this.foreignContext.pop();if(!this.isVoidElement(y)){let F=this.stack.lastIndexOf(y);if(F!==-1)if(this.cbs.onclosetag){let U=this.stack.length-F;while(U--)this.cbs.onclosetag(this.stack.pop(),U!==0)}else this.stack.length=F;else if(!this.options.xmlMode&&y==="p")this.emitOpenTag("p"),this.closeCurrentTag(!0)}else if(!this.options.xmlMode&&y==="br")(h=(R=this.cbs).onopentagname)===null||h===void 0||h.call(R,"br"),(H=($=this.cbs).onopentag)===null||H===void 0||H.call($,"br",{},!0),(G=(A=this.cbs).onclosetag)===null||G===void 0||G.call(A,"br",!1);this.startIndex=f+1}onselfclosingtag(c){if(this.endIndex=c,this.options.xmlMode||this.options.recognizeSelfClosing||this.foreignContext[this.foreignContext.length-1])this.closeCurrentTag(!1),this.startIndex=c+1;else this.onopentagend(c)}closeCurrentTag(c){var f,R;let h=this.tagname;if(this.endOpenTag(c),this.stack[this.stack.length-1]===h)(R=(f=this.cbs).onclosetag)===null||R===void 0||R.call(f,h,!c),this.stack.pop()}onattribname(c,f){this.startIndex=c;let R=this.getSlice(c,f);this.attribname=this.lowerCaseAttributeNames?R.toLowerCase():R}onattribdata(c,f){this.attribvalue+=this.getSlice(c,f)}onattribentity(c){this.attribvalue+=of(c)}onattribend(c,f){var R,h;if(this.endIndex=f,(h=(R=this.cbs).onattribute)===null||h===void 0||h.call(R,this.attribname,this.attribvalue,c===qc.Double?'"':c===qc.Single?"'":c===qc.NoValue?void 0:null),this.attribs&&!Object.prototype.hasOwnProperty.call(this.attribs,this.attribname))this.attribs[this.attribname]=this.attribvalue;this.attribvalue=""}getInstructionName(c){let f=c.search(AY),R=f<0?c:c.substr(0,f);if(this.lowerCaseTagNames)R=R.toLowerCase();return R}ondeclaration(c,f){this.endIndex=f;let R=this.getSlice(c,f);if(this.cbs.onprocessinginstruction){let h=this.getInstructionName(R);this.cbs.onprocessinginstruction(`!${h}`,`!${R}`)}this.startIndex=f+1}onprocessinginstruction(c,f){this.endIndex=f;let R=this.getSlice(c,f);if(this.cbs.onprocessinginstruction){let h=this.getInstructionName(R);this.cbs.onprocessinginstruction(`?${h}`,`?${R}`)}this.startIndex=f+1}oncomment(c,f,R){var h,$,H,A;this.endIndex=f,($=(h=this.cbs).oncomment)===null||$===void 0||$.call(h,this.getSlice(c,f-R)),(A=(H=this.cbs).oncommentend)===null||A===void 0||A.call(H),this.startIndex=f+1}oncdata(c,f,R){var h,$,H,A,G,y,F,U,N,z;this.endIndex=f;let Z=this.getSlice(c,f-R);if(this.options.xmlMode||this.options.recognizeCDATA)($=(h=this.cbs).oncdatastart)===null||$===void 0||$.call(h),(A=(H=this.cbs).ontext)===null||A===void 0||A.call(H,Z),(y=(G=this.cbs).oncdataend)===null||y===void 0||y.call(G);else(U=(F=this.cbs).oncomment)===null||U===void 0||U.call(F,`[CDATA[${Z}]]`),(z=(N=this.cbs).oncommentend)===null||z===void 0||z.call(N);this.startIndex=f+1}onend(){var c,f;if(this.cbs.onclosetag){this.endIndex=this.startIndex;for(let R=this.stack.length;R>0;this.cbs.onclosetag(this.stack[--R],!0));}(f=(c=this.cbs).onend)===null||f===void 0||f.call(c)}reset(){var c,f,R,h;(f=(c=this.cbs).onreset)===null||f===void 0||f.call(c),this.tokenizer.reset(),this.tagname="",this.attribname="",this.attribs=null,this.stack.length=0,this.startIndex=0,this.endIndex=0,(h=(R=this.cbs).onparserinit)===null||h===void 0||h.call(R,this),this.buffers.length=0,this.bufferOffset=0,this.writeIndex=0,this.ended=!1}parseComplete(c){this.reset(),this.end(c)}getSlice(c,f){while(c-this.bufferOffset>=this.buffers[0].length)this.shiftBuffer();let R=this.buffers[0].slice(c-this.bufferOffset,f-this.bufferOffset);while(f-this.bufferOffset>this.buffers[0].length)this.shiftBuffer(),R+=this.buffers[0].slice(0,f-this.bufferOffset);return R}shiftBuffer(){this.bufferOffset+=this.buffers[0].length,this.writeIndex--,this.buffers.shift()}write(c){var f,R;if(this.ended){(R=(f=this.cbs).onerror)===null||R===void 0||R.call(f,Error(".write() after done!"));return}if(this.buffers.push(c),this.tokenizer.running)this.tokenizer.write(c),this.writeIndex++}end(c){var f,R;if(this.ended){(R=(f=this.cbs).onerror)===null||R===void 0||R.call(f,Error(".end() after done!"));return}if(c)this.write(c);this.ended=!0,this.tokenizer.end()}pause(){this.tokenizer.pause()}resume(){this.tokenizer.resume();while(this.tokenizer.running&&this.writeIndex<this.buffers.length)this.tokenizer.write(this.buffers[this.writeIndex++]);if(this.ended)this.tokenizer.end()}parseChunk(c){this.write(c)}done(c){this.end(c)}}var f3=/["&'<>$\x80-\uFFFF]/g,R3=new Map([[34,"&quot;"],[38,"&amp;"],[39,"&apos;"],[60,"&lt;"],[62,"&gt;"]]),GY=String.prototype.codePointAt!=null?(c,f)=>c.codePointAt(f):(c,f)=>(c.charCodeAt(f)&64512)===55296?(c.charCodeAt(f)-55296)*1024+c.charCodeAt(f+1)-56320+65536:c.charCodeAt(f);function qh(c){let f="",R=0,h;while((h=f3.exec(c))!==null){let $=h.index,H=c.charCodeAt($),A=R3.get(H);if(A!==void 0)f+=c.substring(R,$)+A,R=$+1;else f+=`${c.substring(R,$)}&#x${GY(c,$).toString(16)};`,R=f3.lastIndex+=Number((H&64512)===55296)}return f+c.substr(R)}function k$(c,f){return function(h){let $,H=0,A="";while($=c.exec(h)){if(H!==$.index)A+=h.substring(H,$.index);A+=f.get($[0].charCodeAt(0)),H=$.index+1}return A+h.substring(H)}}var yY=k$(/[&<>'"]/g,R3),l$=k$(/["&\u00A0]/g,new Map([[34,"&quot;"],[38,"&amp;"],[160,"&nbsp;"]])),d$=k$(/[&<>\u00A0]/g,new Map([[38,"&amp;"],[60,"&lt;"],[62,"&gt;"],[160,"&nbsp;"]]));var h3;(function(c){c[c.XML=0]="XML",c[c.HTML=1]="HTML"})(h3||(h3={}));var $3;(function(c){c[c.UTF8=0]="UTF8",c[c.ASCII=1]="ASCII",c[c.Extensive=2]="Extensive",c[c.Attribute=3]="Attribute",c[c.Text=4]="Text"})($3||($3={}));var H3=new Map(["altGlyph","altGlyphDef","altGlyphItem","animateColor","animateMotion","animateTransform","clipPath","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","foreignObject","glyphRef","linearGradient","radialGradient","textPath"].map((c)=>[c.toLowerCase(),c])),A3=new Map(["definitionURL","attributeName","attributeType","baseFrequency","baseProfile","calcMode","clipPathUnits","diffuseConstant","edgeMode","filterUnits","glyphRef","gradientTransform","gradientUnits","kernelMatrix","kernelUnitLength","keyPoints","keySplines","keyTimes","lengthAdjust","limitingConeAngle","markerHeight","markerUnits","markerWidth","maskContentUnits","maskUnits","numOctaves","pathLength","patternContentUnits","patternTransform","patternUnits","pointsAtX","pointsAtY","pointsAtZ","preserveAlpha","preserveAspectRatio","primitiveUnits","refX","refY","repeatCount","repeatDur","requiredExtensions","requiredFeatures","specularConstant","specularExponent","spreadMethod","startOffset","stdDeviation","stitchTiles","surfaceScale","systemLanguage","tableValues","targetX","targetY","textLength","viewBox","viewTarget","xChannelSelector","yChannelSelector","zoomAndPan"].map((c)=>[c.toLowerCase(),c]));var FY=new Set(["style","script","xmp","iframe","noembed","noframes","plaintext","noscript"]);function WY(c){return c.replace(/"/g,"&quot;")}function vY(c,f){var R;if(!c)return;let h=((R=f.encodeEntities)!==null&&R!==void 0?R:f.decodeEntities)===!1?WY:f.xmlMode||f.encodeEntities!=="utf8"?qh:l$;return Object.keys(c).map(($)=>{var H,A;let G=(H=c[$])!==null&&H!==void 0?H:"";if(f.xmlMode==="foreign")$=(A=A3.get($))!==null&&A!==void 0?A:$;if(!f.emptyAttrs&&!f.xmlMode&&G==="")return $;return`${$}="${h(G)}"`}).join(" ")}var G3=new Set(["area","base","basefont","br","col","command","embed","frame","hr","img","input","isindex","keygen","link","meta","param","source","track","wbr"]);function sR(c,f={}){let R="length"in c?c:[c],h="";for(let $=0;$<R.length;$++)h+=UY(R[$],f);return h}function UY(c,f){switch(c.type){case Y6:return sR(c.children,f);case X6:case Z6:return JY(c);case J6:return MY(c);case B6:return SY(c);case z6:case S6:case M6:return ZY(c,f);case N6:return zY(c,f)}}var YY=new Set(["mi","mo","mn","ms","mtext","annotation-xml","foreignObject","desc","title"]),NY=new Set(["svg","math"]);function ZY(c,f){var R;if(f.xmlMode==="foreign"){if(c.name=(R=H3.get(c.name))!==null&&R!==void 0?R:c.name,c.parent&&YY.has(c.parent.name))f={...f,xmlMode:!1}}if(!f.xmlMode&&NY.has(c.name))f={...f,xmlMode:"foreign"};let h=`<${c.name}`,$=vY(c.attribs,f);if($)h+=` ${$}`;if(c.children.length===0&&(f.xmlMode?f.selfClosingTags!==!1:f.selfClosingTags&&G3.has(c.name))){if(!f.xmlMode)h+=" ";h+="/>"}else{if(h+=">",c.children.length>0)h+=sR(c.children,f);if(f.xmlMode||!G3.has(c.name))h+=`</${c.name}>`}return h}function JY(c){return`<${c.data}>`}function zY(c,f){var R;let h=c.data||"";if(((R=f.encodeEntities)!==null&&R!==void 0?R:f.decodeEntities)!==!1&&!(!f.xmlMode&&c.parent&&FY.has(c.parent.name)))h=f.xmlMode||f.encodeEntities!=="utf8"?qh(h):d$(h);return h}function SY(c){return`<![CDATA[${c.children[0].data}]]>`}function MY(c){return`<!--${c.data}-->`}function y3(c,f){let R=new w$(void 0,f);return new i$(R,f).end(c),R.root}var e$=Y(U3(),1);function c8(c,f,R=()=>{return}){if(c===void 0){let h=function(...$){return f(h,...$)};return h}if(c>=0)return function(...h){return f(c8(c-1,f,R),...h)};return R}function z3(c,f){let R=0,h=c.length;while(R<h&&c[R]===f)++R;while(h>R&&c[h-1]===f)--h;return R>0||h<c.length?c.substring(R,h):c}function qY(c,f){let R=c.length;while(R>0&&c[R-1]===f)--R;return R<c.length?c.substring(0,R):c}function VY(c){return c.replace(/[\s\S]/g,(f)=>"\\u"+f.charCodeAt().toString(16).padStart(4,"0"))}function S3(c,f){let R=new Map;for(let h=c.length;h-- >0;){let $=c[h],H=f($);R.set(H,R.has(H)?e$.default($,R.get(H),{arrayMerge:EY}):$)}return[...R.values()].reverse()}var EY=(c,f,R)=>[...f];function rf(c,f){for(let R of f){if(!c)return;c=c[R]}return c}function Y3(c,f="a",R=26){let h=[];do c-=1,h.push(c%R),c=c/R>>0;while(c>0);let $=f.charCodeAt(0);return h.reverse().map((H)=>String.fromCharCode($+H)).join("")}var _$=["I","X","C","M"],N3=["V","L","D"];function Z3(c){return[...c+""].map((f)=>+f).reverse().map((f,R)=>f%5<4?(f<5?"":N3[R])+_$[R].repeat(f%5):_$[R]+(f<5?N3[R]:_$[R+1])).reverse().join("")}class f8{constructor(c,f=void 0){this.lines=[],this.nextLineWords=[],this.maxLineLength=f||c.wordwrap||Number.MAX_VALUE,this.nextLineAvailableChars=this.maxLineLength,this.wrapCharacters=rf(c,["longWordSplit","wrapCharacters"])||[],this.forceWrapOnLimit=rf(c,["longWordSplit","forceWrapOnLimit"])||!1,this.stashedSpace=!1,this.wordBreakOpportunity=!1}pushWord(c,f=!1){if(this.nextLineAvailableChars<=0&&!f)this.startNewLine();let R=this.nextLineWords.length===0,h=c.length+(R?0:1);if(h<=this.nextLineAvailableChars||f)this.nextLineWords.push(c),this.nextLineAvailableChars-=h;else{let[$,...H]=this.splitLongWord(c);if(!R)this.startNewLine();this.nextLineWords.push($),this.nextLineAvailableChars-=$.length;for(let A of H)this.startNewLine(),this.nextLineWords.push(A),this.nextLineAvailableChars-=A.length}}popWord(){let c=this.nextLineWords.pop();if(c!==void 0){let f=this.nextLineWords.length===0,R=c.length+(f?0:1);this.nextLineAvailableChars+=R}return c}concatWord(c,f=!1){if(this.wordBreakOpportunity&&c.length>this.nextLineAvailableChars)this.pushWord(c,f),this.wordBreakOpportunity=!1;else{let R=this.popWord();this.pushWord(R?R.concat(c):c,f)}}startNewLine(c=1){if(this.lines.push(this.nextLineWords),c>1)this.lines.push(...Array.from({length:c-1},()=>[]));this.nextLineWords=[],this.nextLineAvailableChars=this.maxLineLength}isEmpty(){return this.lines.length===0&&this.nextLineWords.length===0}clear(){this.lines.length=0,this.nextLineWords.length=0,this.nextLineAvailableChars=this.maxLineLength}toString(){return[...this.lines,this.nextLineWords].map((c)=>c.join(" ")).join(`
52
52
  `)}splitLongWord(c){let f=[],R=0;while(c.length>this.maxLineLength){let h=c.substring(0,this.maxLineLength),$=c.substring(this.maxLineLength),H=h.lastIndexOf(this.wrapCharacters[R]);if(H>-1)c=h.substring(H+1)+$,f.push(h.substring(0,H+1));else if(R++,R<this.wrapCharacters.length)c=h+$;else{if(this.forceWrapOnLimit){if(f.push(h),c=$,c.length>this.maxLineLength)continue}else c=h+$;break}}return f.push(c),f}}class ef{constructor(c=null){this.next=c}getRoot(){return this.next?this.next:this}}class Vc extends ef{constructor(c,f=null,R=1,h=void 0){super(f);this.leadingLineBreaks=R,this.inlineTextBuilder=new f8(c,h),this.rawText="",this.stashedLineBreaks=0,this.isPre=f&&f.isPre,this.isNoWrap=f&&f.isNoWrap}}class n$ extends Vc{constructor(c,f=null,{interRowLineBreaks:R=1,leadingLineBreaks:h=2,maxLineLength:$=void 0,maxPrefixLength:H=0,prefixAlign:A="left"}={}){super(c,f,h,$);this.maxPrefixLength=H,this.prefixAlign=A,this.interRowLineBreaks=R}}class Rf extends Vc{constructor(c,f=null,{leadingLineBreaks:R=1,maxLineLength:h=void 0,prefix:$=""}={}){super(c,f,R,h);this.prefix=$}}class o$ extends ef{constructor(c=null){super(c);this.rows=[],this.isPre=c&&c.isPre,this.isNoWrap=c&&c.isNoWrap}}class a$ extends ef{constructor(c=null){super(c);this.cells=[],this.isPre=c&&c.isPre,this.isNoWrap=c&&c.isNoWrap}}class hf extends ef{constructor(c,f=null,R=void 0){super(f);this.inlineTextBuilder=new f8(c,R),this.rawText="",this.stashedLineBreaks=0,this.isPre=f&&f.isPre,this.isNoWrap=f&&f.isNoWrap}}class M3 extends ef{constructor(c=null,f){super(c);this.transform=f}}function TY(c){return[...c].map((f)=>"\\u"+f.charCodeAt(0).toString(16).padStart(4,"0")).join("")}class B3{constructor(c){this.whitespaceChars=c.preserveNewlines?c.whitespaceCharacters.replace(/\n/g,""):c.whitespaceCharacters;let f=TY(this.whitespaceChars);if(this.leadingWhitespaceRe=new RegExp(`^[${f}]`),this.trailingWhitespaceRe=new RegExp(`[${f}]$`),this.allWhitespaceOrEmptyRe=new RegExp(`^[${f}]*$`),this.newlineOrNonWhitespaceRe=new RegExp(`(\\n|[^\\n${f}])`,"g"),this.newlineOrNonNewlineStringRe=new RegExp("(\\n|[^\\n]+)","g"),c.preserveNewlines){let R=new RegExp(`\\n|[^\\n${f}]+`,"gm");this.shrinkWrapAdd=function(h,$,H=(G)=>G,A=!1){if(!h)return;let G=$.stashedSpace,y=!1,F=R.exec(h);if(F){if(y=!0,F[0]===`
53
53
  `)$.startNewLine();else if(G||this.testLeadingWhitespace(h))$.pushWord(H(F[0]),A);else $.concatWord(H(F[0]),A);while((F=R.exec(h))!==null)if(F[0]===`
54
54
  `)$.startNewLine();else $.pushWord(H(F[0]),A)}$.stashedSpace=G&&!y||this.testTrailingWhitespace(h)}}else{let R=new RegExp(`[^${f}]+`,"g");this.shrinkWrapAdd=function(h,$,H=(G)=>G,A=!1){if(!h)return;let G=$.stashedSpace,y=!1,F=R.exec(h);if(F){if(y=!0,G||this.testLeadingWhitespace(h))$.pushWord(H(F[0]),A);else $.concatWord(H(F[0]),A);while((F=R.exec(h))!==null)$.pushWord(H(F[0]),A)}$.stashedSpace=G&&!y||this.testTrailingWhitespace(h)}}}addLiteral(c,f,R=!0){if(!c)return;let h=f.stashedSpace,$=!1,H=this.newlineOrNonNewlineStringRe.exec(c);if(H){if($=!0,H[0]===`
@@ -58,19 +58,19 @@ ${"".padEnd(f)}${"^".repeat(R)}`}function C6(c){return IU(b$,c)}function bc(c){i
58
58
  `;else this._stackItem.inlineTextBuilder.startNewLine()}addWordBreakOpportunity(){if(this._stackItem instanceof Vc||this._stackItem instanceof Rf||this._stackItem instanceof hf)this._stackItem.inlineTextBuilder.wordBreakOpportunity=!0}addInline(c,{noWordTransform:f=!1}={}){if(!(this._stackItem instanceof Vc||this._stackItem instanceof Rf||this._stackItem instanceof hf))return;if(this._stackItem.isPre){this._stackItem.rawText+=c;return}if(c.length===0||this._stackItem.stashedLineBreaks&&!this.whitespaceProcessor.testContainsWords(c))return;if(this.options.preserveNewlines){let R=this.whitespaceProcessor.countNewlinesNoWords(c);if(R>0){this._stackItem.inlineTextBuilder.startNewLine(R);return}}if(this._stackItem.stashedLineBreaks)this._stackItem.inlineTextBuilder.startNewLine(this._stackItem.stashedLineBreaks);this.whitespaceProcessor.shrinkWrapAdd(c,this._stackItem.inlineTextBuilder,f?void 0:this._getCombinedWordTransformer(),this._stackItem.isNoWrap),this._stackItem.stashedLineBreaks=0}addLiteral(c){if(!(this._stackItem instanceof Vc||this._stackItem instanceof Rf||this._stackItem instanceof hf))return;if(c.length===0)return;if(this._stackItem.isPre){this._stackItem.rawText+=c;return}if(this._stackItem.stashedLineBreaks)this._stackItem.inlineTextBuilder.startNewLine(this._stackItem.stashedLineBreaks);this.whitespaceProcessor.addLiteral(c,this._stackItem.inlineTextBuilder,this._stackItem.isNoWrap),this._stackItem.stashedLineBreaks=0}openBlock({leadingLineBreaks:c=1,reservedLineLength:f=0,isPre:R=!1}={}){let h=Math.max(20,this._stackItem.inlineTextBuilder.maxLineLength-f);if(this._stackItem=new Vc(this.options,this._stackItem,c,h),R)this._stackItem.isPre=!0}closeBlock({trailingLineBreaks:c=1,blockTransform:f=void 0}={}){let R=this._popStackItem(),h=f?f(Sf(R)):Sf(R);Vh(this._stackItem,h,R.leadingLineBreaks,Math.max(R.stashedLineBreaks,c))}openList({maxPrefixLength:c=0,prefixAlign:f="left",interRowLineBreaks:R=1,leadingLineBreaks:h=2}={}){this._stackItem=new n$(this.options,this._stackItem,{interRowLineBreaks:R,leadingLineBreaks:h,maxLineLength:this._stackItem.inlineTextBuilder.maxLineLength,maxPrefixLength:c,prefixAlign:f})}openListItem({prefix:c=""}={}){if(!(this._stackItem instanceof n$))throw Error("Can't add a list item to something that is not a list! Check the formatter.");let f=this._stackItem,R=Math.max(c.length,f.maxPrefixLength),h=Math.max(20,f.inlineTextBuilder.maxLineLength-R);this._stackItem=new Rf(this.options,f,{prefix:c,maxLineLength:h,leadingLineBreaks:f.interRowLineBreaks})}closeListItem(){let c=this._popStackItem(),f=c.next,R=Math.max(c.prefix.length,f.maxPrefixLength),h=`
59
59
  `+" ".repeat(R),H=(f.prefixAlign==="right"?c.prefix.padStart(R):c.prefix.padEnd(R))+Sf(c).replace(/\n/g,h);Vh(f,H,c.leadingLineBreaks,Math.max(c.stashedLineBreaks,f.interRowLineBreaks))}closeList({trailingLineBreaks:c=2}={}){let f=this._popStackItem(),R=Sf(f);if(R)Vh(this._stackItem,R,f.leadingLineBreaks,c)}openTable(){this._stackItem=new o$(this._stackItem)}openTableRow(){if(!(this._stackItem instanceof o$))throw Error("Can't add a table row to something that is not a table! Check the formatter.");this._stackItem=new a$(this._stackItem)}openTableCell({maxColumnWidth:c=void 0}={}){if(!(this._stackItem instanceof a$))throw Error("Can't add a table cell to something that is not a table row! Check the formatter.");this._stackItem=new hf(this.options,this._stackItem,c)}closeTableCell({colspan:c=1,rowspan:f=1}={}){let R=this._popStackItem(),h=z3(Sf(R),`
60
60
  `);R.next.cells.push({colspan:c,rowspan:f,text:h})}closeTableRow(){let c=this._popStackItem();c.next.rows.push(c.cells)}closeTable({tableToString:c,leadingLineBreaks:f=2,trailingLineBreaks:R=2}){let h=this._popStackItem(),$=c(h.rows);if($)Vh(this._stackItem,$,f,R)}toString(){return Sf(this._stackItem.getRoot())}}function Sf(c){if(!(c instanceof Vc||c instanceof Rf||c instanceof hf))throw Error("Only blocks, list items and table cells can be requested for text contents.");return c.inlineTextBuilder.isEmpty()?c.rawText:c.rawText+c.inlineTextBuilder.toString()}function Vh(c,f,R,h){if(!(c instanceof Vc||c instanceof Rf||c instanceof hf))throw Error("Only blocks, list items and table cells can contain text.");let $=Sf(c),H=Math.max(c.stashedLineBreaks,R);if(c.inlineTextBuilder.clear(),$)c.rawText=$+`
61
- `.repeat(H)+f;else c.rawText=f,c.leadingLineBreaks=H;c.stashedLineBreaks=h}function Q3(c,f){return f?Q3(f.transform(c),f.next):c}function uY(c={}){let f=c.selectors.filter((A)=>!A.format);if(f.length)throw Error("Following selectors have no specified format: "+f.map((A)=>`\`${A.selector}\``).join(", "));let R=new Ih(c.selectors.map((A)=>[A.selector,A])).build(C$);if(typeof c.encodeCharacters!=="function")c.encodeCharacters=pY(c.encodeCharacters);let h=new Ih(c.baseElements.selectors.map((A,G)=>[A,G+1])).build(C$);function $(A){return CY(A,c,h)}let H=c8(c.limits.maxDepth,mY,function(A,G){G.addInline(c.limits.ellipsis||"")});return function(A,G=void 0){return gY(A,G,c,R,$,H)}}function gY(c,f,R,h,$,H){let A=R.limits.maxInputLength;if(A&&c&&c.length>A)console.warn(`Input length ${c.length} is above allowed limit of ${A}. Truncating without ellipsis.`),c=c.substring(0,A);let G=y3(c,{decodeEntities:R.decodeEntities}),y=$(G.children),F=new X3(R,h,f);return H(y,F),F.toString()}function CY(c,f,R){let h=[];function $(A,G){G=G.slice(0,f.limits.maxChildNodes);for(let y of G){if(y.type!=="tag")continue;let F=R.pick1(y);if(F>0)h.push({selectorIndex:F,element:y});else if(y.children)A(y.children);if(h.length>=f.limits.maxBaseElements)return}}if(c8(f.limits.maxDepth,$)(c),f.baseElements.orderBy!=="occurrence")h.sort((A,G)=>A.selectorIndex-G.selectorIndex);return f.baseElements.returnDomByDefault&&h.length===0?c:h.map((A)=>A.element)}function mY(c,f,R){if(!f)return;let h=R.options;if(f.length>h.limits.maxChildNodes)f=f.slice(0,h.limits.maxChildNodes),f.push({data:h.limits.ellipsis,type:"text"});for(let H of f)switch(H.type){case"text":{R.addInline(H.data);break}case"tag":{let A=R.picker.pick1(H),G=h.formatters[A.format];G(H,c,R,A.options||{});break}}return}function pY(c){if(!c||Object.keys(c).length===0)return;let f=Object.entries(c).filter(([,H])=>H!==!1),R=new RegExp(f.map(([H])=>`(${VY([...H][0])})`).join("|"),"g"),h=f.map(([,H])=>H),$=(H,...A)=>h[A.findIndex((G)=>G)];return(H)=>H.replace(R,$)}function sY(c,f,R,h){}function iY(c,f,R,h){R.addLiteral(h.string||"")}function kY(c,f,R,h){R.openBlock({leadingLineBreaks:h.leadingLineBreaks||2}),R.addLiteral(h.string||""),R.closeBlock({trailingLineBreaks:h.trailingLineBreaks||2})}function lY(c,f,R,h){f(c.children,R)}function dY(c,f,R,h){R.openBlock({leadingLineBreaks:h.leadingLineBreaks||2}),f(c.children,R),R.closeBlock({trailingLineBreaks:h.trailingLineBreaks||2})}function D3(c){let f=c.attribs&&c.attribs.length?" "+Object.entries(c.attribs).map(([R,h])=>h===""?R:`${R}=${h.replace(/"/g,"&quot;")}`).join(" "):"";return`<${c.name}${f}>`}function j3(c){return`</${c.name}>`}function _Y(c,f,R,h){R.startNoWrap(),R.addLiteral(D3(c)),R.stopNoWrap(),f(c.children,R),R.startNoWrap(),R.addLiteral(j3(c)),R.stopNoWrap()}function nY(c,f,R,h){R.openBlock({leadingLineBreaks:h.leadingLineBreaks||2}),R.startNoWrap(),R.addLiteral(D3(c)),R.stopNoWrap(),f(c.children,R),R.startNoWrap(),R.addLiteral(j3(c)),R.stopNoWrap(),R.closeBlock({trailingLineBreaks:h.trailingLineBreaks||2})}function oY(c,f,R,h){R.startNoWrap(),R.addLiteral(sR(c,{decodeEntities:R.options.decodeEntities})),R.stopNoWrap()}function aY(c,f,R,h){R.openBlock({leadingLineBreaks:h.leadingLineBreaks||2}),R.startNoWrap(),R.addLiteral(sR(c,{decodeEntities:R.options.decodeEntities})),R.stopNoWrap(),R.closeBlock({trailingLineBreaks:h.trailingLineBreaks||2})}function tY(c,f,R,h){R.addLiteral(h.prefix||""),f(c.children,R),R.addLiteral(h.suffix||"")}var rY=Object.freeze({__proto__:null,block:dY,blockHtml:aY,blockString:kY,blockTag:nY,inline:lY,inlineHtml:oY,inlineString:iY,inlineSurround:tY,inlineTag:_Y,skip:sY});function Eh(c,f){if(!c[f])c[f]=[];return c[f]}function eY(c,f=0){while(c[f])f++;return f}function cN(c,f){for(let R=0;R<f;R++){let h=Eh(c,R);for(let $=0;$<R;$++){let H=Eh(c,$);if(h[$]||H[R]){let A=h[$];h[$]=H[R],H[R]=A}}}}function fN(c,f,R,h){for(let $=0;$<c.rowspan;$++){let H=Eh(f,R+$);for(let A=0;A<c.colspan;A++)H[h+A]=c}}function t$(c,f){if(c[f]===void 0)c[f]=f===0?0:1+t$(c,f-1);return c[f]}function J3(c,f,R,h){c[f+R]=Math.max(t$(c,f+R),t$(c,f)+h)}function RN(c,f,R){let h=[],$=0,H=c.length,A=[0];for(let F=0;F<H;F++){let U=Eh(h,F),N=c[F],z=0;for(let Z=0;Z<N.length;Z++){let j=N[Z];z=eY(U,z),fN(j,h,F,z),z+=j.colspan,j.lines=j.text.split(`
62
- `);let V=j.lines.length;J3(A,F,j.rowspan,V+f)}$=U.length>$?U.length:$}cN(h,H>$?H:$);let G=[],y=[0];for(let F=0;F<$;F++){let U=0,N,z=Math.min(H,h[F].length);while(U<z)if(N=h[F][U],N){if(!N.rendered){let Z=0;for(let j=0;j<N.lines.length;j++){let V=N.lines[j],a=A[U]+j;G[a]=(G[a]||"").padEnd(y[F])+V,Z=V.length>Z?V.length:Z}J3(y,F,N.colspan,Z+R),N.rendered=!0}U+=N.rowspan}else{let Z=A[U];G[Z]=G[Z]||"",U++}}return G.join(`
61
+ `.repeat(H)+f;else c.rawText=f,c.leadingLineBreaks=H;c.stashedLineBreaks=h}function Q3(c,f){return f?Q3(f.transform(c),f.next):c}function uY(c={}){let f=c.selectors.filter((A)=>!A.format);if(f.length)throw Error("Following selectors have no specified format: "+f.map((A)=>`\`${A.selector}\``).join(", "));let R=new Ih(c.selectors.map((A)=>[A.selector,A])).build(C$);if(typeof c.encodeCharacters!=="function")c.encodeCharacters=pY(c.encodeCharacters);let h=new Ih(c.baseElements.selectors.map((A,G)=>[A,G+1])).build(C$);function $(A){return CY(A,c,h)}let H=c8(c.limits.maxDepth,mY,function(A,G){G.addInline(c.limits.ellipsis||"")});return function(A,G=void 0){return gY(A,G,c,R,$,H)}}function gY(c,f,R,h,$,H){let A=R.limits.maxInputLength;if(A&&c&&c.length>A)console.warn(`Input length ${c.length} is above allowed limit of ${A}. Truncating without ellipsis.`),c=c.substring(0,A);let G=y3(c,{decodeEntities:R.decodeEntities}),y=$(G.children),F=new X3(R,h,f);return H(y,F),F.toString()}function CY(c,f,R){let h=[];function $(A,G){G=G.slice(0,f.limits.maxChildNodes);for(let y of G){if(y.type!=="tag")continue;let F=R.pick1(y);if(F>0)h.push({selectorIndex:F,element:y});else if(y.children)A(y.children);if(h.length>=f.limits.maxBaseElements)return}}if(c8(f.limits.maxDepth,$)(c),f.baseElements.orderBy!=="occurrence")h.sort((A,G)=>A.selectorIndex-G.selectorIndex);return f.baseElements.returnDomByDefault&&h.length===0?c:h.map((A)=>A.element)}function mY(c,f,R){if(!f)return;let h=R.options;if(f.length>h.limits.maxChildNodes)f=f.slice(0,h.limits.maxChildNodes),f.push({data:h.limits.ellipsis,type:"text"});for(let H of f)switch(H.type){case"text":{R.addInline(H.data);break}case"tag":{let A=R.picker.pick1(H),G=h.formatters[A.format];G(H,c,R,A.options||{});break}}return}function pY(c){if(!c||Object.keys(c).length===0)return;let f=Object.entries(c).filter(([,H])=>H!==!1),R=new RegExp(f.map(([H])=>`(${VY([...H][0])})`).join("|"),"g"),h=f.map(([,H])=>H),$=(H,...A)=>h[A.findIndex((G)=>G)];return(H)=>H.replace(R,$)}function sY(c,f,R,h){}function iY(c,f,R,h){R.addLiteral(h.string||"")}function kY(c,f,R,h){R.openBlock({leadingLineBreaks:h.leadingLineBreaks||2}),R.addLiteral(h.string||""),R.closeBlock({trailingLineBreaks:h.trailingLineBreaks||2})}function lY(c,f,R,h){f(c.children,R)}function dY(c,f,R,h){R.openBlock({leadingLineBreaks:h.leadingLineBreaks||2}),f(c.children,R),R.closeBlock({trailingLineBreaks:h.trailingLineBreaks||2})}function D3(c){let f=c.attribs&&c.attribs.length?" "+Object.entries(c.attribs).map(([R,h])=>h===""?R:`${R}=${h.replace(/"/g,"&quot;")}`).join(" "):"";return`<${c.name}${f}>`}function w3(c){return`</${c.name}>`}function _Y(c,f,R,h){R.startNoWrap(),R.addLiteral(D3(c)),R.stopNoWrap(),f(c.children,R),R.startNoWrap(),R.addLiteral(w3(c)),R.stopNoWrap()}function nY(c,f,R,h){R.openBlock({leadingLineBreaks:h.leadingLineBreaks||2}),R.startNoWrap(),R.addLiteral(D3(c)),R.stopNoWrap(),f(c.children,R),R.startNoWrap(),R.addLiteral(w3(c)),R.stopNoWrap(),R.closeBlock({trailingLineBreaks:h.trailingLineBreaks||2})}function oY(c,f,R,h){R.startNoWrap(),R.addLiteral(sR(c,{decodeEntities:R.options.decodeEntities})),R.stopNoWrap()}function aY(c,f,R,h){R.openBlock({leadingLineBreaks:h.leadingLineBreaks||2}),R.startNoWrap(),R.addLiteral(sR(c,{decodeEntities:R.options.decodeEntities})),R.stopNoWrap(),R.closeBlock({trailingLineBreaks:h.trailingLineBreaks||2})}function tY(c,f,R,h){R.addLiteral(h.prefix||""),f(c.children,R),R.addLiteral(h.suffix||"")}var rY=Object.freeze({__proto__:null,block:dY,blockHtml:aY,blockString:kY,blockTag:nY,inline:lY,inlineHtml:oY,inlineString:iY,inlineSurround:tY,inlineTag:_Y,skip:sY});function Eh(c,f){if(!c[f])c[f]=[];return c[f]}function eY(c,f=0){while(c[f])f++;return f}function cN(c,f){for(let R=0;R<f;R++){let h=Eh(c,R);for(let $=0;$<R;$++){let H=Eh(c,$);if(h[$]||H[R]){let A=h[$];h[$]=H[R],H[R]=A}}}}function fN(c,f,R,h){for(let $=0;$<c.rowspan;$++){let H=Eh(f,R+$);for(let A=0;A<c.colspan;A++)H[h+A]=c}}function t$(c,f){if(c[f]===void 0)c[f]=f===0?0:1+t$(c,f-1);return c[f]}function J3(c,f,R,h){c[f+R]=Math.max(t$(c,f+R),t$(c,f)+h)}function RN(c,f,R){let h=[],$=0,H=c.length,A=[0];for(let F=0;F<H;F++){let U=Eh(h,F),N=c[F],z=0;for(let Z=0;Z<N.length;Z++){let w=N[Z];z=eY(U,z),fN(w,h,F,z),z+=w.colspan,w.lines=w.text.split(`
62
+ `);let V=w.lines.length;J3(A,F,w.rowspan,V+f)}$=U.length>$?U.length:$}cN(h,H>$?H:$);let G=[],y=[0];for(let F=0;F<$;F++){let U=0,N,z=Math.min(H,h[F].length);while(U<z)if(N=h[F][U],N){if(!N.rendered){let Z=0;for(let w=0;w<N.lines.length;w++){let V=N.lines[w],a=A[U]+w;G[a]=(G[a]||"").padEnd(y[F])+V,Z=V.length>Z?V.length:Z}J3(y,F,N.colspan,Z+R),N.rendered=!0}U+=N.rowspan}else{let Z=A[U];G[Z]=G[Z]||"",U++}}return G.join(`
63
63
  `)}function hN(c,f,R,h){R.addLineBreak()}function $N(c,f,R,h){R.addWordBreakOpportunity()}function HN(c,f,R,h){R.openBlock({leadingLineBreaks:h.leadingLineBreaks||2}),R.addInline("-".repeat(h.length||R.options.wordwrap||40)),R.closeBlock({trailingLineBreaks:h.trailingLineBreaks||2})}function AN(c,f,R,h){R.openBlock({leadingLineBreaks:h.leadingLineBreaks||2}),f(c.children,R),R.closeBlock({trailingLineBreaks:h.trailingLineBreaks||2})}function GN(c,f,R,h){R.openBlock({isPre:!0,leadingLineBreaks:h.leadingLineBreaks||2}),f(c.children,R),R.closeBlock({trailingLineBreaks:h.trailingLineBreaks||2})}function yN(c,f,R,h){if(R.openBlock({leadingLineBreaks:h.leadingLineBreaks||2}),h.uppercase!==!1)R.pushWordTransform(($)=>$.toUpperCase()),f(c.children,R),R.popWordTransform();else f(c.children,R);R.closeBlock({trailingLineBreaks:h.trailingLineBreaks||2})}function FN(c,f,R,h){R.openBlock({leadingLineBreaks:h.leadingLineBreaks||2,reservedLineLength:2}),f(c.children,R),R.closeBlock({trailingLineBreaks:h.trailingLineBreaks||2,blockTransform:($)=>(h.trimEmptyLines!==!1?z3($,`
64
64
  `):$).split(`
65
65
  `).map((H)=>"> "+H).join(`
66
- `)})}function r$(c,f){if(!f)return c;let R=typeof f[0]==="string"?f[0]:"[",h=typeof f[1]==="string"?f[1]:"]";return R+c+h}function w3(c,f,R,h,$){let H=typeof f==="function"?f(c,h,$):c;return H[0]==="/"&&R?qY(R,"/")+H:H}function WN(c,f,R,h){let $=c.attribs||{},H=$.alt?$.alt:"",A=!$.src?"":w3($.src,h.pathRewrite,h.baseUrl,R.metadata,c),G=!A?H:!H?r$(A,h.linkBrackets):H+" "+r$(A,h.linkBrackets);R.addInline(G,{noWordTransform:!0})}function vN(c,f,R,h){function $(){if(h.ignoreHref)return"";if(!c.attribs||!c.attribs.href)return"";let A=c.attribs.href.replace(/^mailto:/,"");if(h.noAnchorUrl&&A[0]==="#")return"";return A=w3(A,h.pathRewrite,h.baseUrl,R.metadata,c),A}let H=$();if(!H)f(c.children,R);else{let A="";if(R.pushWordTransform((y)=>{if(y)A+=y;return y}),f(c.children,R),R.popWordTransform(),!(h.hideLinkHrefIfSameAsText&&H===A))R.addInline(!A?H:" "+r$(H,h.linkBrackets),{noWordTransform:!0})}}function L3(c,f,R,h,$){let H=rf(c,["parent","name"])==="li",A=0,G=(c.children||[]).filter((y)=>y.type!=="text"||!/^\s*$/.test(y.data)).map(function(y){if(y.name!=="li")return{node:y,prefix:""};let F=H?$().trimStart():$();if(F.length>A)A=F.length;return{node:y,prefix:F}});if(!G.length)return;R.openList({interRowLineBreaks:1,leadingLineBreaks:H?1:h.leadingLineBreaks||2,maxPrefixLength:A,prefixAlign:"left"});for(let{node:y,prefix:F}of G)R.openListItem({prefix:F}),f([y],R),R.closeListItem();R.closeList({trailingLineBreaks:H?1:h.trailingLineBreaks||2})}function UN(c,f,R,h){let $=h.itemPrefix||" * ";return L3(c,f,R,h,()=>$)}function YN(c,f,R,h){let $=Number(c.attribs.start||"1"),H=NN(c.attribs.type);return L3(c,f,R,h,()=>" "+H($++)+". ")}function NN(c="1"){switch(c){case"a":return(f)=>Y3(f,"a");case"A":return(f)=>Y3(f,"A");case"i":return(f)=>Z3(f).toLowerCase();case"I":return(f)=>Z3(f);case"1":default:return(f)=>f.toString()}}function ZN(c){let f=[],R=[];for(let h of c)if(h.startsWith("."))f.push(h.substring(1));else if(h.startsWith("#"))R.push(h.substring(1));return{classes:f,ids:R}}function JN(c,f){if(f===!0)return!0;if(!c)return!1;let{classes:R,ids:h}=ZN(f),$=(c.class||"").split(" "),H=(c.id||"").split(" ");return $.some((A)=>R.includes(A))||H.some((A)=>h.includes(A))}function zN(c,f,R,h){return JN(c.attribs,R.options.tables)?x3(c,f,R,h):SN(c,f,R,h)}function SN(c,f,R,h){R.openBlock({leadingLineBreaks:h.leadingLineBreaks}),f(c.children,R),R.closeBlock({trailingLineBreaks:h.trailingLineBreaks})}function x3(c,f,R,h){R.openTable(),c.children.forEach(H),R.closeTable({tableToString:(A)=>RN(A,h.rowSpacing??0,h.colSpacing??3),leadingLineBreaks:h.leadingLineBreaks,trailingLineBreaks:h.trailingLineBreaks});function $(A){let G=+rf(A,["attribs","colspan"])||1,y=+rf(A,["attribs","rowspan"])||1;R.openTableCell({maxColumnWidth:h.maxColumnWidth}),f(A.children,R),R.closeTableCell({colspan:G,rowspan:y})}function H(A){if(A.type!=="tag")return;let G=h.uppercaseHeaderCells!==!1?(y)=>{R.pushWordTransform((F)=>F.toUpperCase()),$(y),R.popWordTransform()}:$;switch(A.name){case"thead":case"tbody":case"tfoot":case"center":A.children.forEach(H);return;case"tr":{R.openTableRow();for(let y of A.children){if(y.type!=="tag")continue;switch(y.name){case"th":{G(y);break}case"td":{$(y);break}}}R.closeTableRow();break}}}}var MN=Object.freeze({__proto__:null,anchor:vN,blockquote:FN,dataTable:x3,heading:yN,horizontalLine:HN,image:WN,lineBreak:hN,orderedList:YN,paragraph:AN,pre:GN,table:zN,unorderedList:UN,wbr:$N}),BN={baseElements:{selectors:["body"],orderBy:"selectors",returnDomByDefault:!0},decodeEntities:!0,encodeCharacters:{},formatters:{},limits:{ellipsis:"...",maxBaseElements:void 0,maxChildNodes:void 0,maxDepth:void 0,maxInputLength:16777216},longWordSplit:{forceWrapOnLimit:!1,wrapCharacters:[]},preserveNewlines:!1,selectors:[{selector:"*",format:"inline"},{selector:"a",format:"anchor",options:{baseUrl:null,hideLinkHrefIfSameAsText:!1,ignoreHref:!1,linkBrackets:["[","]"],noAnchorUrl:!0}},{selector:"article",format:"block",options:{leadingLineBreaks:1,trailingLineBreaks:1}},{selector:"aside",format:"block",options:{leadingLineBreaks:1,trailingLineBreaks:1}},{selector:"blockquote",format:"blockquote",options:{leadingLineBreaks:2,trailingLineBreaks:2,trimEmptyLines:!0}},{selector:"br",format:"lineBreak"},{selector:"div",format:"block",options:{leadingLineBreaks:1,trailingLineBreaks:1}},{selector:"footer",format:"block",options:{leadingLineBreaks:1,trailingLineBreaks:1}},{selector:"form",format:"block",options:{leadingLineBreaks:1,trailingLineBreaks:1}},{selector:"h1",format:"heading",options:{leadingLineBreaks:3,trailingLineBreaks:2,uppercase:!0}},{selector:"h2",format:"heading",options:{leadingLineBreaks:3,trailingLineBreaks:2,uppercase:!0}},{selector:"h3",format:"heading",options:{leadingLineBreaks:3,trailingLineBreaks:2,uppercase:!0}},{selector:"h4",format:"heading",options:{leadingLineBreaks:2,trailingLineBreaks:2,uppercase:!0}},{selector:"h5",format:"heading",options:{leadingLineBreaks:2,trailingLineBreaks:2,uppercase:!0}},{selector:"h6",format:"heading",options:{leadingLineBreaks:2,trailingLineBreaks:2,uppercase:!0}},{selector:"header",format:"block",options:{leadingLineBreaks:1,trailingLineBreaks:1}},{selector:"hr",format:"horizontalLine",options:{leadingLineBreaks:2,length:void 0,trailingLineBreaks:2}},{selector:"img",format:"image",options:{baseUrl:null,linkBrackets:["[","]"]}},{selector:"main",format:"block",options:{leadingLineBreaks:1,trailingLineBreaks:1}},{selector:"nav",format:"block",options:{leadingLineBreaks:1,trailingLineBreaks:1}},{selector:"ol",format:"orderedList",options:{leadingLineBreaks:2,trailingLineBreaks:2}},{selector:"p",format:"paragraph",options:{leadingLineBreaks:2,trailingLineBreaks:2}},{selector:"pre",format:"pre",options:{leadingLineBreaks:2,trailingLineBreaks:2}},{selector:"section",format:"block",options:{leadingLineBreaks:1,trailingLineBreaks:1}},{selector:"table",format:"table",options:{colSpacing:3,leadingLineBreaks:2,maxColumnWidth:60,rowSpacing:0,trailingLineBreaks:2,uppercaseHeaderCells:!0}},{selector:"ul",format:"unorderedList",options:{itemPrefix:" * ",leadingLineBreaks:2,trailingLineBreaks:2}},{selector:"wbr",format:"wbr"}],tables:[],whitespaceCharacters:` \r
67
- \f\u200B`,wordwrap:80},XN=(c,f,R)=>[...c,...f],I3=(c,f,R)=>[...f],QN=(c,f,R)=>c.some((h)=>typeof h==="object")?XN(c,f):I3(c,f);function DN(c={}){return c=e$.default(BN,c,{arrayMerge:I3,customMerge:(f)=>f==="selectors"?QN:void 0}),c.formatters=Object.assign({},rY,MN,c.formatters),c.selectors=S3(c.selectors,(f)=>f.selector),jN(c),uY(c)}function R8(c,f={},R=void 0){return DN(f)(c,R)}function jN(c){if(c.tags){let R=Object.entries(c.tags).map(([h,$])=>({...$,selector:h||"*"}));c.selectors.push(...R),c.selectors=S3(c.selectors,(h)=>h.selector)}function f(R,h,$){let H=h.pop();for(let A of h){let G=R[A];if(!G)G={},R[A]=G;R=G}R[H]=$}if(c.baseElement){let R=c.baseElement;f(c,["baseElements","selectors"],Array.isArray(R)?R:[R])}if(c.returnDomByDefault!==void 0)f(c,["baseElements","returnDomByDefault"],c.returnDomByDefault);for(let R of c.selectors)if(R.format==="anchor"&&rf(R,["options","noLinkBrackets"]))f(R,["options","linkBrackets"],!1)}var Ty=Y(Oy(),1);import{Writable as q7}from"stream";var{defineProperty:L7,getOwnPropertySymbols:by}=Object,x7=Object.prototype.hasOwnProperty,I7=Object.prototype.propertyIsEnumerable,qy=(c,f,R)=>(f in c)?L7(c,f,{enumerable:!0,configurable:!0,writable:!0,value:R}):c[f]=R,w8=(c,f)=>{for(var R in f||(f={}))if(x7.call(f,R))qy(c,R,f[R]);if(by){for(var R of by(f))if(I7.call(f,R))qy(c,R,f[R])}return c},L8=(c,f,R)=>{return new Promise((h,$)=>{var H=(y)=>{try{G(R.next(y))}catch(F){$(F)}},A=(y)=>{try{G(R.throw(y))}catch(F){$(F)}},G=(y)=>y.done?h(y.value):Promise.resolve(y.value).then(H,A);G((R=R.apply(c,f)).next())})},K7={unformatted:["code","pre","em","strong","span"],indent_inner_html:!0,indent_char:" ",indent_size:2,sep:`
68
- `},O7=(c,f={})=>{return Ty.default.html(c,w8(w8({},K7),f))},b7=[{selector:"img",format:"skip"},{selector:"#__react-email-preview",format:"skip"},{selector:"a",options:{linkBrackets:!1}}];var Vy=new TextDecoder("utf-8"),Ey=(c)=>L8(void 0,null,function*(){let f="";if("pipeTo"in c){let R=new WritableStream({write(h){f+=Vy.decode(h)}});yield c.pipeTo(R)}else{let R=new q7({write(h,$,H){f+=Vy.decode(h),H()}});return c.pipe(R),new Promise((h,$)=>{R.on("error",$),R.on("close",()=>{h(f)})})}return f}),dh=(c,f)=>L8(void 0,null,function*(){let{default:R}=yield import("react-dom/server"),h;if(Object.hasOwn(R,"renderToReadableStream"))h=yield Ey(yield R.renderToReadableStream(c));else yield new Promise((A,G)=>{let y=R.renderToPipeableStream(c,{onAllReady(){return L8(this,null,function*(){h=yield Ey(y),A()})},onError(F){G(F)}})});if(f==null?void 0:f.plainText)return R8(h,w8({selectors:b7},f.htmlToTextOptions));let H=`${'<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">'}${h.replace(/<!DOCTYPE.*?>/,"")}`;if(f==null?void 0:f.pretty)return O7(H);return H});var{defineProperty:V7,defineProperties:E7,getOwnPropertyDescriptors:T7,getOwnPropertySymbols:uy}=Object,u7=Object.prototype.hasOwnProperty,g7=Object.prototype.propertyIsEnumerable,gy=(c,f,R)=>(f in c)?V7(c,f,{enumerable:!0,configurable:!0,writable:!0,value:R}):c[f]=R,f0=(c,f)=>{for(var R in f||(f={}))if(u7.call(f,R))gy(c,R,f[R]);if(uy){for(var R of uy(f))if(g7.call(f,R))gy(c,R,f[R])}return c},C7=(c,f)=>E7(c,T7(f)),E=(c,f,R)=>{return new Promise((h,$)=>{var H=(y)=>{try{G(R.next(y))}catch(F){$(F)}},A=(y)=>{try{G(R.throw(y))}catch(F){$(F)}},G=(y)=>y.done?h(y.value):Promise.resolve(y.value).then(H,A);G((R=R.apply(c,f)).next())})},m7="3.5.0",p7=class{constructor(c){this.resend=c}create(c){return E(this,arguments,function*(f,R={}){return yield this.resend.post("/api-keys",f,R)})}list(){return E(this,null,function*(){return yield this.resend.get("/api-keys")})}remove(c){return E(this,null,function*(){return yield this.resend.delete(`/api-keys/${c}`)})}},s7=class{constructor(c){this.resend=c}create(c){return E(this,arguments,function*(f,R={}){return yield this.resend.post("/audiences",f,R)})}list(){return E(this,null,function*(){return yield this.resend.get("/audiences")})}get(c){return E(this,null,function*(){return yield this.resend.get(`/audiences/${c}`)})}remove(c){return E(this,null,function*(){return yield this.resend.delete(`/audiences/${c}`)})}},i7=class{constructor(c){this.resend=c}send(c){return E(this,arguments,function*(f,R={}){return this.create(f,R)})}create(c){return E(this,arguments,function*(f,R={}){for(let $ of f)if($.react)$.html=yield dh($.react),delete $.react;return yield this.resend.post("/emails/batch",f,R)})}},k7=class{constructor(c){this.resend=c}create(c){return E(this,arguments,function*(f,R={}){return yield this.resend.post(`/audiences/${f.audienceId}/contacts`,{unsubscribed:f.unsubscribed,email:f.email,first_name:f.firstName,last_name:f.lastName},R)})}list(c){return E(this,null,function*(){return yield this.resend.get(`/audiences/${c.audienceId}/contacts`)})}get(c){return E(this,null,function*(){return yield this.resend.get(`/audiences/${c.audienceId}/contacts/${c.id}`)})}update(c){return E(this,null,function*(){return yield this.resend.patch(`/audiences/${c.audienceId}/contacts/${c.id}`,{unsubscribed:c.unsubscribed,first_name:c.firstName,last_name:c.lastName})})}remove(c){return E(this,null,function*(){return yield this.resend.delete(`/audiences/${c.audienceId}/contacts/${(c==null?void 0:c.email)?c==null?void 0:c.email:c==null?void 0:c.id}`)})}},l7=class{constructor(c){this.resend=c}create(c){return E(this,arguments,function*(f,R={}){return yield this.resend.post("/domains",f,R)})}list(){return E(this,null,function*(){return yield this.resend.get("/domains")})}get(c){return E(this,null,function*(){return yield this.resend.get(`/domains/${c}`)})}update(c){return E(this,null,function*(){return yield this.resend.patch(`/domains/${c.id}`,{click_tracking:c.clickTracking,open_tracking:c.openTracking,tls:c.tls})})}remove(c){return E(this,null,function*(){return yield this.resend.delete(`/domains/${c}`)})}verify(c){return E(this,null,function*(){return yield this.resend.post(`/domains/${c}/verify`)})}},d7=class{constructor(c){this.resend=c}send(c){return E(this,arguments,function*(f,R={}){return this.create(f,R)})}create(c){return E(this,arguments,function*(f,R={}){if(f.react)f.html=yield dh(f.react),delete f.react;return yield this.resend.post("/emails",f,R)})}get(c){return E(this,null,function*(){return yield this.resend.get(`/emails/${c}`)})}},Cy="https://api.resend.com",my=`resend-node:${m7}`,_7=typeof process<"u"&&process.env?process.env.RESEND_BASE_URL||Cy:Cy,n7=typeof process<"u"&&process.env?process.env.RESEND_USER_AGENT||my:my,py=class{constructor(c){if(this.key=c,this.apiKeys=new p7(this),this.audiences=new s7(this),this.batch=new i7(this),this.contacts=new k7(this),this.domains=new l7(this),this.emails=new d7(this),!c){if(typeof process<"u"&&process.env)this.key=process.env.RESEND_API_KEY;if(!this.key)throw Error('Missing API key. Pass it to the constructor `new Resend("re_123")`')}this.headers=new Headers({Authorization:`Bearer ${this.key}`,"User-Agent":n7,"Content-Type":"application/json"})}fetchRequest(c){return E(this,arguments,function*(f,R={}){try{let h=yield fetch(`${_7}${f}`,R);if(!h.ok)try{let H=yield h.text();return{data:null,error:JSON.parse(H)}}catch(H){if(H instanceof SyntaxError)return{data:null,error:{name:"application_error",message:"Internal server error. We are unable to process your request right now, please try again later."}};let A={message:h.statusText,name:"application_error"};if(H instanceof Error)return{data:null,error:C7(f0({},A),{message:H.message})};return{data:null,error:A}}return{data:yield h.json(),error:null}}catch(h){return{data:null,error:{name:"application_error",message:"Unable to fetch data. The request could not be resolved."}}}})}post(c,f){return E(this,arguments,function*(R,h,$={}){let H=f0({method:"POST",headers:this.headers,body:JSON.stringify(h)},$);return this.fetchRequest(R,H)})}get(c){return E(this,arguments,function*(f,R={}){let h=f0({method:"GET",headers:this.headers},R);return this.fetchRequest(f,h)})}put(c,f){return E(this,arguments,function*(R,h,$={}){let H=f0({method:"PUT",headers:this.headers,body:JSON.stringify(h)},$);return this.fetchRequest(R,H)})}patch(c,f){return E(this,arguments,function*(R,h,$={}){let H=f0({method:"PATCH",headers:this.headers,body:JSON.stringify(h)},$);return this.fetchRequest(R,H)})}delete(c,f){return E(this,null,function*(){let R={method:"DELETE",headers:this.headers,body:JSON.stringify(f)};return this.fetchRequest(c,R)})}};class _h{}class nh extends _h{apiKey;constructor(c=process.env.RESEND_API_KEY){super();this.apiKey=c}async send(c){let f=new py(this.apiKey),{data:R,error:h}=await f.emails.send({...c});if(h)return console.error(h),!1;if(R)return!0;return!1}}class sy extends l{driver=new nh;headers={};boot(){}filterRecipients(c){return c}}class iy extends l{channels={};boot(){}}class ky extends l{root;rootRouter;boot(){}onRequestStart(c){}onRequestEnd(c){}onRequestFail(c,f){}}class ly extends l{rootRouter;boot(){}onRequestStart(c){}onRequestEnd(c){}onRequestFail(c,f){}}class dy extends l{maxFileSize=10485760;boot(){}onLogFileClosed(c){}onLogCreated(c){}}class _y extends l{jobs=[];concurrency=1;boot(){}}class oy{static name="unset";worker=!1;maxAttempts=3;run(...c){}onFail(c,...f){}onSuccess(c,...f){}onDeadletter(c,...f){}static dispatch(...c){if(this.name==="unset")throw Error("Cannot dispatch a job with no name");ny.use().push(this,JSON.stringify(c))}}import o7 from"sharp";class oh{}class ah extends oh{async resize(c,f){let{height:R,width:h,quality:$,fit:H}=f;return await o7(c).resize(h>0?h:void 0,R>0?R:void 0,{fit:H}).webp({quality:$>0?$:80,force:!0}).toBuffer()}}class ay extends l{driver=new ah;boot(){}}class cR{}var a7={clientId:process.env.GOOGLE_CLIENT_ID,clientSecret:process.env.GOOGLE_CLIENT_SECRET,redirectPath:"/auth/oauth/google/callback",scope:"https://www.googleapis.com/auth/userinfo.profile"};class ty extends cR{config;constructor(c={}){super();this.config={...a7,...c}}getRedirectUrl(){let c=this.config.scope,f=this.config.clientId,R=new URL("https://accounts.google.com/o/oauth2/v2/auth"),h={scope:c,include_granted_scopes:"true",response_type:"code",state:"state_parameter_passthrough_value",redirect_uri:`${process.env.HOST_NAME}/auth/oauth/google/callback`,client_id:f};for(let[H,A]of Object.entries(h))R.searchParams.append(H,A);return R.toString()}async onCallback(c){let f=new URL("https://oauth2.googleapis.com/token");f.searchParams.append("code",c.search.get("code")),f.searchParams.append("client_id",this.config.clientId),f.searchParams.append("client_secret",this.config.clientSecret),f.searchParams.append("grant_type","authorization_code"),f.searchParams.append("redirect_uri",`${process.env.HOST_NAME}${this.config.redirectPath}`);let R=await fetch(f.toString(),{method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded"}}),{access_token:h}=await R.json(),H=await(await fetch(`https://www.googleapis.com/oauth2/v3/userinfo?access_token=${h}`)).json();if(!H.email)console.error("Google OAuth error: email not found in user info response",H);return{name:H.name,email:H.email}}}var Gf="https://api.x.com/2/",fR="https://api.x.com/labs/2/",yf="https://api.x.com/1.1/",_c="https://upload.x.com/1.1/",ry="https://stream.x.com/1.1/",RR="https://ads-api.x.com/12/",hR="https://ads-api-sandbox.twitter.com/12/";class x8{constructor({realData:c,rateLimit:f,instance:R,queryParams:h,sharedParams:$}){this._maxResultsWhenFetchLast=100,this._realData=c,this._rateLimit=f,this._instance=R,this._queryParams=h,this._sharedParams=$}get _isRateLimitOk(){if(!this._rateLimit)return!0;if(this._rateLimit.reset*1000<Date.now())return!0;return this._rateLimit.remaining>0}makeRequest(c){return this._instance.get(this.getEndpoint(),c,{fullResponse:!0,params:this._sharedParams})}makeNewInstanceFromResult(c,f){return new this.constructor({realData:c.data,rateLimit:c.rateLimit,instance:this._instance,queryParams:f,sharedParams:this._sharedParams})}getEndpoint(){return this._endpoint}injectQueryParams(c){return{...c?{max_results:c}:{},...this._queryParams}}async next(c){let f=this.getNextQueryParams(c),R=await this.makeRequest(f);return this.makeNewInstanceFromResult(R,f)}async fetchNext(c){let f=this.getNextQueryParams(c),R=await this.makeRequest(f);return await this.refreshInstanceFromResult(R,!0),this}async fetchLast(c=1/0){let f=this.getNextQueryParams(this._maxResultsWhenFetchLast),R=0;while(R<c&&this._isRateLimitOk){let h=await this.makeRequest(f);if(await this.refreshInstanceFromResult(h,!0),R+=this.getPageLengthFromRequest(h),this.isFetchLastOver(h))break;f=this.getNextQueryParams(this._maxResultsWhenFetchLast)}return this}get rateLimit(){var c;return{...(c=this._rateLimit)!==null&&c!==void 0?c:{}}}get data(){return this._realData}get done(){return!this.canFetchNextPage(this._realData)}*[Symbol.iterator](){yield*this.getItemArray()}async*[Symbol.asyncIterator](){yield*this.getItemArray();let c=this,f=this.canFetchNextPage(this._realData);while(f&&this._isRateLimitOk&&c.getItemArray().length>0){let R=await c.next(this._maxResultsWhenFetchLast);this.refreshInstanceFromResult({data:R._realData,headers:{},rateLimit:R._rateLimit},!0),f=this.canFetchNextPage(R._realData),yield*R.getItemArray(),c=R}}async*fetchAndIterate(){for(let R of this.getItemArray())yield[R,this];let c=this,f=this.canFetchNextPage(this._realData);while(f&&this._isRateLimitOk&&c.getItemArray().length>0){let R=await c.next(this._maxResultsWhenFetchLast);this.refreshInstanceFromResult({data:R._realData,headers:{},rateLimit:R._rateLimit},!0),f=this.canFetchNextPage(R._realData);for(let h of R.getItemArray())yield[h,R];this._rateLimit=R._rateLimit,c=R}}}class I8 extends x8{async previous(c){let f=this.getPreviousQueryParams(c),R=await this.makeRequest(f);return this.makeNewInstanceFromResult(R,f)}async fetchPrevious(c){let f=this.getPreviousQueryParams(c),R=await this.makeRequest(f);return await this.refreshInstanceFromResult(R,!1),this}}var $R=x8;class Ac extends $R{getNextQueryParams(c){var f;return{...this._queryParams,cursor:(f=this._realData.next_cursor_str)!==null&&f!==void 0?f:this._realData.next_cursor,...c?{count:c}:{}}}isFetchLastOver(c){return!this.canFetchNextPage(c.data)}canFetchNextPage(c){return!this.isNextCursorInvalid(c.next_cursor)||!this.isNextCursorInvalid(c.next_cursor_str)}isNextCursorInvalid(c){return c===void 0||c===0||c===-1||c==="0"||c==="-1"}}class P8 extends Ac{constructor(){super(...arguments);this._endpoint="direct_messages/events/list.json"}refreshInstanceFromResult(c,f){let R=c.data;if(this._rateLimit=c.rateLimit,f)this._realData.events.push(...R.events),this._realData.next_cursor=R.next_cursor}getPageLengthFromRequest(c){return c.data.events.length}getItemArray(){return this.events}get events(){return this._realData.events}}class K8 extends Ac{constructor(){super(...arguments);this._endpoint="direct_messages/welcome_messages/list.json"}refreshInstanceFromResult(c,f){let R=c.data;if(this._rateLimit=c.rateLimit,f)this._realData.welcome_messages.push(...R.welcome_messages),this._realData.next_cursor=R.next_cursor}getPageLengthFromRequest(c){return c.data.welcome_messages.length}getItemArray(){return this.welcomeMessages}get welcomeMessages(){return this._realData.welcome_messages}}var i;(function(c){c.Jpeg="image/jpeg",c.Mp4="video/mp4",c.Mov="video/quicktime",c.Gif="image/gif",c.Png="image/png",c.Srt="text/plain",c.Webp="image/webp"})(i||(i={}));var Ff;(function(c){c.Create="message_create",c.WelcomeCreate="welcome_message"})(Ff||(Ff={}));var R0;(function(c){c.Request="request",c.PartialResponse="partial-response",c.Response="response"})(R0||(R0={}));class th extends Error{constructor(){super(...arguments);this.error=!0}}class h0 extends th{constructor(c,f){super(c);this.type=R0.Request,Error.captureStackTrace(this,this.constructor),Object.defineProperty(this,"_options",{value:f})}get request(){return this._options.request}get requestError(){return this._options.requestError}toJSON(){return{type:this.type,error:this.requestError}}}class $0 extends th{constructor(c,f){super(c);this.type=R0.PartialResponse,Error.captureStackTrace(this,this.constructor),Object.defineProperty(this,"_options",{value:f})}get request(){return this._options.request}get response(){return this._options.response}get responseError(){return this._options.responseError}get rawContent(){return this._options.rawContent}toJSON(){return{type:this.type,error:this.responseError}}}class H0 extends th{constructor(c,f){super(c);if(this.type=R0.Response,Error.captureStackTrace(this,this.constructor),Object.defineProperty(this,"_options",{value:f}),this.code=f.code,this.headers=f.headers,this.rateLimit=f.rateLimit,f.data&&typeof f.data==="object"&&"error"in f.data&&!f.data.errors){let R={...f.data};R.errors=[{code:Qf.InternalError,message:R.error}],this.data=R}else this.data=f.data}get request(){return this._options.request}get response(){return this._options.response}hasErrorCode(...c){let f=this.errors;if(!(f===null||f===void 0?void 0:f.length))return!1;if("code"in f[0])return f.some(($)=>c.includes($.code));let R=this.data;return c.includes(R.type)}get errors(){var c;return(c=this.data)===null||c===void 0?void 0:c.errors}get rateLimitError(){return this.code===420||this.code===429}get isAuthError(){if(this.code===401)return!0;return this.hasErrorCode(Qf.AuthTimestampInvalid,Qf.AuthenticationFail,Qf.BadAuthenticationData,Qf.InvalidOrExpiredToken)}toJSON(){return{type:this.type,code:this.code,error:this.data,rateLimit:this.rateLimit,headers:this.headers}}}var Qf;(function(c){c[c.InvalidCoordinates=3]="InvalidCoordinates",c[c.NoLocationFound=13]="NoLocationFound",c[c.AuthenticationFail=32]="AuthenticationFail",c[c.InvalidOrExpiredToken=89]="InvalidOrExpiredToken",c[c.UnableToVerifyCredentials=99]="UnableToVerifyCredentials",c[c.AuthTimestampInvalid=135]="AuthTimestampInvalid",c[c.BadAuthenticationData=215]="BadAuthenticationData",c[c.NoUserMatch=17]="NoUserMatch",c[c.UserNotFound=50]="UserNotFound",c[c.ResourceNotFound=34]="ResourceNotFound",c[c.TweetNotFound=144]="TweetNotFound",c[c.TweetNotVisible=179]="TweetNotVisible",c[c.NotAllowedResource=220]="NotAllowedResource",c[c.MediaIdNotFound=325]="MediaIdNotFound",c[c.TweetNoLongerAvailable=421]="TweetNoLongerAvailable",c[c.TweetViolatedRules=422]="TweetViolatedRules",c[c.TargetUserSuspended=63]="TargetUserSuspended",c[c.YouAreSuspended=64]="YouAreSuspended",c[c.AccountUpdateFailed=120]="AccountUpdateFailed",c[c.NoSelfSpamReport=36]="NoSelfSpamReport",c[c.NoSelfMute=271]="NoSelfMute",c[c.AccountLocked=326]="AccountLocked",c[c.RateLimitExceeded=88]="RateLimitExceeded",c[c.NoDMRightForApp=93]="NoDMRightForApp",c[c.OverCapacity=130]="OverCapacity",c[c.InternalError=131]="InternalError",c[c.TooManyFollowings=161]="TooManyFollowings",c[c.TweetLimitExceeded=185]="TweetLimitExceeded",c[c.DuplicatedTweet=187]="DuplicatedTweet",c[c.TooManySpamReports=205]="TooManySpamReports",c[c.RequestLooksLikeSpam=226]="RequestLooksLikeSpam",c[c.NoWriteRightForApp=261]="NoWriteRightForApp",c[c.TweetActionsDisabled=425]="TweetActionsDisabled",c[c.TweetRepliesRestricted=433]="TweetRepliesRestricted",c[c.NamedParameterMissing=38]="NamedParameterMissing",c[c.InvalidAttachmentUrl=44]="InvalidAttachmentUrl",c[c.TweetTextTooLong=186]="TweetTextTooLong",c[c.MissingUrlParameter=195]="MissingUrlParameter",c[c.NoMultipleGifs=323]="NoMultipleGifs",c[c.InvalidMediaIds=324]="InvalidMediaIds",c[c.InvalidUrl=407]="InvalidUrl",c[c.TooManyTweetAttachments=386]="TooManyTweetAttachments",c[c.StatusAlreadyFavorited=139]="StatusAlreadyFavorited",c[c.FollowRequestAlreadySent=160]="FollowRequestAlreadySent",c[c.CannotUnmuteANonMutedAccount=272]="CannotUnmuteANonMutedAccount",c[c.TweetAlreadyRetweeted=327]="TweetAlreadyRetweeted",c[c.ReplyToDeletedTweet=385]="ReplyToDeletedTweet",c[c.DMReceiverNotFollowingYou=150]="DMReceiverNotFollowingYou",c[c.UnableToSendDM=151]="UnableToSendDM",c[c.MustAllowDMFromAnyone=214]="MustAllowDMFromAnyone",c[c.CannotSendDMToThisUser=349]="CannotSendDMToThisUser",c[c.DMTextTooLong=354]="DMTextTooLong",c[c.SubscriptionAlreadyExists=355]="SubscriptionAlreadyExists",c[c.CallbackUrlNotApproved=415]="CallbackUrlNotApproved",c[c.SuspendedApplication=416]="SuspendedApplication",c[c.OobOauthIsNotAllowed=417]="OobOauthIsNotAllowed"})(Qf||(Qf={}));var ey;(function(c){c.InvalidRequest="https://developer.x.com/en/support/x-api/error-troubleshooting#invalid-request",c.ClientForbidden="https://developer.x.com/en/support/x-api/error-troubleshooting#client-forbidden",c.UnsupportedAuthentication="https://developer.x.com/en/support/x-api/error-troubleshooting#unsupported-authentication",c.InvalidRules="https://developer.x.com/en/support/x-api/error-troubleshooting#invalid-rules",c.TooManyRules="https://developer.x.com/en/support/x-api/error-troubleshooting#rule-cap",c.DuplicatedRules="https://developer.x.com/en/support/x-api/error-troubleshooting#duplicate-rules",c.RateLimitExceeded="https://developer.x.com/en/support/x-api/error-troubleshooting#usage-capped",c.ConnectionError="https://developer.x.com/en/support/x-api/error-troubleshooting#streaming-connection",c.ClientDisconnected="https://developer.x.com/en/support/x-api/error-troubleshooting#client-disconnected",c.TwitterDisconnectedYou="https://developer.x.com/en/support/x-api/error-troubleshooting#operational-disconnect",c.ResourceNotFound="https://developer.x.com/en/support/x-api/error-troubleshooting#resource-not-found",c.ResourceUnauthorized="https://developer.x.com/en/support/x-api/error-troubleshooting#not-authorized-for-resource",c.DisallowedResource="https://developer.x.com/en/support/x-api/error-troubleshooting#disallowed-resource"})(ey||(ey={}));var L;(function(c){c.Connected="connected",c.ConnectError="connect error",c.ConnectionError="connection error",c.ConnectionClosed="connection closed",c.ConnectionLost="connection lost",c.ReconnectAttempt="reconnect attempt",c.Reconnected="reconnected",c.ReconnectError="reconnect error",c.ReconnectLimitExceeded="reconnect limit exceeded",c.DataKeepAlive="data keep-alive",c.Data="data event content",c.DataError="data twitter error",c.TweetParseError="data tweet parse error",c.Error="stream error"})(L||(L={}));class A0{constructor(c){this.value=c}}import*as R4 from"fs";var Fc={debug:!1,deprecationWarnings:!0,logger:{log:console.log.bind(console)}};function O8(c){let f={value:void 0,promise:c().then((R)=>{return f.value=R,R})};return f}function rh(c){if(Array.isArray(c))return c;return[c]}function fF(c){for(let f of Object.keys(c))if(c[f]===void 0)delete c[f]}function eh(c){return typeof c==="object"&&"errors"in c&&!("data"in c)}function G0(c){if(Array.isArray(c)&&c.length>1)return!0;return c.toString().includes(",")}var cF=new Set;function b8(c){if(typeof console>"u"||!console.warn||!Fc.deprecationWarnings)return;let f=`${c.instance}-${c.method}-${c.problem}`;if(cF.has(f))return;let R=`[twitter-api-v2] Deprecation warning: In ${c.instance}.${c.method}() call, ${c.problem}.
66
+ `)})}function r$(c,f){if(!f)return c;let R=typeof f[0]==="string"?f[0]:"[",h=typeof f[1]==="string"?f[1]:"]";return R+c+h}function j3(c,f,R,h,$){let H=typeof f==="function"?f(c,h,$):c;return H[0]==="/"&&R?qY(R,"/")+H:H}function WN(c,f,R,h){let $=c.attribs||{},H=$.alt?$.alt:"",A=!$.src?"":j3($.src,h.pathRewrite,h.baseUrl,R.metadata,c),G=!A?H:!H?r$(A,h.linkBrackets):H+" "+r$(A,h.linkBrackets);R.addInline(G,{noWordTransform:!0})}function vN(c,f,R,h){function $(){if(h.ignoreHref)return"";if(!c.attribs||!c.attribs.href)return"";let A=c.attribs.href.replace(/^mailto:/,"");if(h.noAnchorUrl&&A[0]==="#")return"";return A=j3(A,h.pathRewrite,h.baseUrl,R.metadata,c),A}let H=$();if(!H)f(c.children,R);else{let A="";if(R.pushWordTransform((y)=>{if(y)A+=y;return y}),f(c.children,R),R.popWordTransform(),!(h.hideLinkHrefIfSameAsText&&H===A))R.addInline(!A?H:" "+r$(H,h.linkBrackets),{noWordTransform:!0})}}function L3(c,f,R,h,$){let H=rf(c,["parent","name"])==="li",A=0,G=(c.children||[]).filter((y)=>y.type!=="text"||!/^\s*$/.test(y.data)).map(function(y){if(y.name!=="li")return{node:y,prefix:""};let F=H?$().trimStart():$();if(F.length>A)A=F.length;return{node:y,prefix:F}});if(!G.length)return;R.openList({interRowLineBreaks:1,leadingLineBreaks:H?1:h.leadingLineBreaks||2,maxPrefixLength:A,prefixAlign:"left"});for(let{node:y,prefix:F}of G)R.openListItem({prefix:F}),f([y],R),R.closeListItem();R.closeList({trailingLineBreaks:H?1:h.trailingLineBreaks||2})}function UN(c,f,R,h){let $=h.itemPrefix||" * ";return L3(c,f,R,h,()=>$)}function YN(c,f,R,h){let $=Number(c.attribs.start||"1"),H=NN(c.attribs.type);return L3(c,f,R,h,()=>" "+H($++)+". ")}function NN(c="1"){switch(c){case"a":return(f)=>Y3(f,"a");case"A":return(f)=>Y3(f,"A");case"i":return(f)=>Z3(f).toLowerCase();case"I":return(f)=>Z3(f);case"1":default:return(f)=>f.toString()}}function ZN(c){let f=[],R=[];for(let h of c)if(h.startsWith("."))f.push(h.substring(1));else if(h.startsWith("#"))R.push(h.substring(1));return{classes:f,ids:R}}function JN(c,f){if(f===!0)return!0;if(!c)return!1;let{classes:R,ids:h}=ZN(f),$=(c.class||"").split(" "),H=(c.id||"").split(" ");return $.some((A)=>R.includes(A))||H.some((A)=>h.includes(A))}function zN(c,f,R,h){return JN(c.attribs,R.options.tables)?x3(c,f,R,h):SN(c,f,R,h)}function SN(c,f,R,h){R.openBlock({leadingLineBreaks:h.leadingLineBreaks}),f(c.children,R),R.closeBlock({trailingLineBreaks:h.trailingLineBreaks})}function x3(c,f,R,h){R.openTable(),c.children.forEach(H),R.closeTable({tableToString:(A)=>RN(A,h.rowSpacing??0,h.colSpacing??3),leadingLineBreaks:h.leadingLineBreaks,trailingLineBreaks:h.trailingLineBreaks});function $(A){let G=+rf(A,["attribs","colspan"])||1,y=+rf(A,["attribs","rowspan"])||1;R.openTableCell({maxColumnWidth:h.maxColumnWidth}),f(A.children,R),R.closeTableCell({colspan:G,rowspan:y})}function H(A){if(A.type!=="tag")return;let G=h.uppercaseHeaderCells!==!1?(y)=>{R.pushWordTransform((F)=>F.toUpperCase()),$(y),R.popWordTransform()}:$;switch(A.name){case"thead":case"tbody":case"tfoot":case"center":A.children.forEach(H);return;case"tr":{R.openTableRow();for(let y of A.children){if(y.type!=="tag")continue;switch(y.name){case"th":{G(y);break}case"td":{$(y);break}}}R.closeTableRow();break}}}}var MN=Object.freeze({__proto__:null,anchor:vN,blockquote:FN,dataTable:x3,heading:yN,horizontalLine:HN,image:WN,lineBreak:hN,orderedList:YN,paragraph:AN,pre:GN,table:zN,unorderedList:UN,wbr:$N}),BN={baseElements:{selectors:["body"],orderBy:"selectors",returnDomByDefault:!0},decodeEntities:!0,encodeCharacters:{},formatters:{},limits:{ellipsis:"...",maxBaseElements:void 0,maxChildNodes:void 0,maxDepth:void 0,maxInputLength:16777216},longWordSplit:{forceWrapOnLimit:!1,wrapCharacters:[]},preserveNewlines:!1,selectors:[{selector:"*",format:"inline"},{selector:"a",format:"anchor",options:{baseUrl:null,hideLinkHrefIfSameAsText:!1,ignoreHref:!1,linkBrackets:["[","]"],noAnchorUrl:!0}},{selector:"article",format:"block",options:{leadingLineBreaks:1,trailingLineBreaks:1}},{selector:"aside",format:"block",options:{leadingLineBreaks:1,trailingLineBreaks:1}},{selector:"blockquote",format:"blockquote",options:{leadingLineBreaks:2,trailingLineBreaks:2,trimEmptyLines:!0}},{selector:"br",format:"lineBreak"},{selector:"div",format:"block",options:{leadingLineBreaks:1,trailingLineBreaks:1}},{selector:"footer",format:"block",options:{leadingLineBreaks:1,trailingLineBreaks:1}},{selector:"form",format:"block",options:{leadingLineBreaks:1,trailingLineBreaks:1}},{selector:"h1",format:"heading",options:{leadingLineBreaks:3,trailingLineBreaks:2,uppercase:!0}},{selector:"h2",format:"heading",options:{leadingLineBreaks:3,trailingLineBreaks:2,uppercase:!0}},{selector:"h3",format:"heading",options:{leadingLineBreaks:3,trailingLineBreaks:2,uppercase:!0}},{selector:"h4",format:"heading",options:{leadingLineBreaks:2,trailingLineBreaks:2,uppercase:!0}},{selector:"h5",format:"heading",options:{leadingLineBreaks:2,trailingLineBreaks:2,uppercase:!0}},{selector:"h6",format:"heading",options:{leadingLineBreaks:2,trailingLineBreaks:2,uppercase:!0}},{selector:"header",format:"block",options:{leadingLineBreaks:1,trailingLineBreaks:1}},{selector:"hr",format:"horizontalLine",options:{leadingLineBreaks:2,length:void 0,trailingLineBreaks:2}},{selector:"img",format:"image",options:{baseUrl:null,linkBrackets:["[","]"]}},{selector:"main",format:"block",options:{leadingLineBreaks:1,trailingLineBreaks:1}},{selector:"nav",format:"block",options:{leadingLineBreaks:1,trailingLineBreaks:1}},{selector:"ol",format:"orderedList",options:{leadingLineBreaks:2,trailingLineBreaks:2}},{selector:"p",format:"paragraph",options:{leadingLineBreaks:2,trailingLineBreaks:2}},{selector:"pre",format:"pre",options:{leadingLineBreaks:2,trailingLineBreaks:2}},{selector:"section",format:"block",options:{leadingLineBreaks:1,trailingLineBreaks:1}},{selector:"table",format:"table",options:{colSpacing:3,leadingLineBreaks:2,maxColumnWidth:60,rowSpacing:0,trailingLineBreaks:2,uppercaseHeaderCells:!0}},{selector:"ul",format:"unorderedList",options:{itemPrefix:" * ",leadingLineBreaks:2,trailingLineBreaks:2}},{selector:"wbr",format:"wbr"}],tables:[],whitespaceCharacters:` \r
67
+ \f\u200B`,wordwrap:80},XN=(c,f,R)=>[...c,...f],I3=(c,f,R)=>[...f],QN=(c,f,R)=>c.some((h)=>typeof h==="object")?XN(c,f):I3(c,f);function DN(c={}){return c=e$.default(BN,c,{arrayMerge:I3,customMerge:(f)=>f==="selectors"?QN:void 0}),c.formatters=Object.assign({},rY,MN,c.formatters),c.selectors=S3(c.selectors,(f)=>f.selector),wN(c),uY(c)}function R8(c,f={},R=void 0){return DN(f)(c,R)}function wN(c){if(c.tags){let R=Object.entries(c.tags).map(([h,$])=>({...$,selector:h||"*"}));c.selectors.push(...R),c.selectors=S3(c.selectors,(h)=>h.selector)}function f(R,h,$){let H=h.pop();for(let A of h){let G=R[A];if(!G)G={},R[A]=G;R=G}R[H]=$}if(c.baseElement){let R=c.baseElement;f(c,["baseElements","selectors"],Array.isArray(R)?R:[R])}if(c.returnDomByDefault!==void 0)f(c,["baseElements","returnDomByDefault"],c.returnDomByDefault);for(let R of c.selectors)if(R.format==="anchor"&&rf(R,["options","noLinkBrackets"]))f(R,["options","linkBrackets"],!1)}var Ty=Y(Oy(),1);import{Writable as q7}from"stream";var{defineProperty:L7,getOwnPropertySymbols:by}=Object,x7=Object.prototype.hasOwnProperty,I7=Object.prototype.propertyIsEnumerable,qy=(c,f,R)=>(f in c)?L7(c,f,{enumerable:!0,configurable:!0,writable:!0,value:R}):c[f]=R,j8=(c,f)=>{for(var R in f||(f={}))if(x7.call(f,R))qy(c,R,f[R]);if(by){for(var R of by(f))if(I7.call(f,R))qy(c,R,f[R])}return c},L8=(c,f,R)=>{return new Promise((h,$)=>{var H=(y)=>{try{G(R.next(y))}catch(F){$(F)}},A=(y)=>{try{G(R.throw(y))}catch(F){$(F)}},G=(y)=>y.done?h(y.value):Promise.resolve(y.value).then(H,A);G((R=R.apply(c,f)).next())})},K7={unformatted:["code","pre","em","strong","span"],indent_inner_html:!0,indent_char:" ",indent_size:2,sep:`
68
+ `},O7=(c,f={})=>{return Ty.default.html(c,j8(j8({},K7),f))},b7=[{selector:"img",format:"skip"},{selector:"#__react-email-preview",format:"skip"},{selector:"a",options:{linkBrackets:!1}}];var Vy=new TextDecoder("utf-8"),Ey=(c)=>L8(void 0,null,function*(){let f="";if("pipeTo"in c){let R=new WritableStream({write(h){f+=Vy.decode(h)}});yield c.pipeTo(R)}else{let R=new q7({write(h,$,H){f+=Vy.decode(h),H()}});return c.pipe(R),new Promise((h,$)=>{R.on("error",$),R.on("close",()=>{h(f)})})}return f}),dh=(c,f)=>L8(void 0,null,function*(){let{default:R}=yield import("react-dom/server"),h;if(Object.hasOwn(R,"renderToReadableStream"))h=yield Ey(yield R.renderToReadableStream(c));else yield new Promise((A,G)=>{let y=R.renderToPipeableStream(c,{onAllReady(){return L8(this,null,function*(){h=yield Ey(y),A()})},onError(F){G(F)}})});if(f==null?void 0:f.plainText)return R8(h,j8({selectors:b7},f.htmlToTextOptions));let H=`${'<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">'}${h.replace(/<!DOCTYPE.*?>/,"")}`;if(f==null?void 0:f.pretty)return O7(H);return H});var{defineProperty:V7,defineProperties:E7,getOwnPropertyDescriptors:T7,getOwnPropertySymbols:uy}=Object,u7=Object.prototype.hasOwnProperty,g7=Object.prototype.propertyIsEnumerable,gy=(c,f,R)=>(f in c)?V7(c,f,{enumerable:!0,configurable:!0,writable:!0,value:R}):c[f]=R,f0=(c,f)=>{for(var R in f||(f={}))if(u7.call(f,R))gy(c,R,f[R]);if(uy){for(var R of uy(f))if(g7.call(f,R))gy(c,R,f[R])}return c},C7=(c,f)=>E7(c,T7(f)),E=(c,f,R)=>{return new Promise((h,$)=>{var H=(y)=>{try{G(R.next(y))}catch(F){$(F)}},A=(y)=>{try{G(R.throw(y))}catch(F){$(F)}},G=(y)=>y.done?h(y.value):Promise.resolve(y.value).then(H,A);G((R=R.apply(c,f)).next())})},m7="3.5.0",p7=class{constructor(c){this.resend=c}create(c){return E(this,arguments,function*(f,R={}){return yield this.resend.post("/api-keys",f,R)})}list(){return E(this,null,function*(){return yield this.resend.get("/api-keys")})}remove(c){return E(this,null,function*(){return yield this.resend.delete(`/api-keys/${c}`)})}},s7=class{constructor(c){this.resend=c}create(c){return E(this,arguments,function*(f,R={}){return yield this.resend.post("/audiences",f,R)})}list(){return E(this,null,function*(){return yield this.resend.get("/audiences")})}get(c){return E(this,null,function*(){return yield this.resend.get(`/audiences/${c}`)})}remove(c){return E(this,null,function*(){return yield this.resend.delete(`/audiences/${c}`)})}},i7=class{constructor(c){this.resend=c}send(c){return E(this,arguments,function*(f,R={}){return this.create(f,R)})}create(c){return E(this,arguments,function*(f,R={}){for(let $ of f)if($.react)$.html=yield dh($.react),delete $.react;return yield this.resend.post("/emails/batch",f,R)})}},k7=class{constructor(c){this.resend=c}create(c){return E(this,arguments,function*(f,R={}){return yield this.resend.post(`/audiences/${f.audienceId}/contacts`,{unsubscribed:f.unsubscribed,email:f.email,first_name:f.firstName,last_name:f.lastName},R)})}list(c){return E(this,null,function*(){return yield this.resend.get(`/audiences/${c.audienceId}/contacts`)})}get(c){return E(this,null,function*(){return yield this.resend.get(`/audiences/${c.audienceId}/contacts/${c.id}`)})}update(c){return E(this,null,function*(){return yield this.resend.patch(`/audiences/${c.audienceId}/contacts/${c.id}`,{unsubscribed:c.unsubscribed,first_name:c.firstName,last_name:c.lastName})})}remove(c){return E(this,null,function*(){return yield this.resend.delete(`/audiences/${c.audienceId}/contacts/${(c==null?void 0:c.email)?c==null?void 0:c.email:c==null?void 0:c.id}`)})}},l7=class{constructor(c){this.resend=c}create(c){return E(this,arguments,function*(f,R={}){return yield this.resend.post("/domains",f,R)})}list(){return E(this,null,function*(){return yield this.resend.get("/domains")})}get(c){return E(this,null,function*(){return yield this.resend.get(`/domains/${c}`)})}update(c){return E(this,null,function*(){return yield this.resend.patch(`/domains/${c.id}`,{click_tracking:c.clickTracking,open_tracking:c.openTracking,tls:c.tls})})}remove(c){return E(this,null,function*(){return yield this.resend.delete(`/domains/${c}`)})}verify(c){return E(this,null,function*(){return yield this.resend.post(`/domains/${c}/verify`)})}},d7=class{constructor(c){this.resend=c}send(c){return E(this,arguments,function*(f,R={}){return this.create(f,R)})}create(c){return E(this,arguments,function*(f,R={}){if(f.react)f.html=yield dh(f.react),delete f.react;return yield this.resend.post("/emails",f,R)})}get(c){return E(this,null,function*(){return yield this.resend.get(`/emails/${c}`)})}},Cy="https://api.resend.com",my=`resend-node:${m7}`,_7=typeof process<"u"&&process.env?process.env.RESEND_BASE_URL||Cy:Cy,n7=typeof process<"u"&&process.env?process.env.RESEND_USER_AGENT||my:my,py=class{constructor(c){if(this.key=c,this.apiKeys=new p7(this),this.audiences=new s7(this),this.batch=new i7(this),this.contacts=new k7(this),this.domains=new l7(this),this.emails=new d7(this),!c){if(typeof process<"u"&&process.env)this.key=process.env.RESEND_API_KEY;if(!this.key)throw Error('Missing API key. Pass it to the constructor `new Resend("re_123")`')}this.headers=new Headers({Authorization:`Bearer ${this.key}`,"User-Agent":n7,"Content-Type":"application/json"})}fetchRequest(c){return E(this,arguments,function*(f,R={}){try{let h=yield fetch(`${_7}${f}`,R);if(!h.ok)try{let H=yield h.text();return{data:null,error:JSON.parse(H)}}catch(H){if(H instanceof SyntaxError)return{data:null,error:{name:"application_error",message:"Internal server error. We are unable to process your request right now, please try again later."}};let A={message:h.statusText,name:"application_error"};if(H instanceof Error)return{data:null,error:C7(f0({},A),{message:H.message})};return{data:null,error:A}}return{data:yield h.json(),error:null}}catch(h){return{data:null,error:{name:"application_error",message:"Unable to fetch data. The request could not be resolved."}}}})}post(c,f){return E(this,arguments,function*(R,h,$={}){let H=f0({method:"POST",headers:this.headers,body:JSON.stringify(h)},$);return this.fetchRequest(R,H)})}get(c){return E(this,arguments,function*(f,R={}){let h=f0({method:"GET",headers:this.headers},R);return this.fetchRequest(f,h)})}put(c,f){return E(this,arguments,function*(R,h,$={}){let H=f0({method:"PUT",headers:this.headers,body:JSON.stringify(h)},$);return this.fetchRequest(R,H)})}patch(c,f){return E(this,arguments,function*(R,h,$={}){let H=f0({method:"PATCH",headers:this.headers,body:JSON.stringify(h)},$);return this.fetchRequest(R,H)})}delete(c,f){return E(this,null,function*(){let R={method:"DELETE",headers:this.headers,body:JSON.stringify(f)};return this.fetchRequest(c,R)})}};class _h{}class nh extends _h{apiKey;constructor(c=process.env.RESEND_API_KEY){super();this.apiKey=c}async send(c){let f=new py(this.apiKey),{data:R,error:h}=await f.emails.send({...c});if(h)return console.error(h),!1;if(R)return!0;return!1}}class sy extends l{driver=new nh;headers={};boot(){}filterRecipients(c){return c}}class iy extends l{channels={};boot(){}}class ky extends l{root;rootRouter;boot(){}onRequestStart(c){}onRequestEnd(c){}onRequestFail(c,f){}}class ly extends l{rootRouter;boot(){}onRequestStart(c){}onRequestEnd(c){}onRequestFail(c,f){}}class dy extends l{maxFileSize=10485760;boot(){}onLogFileClosed(c){}onLogCreated(c){}}class _y extends l{jobs=[];concurrency=1;boot(){}}class oy{static name="unset";worker=!1;maxAttempts=3;run(...c){}onFail(c,...f){}onSuccess(c,...f){}onDeadletter(c,...f){}static dispatch(...c){if(this.name==="unset")throw Error("Cannot dispatch a job with no name");ny.use().push(this,JSON.stringify(c))}}import o7 from"sharp";class oh{}class ah extends oh{async resize(c,f){let{height:R,width:h,quality:$,fit:H}=f;return await o7(c).resize(h>0?h:void 0,R>0?R:void 0,{fit:H}).webp({quality:$>0?$:80,force:!0}).toBuffer()}}class ay extends l{driver=new ah;boot(){}}class cR{}var a7={clientId:process.env.GOOGLE_CLIENT_ID,clientSecret:process.env.GOOGLE_CLIENT_SECRET,redirectPath:"/auth/oauth/google/callback",scope:"https://www.googleapis.com/auth/userinfo.profile https://www.googleapis.com/auth/userinfo.email"};class ty extends cR{config;constructor(c={}){super();this.config={...a7,...c}}getRedirectUrl(){let c=this.config.scope,f=this.config.clientId,R=new URL("https://accounts.google.com/o/oauth2/v2/auth"),h={scope:c,include_granted_scopes:"true",response_type:"code",state:"state_parameter_passthrough_value",redirect_uri:`${process.env.HOST_NAME}/auth/oauth/google/callback`,client_id:f};for(let[H,A]of Object.entries(h))R.searchParams.append(H,A);return R.toString()}async onCallback(c){let f=new URL("https://oauth2.googleapis.com/token");f.searchParams.append("code",c.search.get("code")),f.searchParams.append("client_id",this.config.clientId),f.searchParams.append("client_secret",this.config.clientSecret),f.searchParams.append("grant_type","authorization_code"),f.searchParams.append("redirect_uri",`${process.env.HOST_NAME}${this.config.redirectPath}`);let R=await fetch(f.toString(),{method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded"}}),{access_token:h}=await R.json(),H=await(await fetch(`https://www.googleapis.com/oauth2/v3/userinfo?access_token=${h}`)).json();if(!H.email)console.error("Google OAuth error: email not found in user info response",H);return{name:H.name,email:H.email}}}var Gf="https://api.x.com/2/",fR="https://api.x.com/labs/2/",yf="https://api.x.com/1.1/",_c="https://upload.x.com/1.1/",ry="https://stream.x.com/1.1/",RR="https://ads-api.x.com/12/",hR="https://ads-api-sandbox.twitter.com/12/";class x8{constructor({realData:c,rateLimit:f,instance:R,queryParams:h,sharedParams:$}){this._maxResultsWhenFetchLast=100,this._realData=c,this._rateLimit=f,this._instance=R,this._queryParams=h,this._sharedParams=$}get _isRateLimitOk(){if(!this._rateLimit)return!0;if(this._rateLimit.reset*1000<Date.now())return!0;return this._rateLimit.remaining>0}makeRequest(c){return this._instance.get(this.getEndpoint(),c,{fullResponse:!0,params:this._sharedParams})}makeNewInstanceFromResult(c,f){return new this.constructor({realData:c.data,rateLimit:c.rateLimit,instance:this._instance,queryParams:f,sharedParams:this._sharedParams})}getEndpoint(){return this._endpoint}injectQueryParams(c){return{...c?{max_results:c}:{},...this._queryParams}}async next(c){let f=this.getNextQueryParams(c),R=await this.makeRequest(f);return this.makeNewInstanceFromResult(R,f)}async fetchNext(c){let f=this.getNextQueryParams(c),R=await this.makeRequest(f);return await this.refreshInstanceFromResult(R,!0),this}async fetchLast(c=1/0){let f=this.getNextQueryParams(this._maxResultsWhenFetchLast),R=0;while(R<c&&this._isRateLimitOk){let h=await this.makeRequest(f);if(await this.refreshInstanceFromResult(h,!0),R+=this.getPageLengthFromRequest(h),this.isFetchLastOver(h))break;f=this.getNextQueryParams(this._maxResultsWhenFetchLast)}return this}get rateLimit(){var c;return{...(c=this._rateLimit)!==null&&c!==void 0?c:{}}}get data(){return this._realData}get done(){return!this.canFetchNextPage(this._realData)}*[Symbol.iterator](){yield*this.getItemArray()}async*[Symbol.asyncIterator](){yield*this.getItemArray();let c=this,f=this.canFetchNextPage(this._realData);while(f&&this._isRateLimitOk&&c.getItemArray().length>0){let R=await c.next(this._maxResultsWhenFetchLast);this.refreshInstanceFromResult({data:R._realData,headers:{},rateLimit:R._rateLimit},!0),f=this.canFetchNextPage(R._realData),yield*R.getItemArray(),c=R}}async*fetchAndIterate(){for(let R of this.getItemArray())yield[R,this];let c=this,f=this.canFetchNextPage(this._realData);while(f&&this._isRateLimitOk&&c.getItemArray().length>0){let R=await c.next(this._maxResultsWhenFetchLast);this.refreshInstanceFromResult({data:R._realData,headers:{},rateLimit:R._rateLimit},!0),f=this.canFetchNextPage(R._realData);for(let h of R.getItemArray())yield[h,R];this._rateLimit=R._rateLimit,c=R}}}class I8 extends x8{async previous(c){let f=this.getPreviousQueryParams(c),R=await this.makeRequest(f);return this.makeNewInstanceFromResult(R,f)}async fetchPrevious(c){let f=this.getPreviousQueryParams(c),R=await this.makeRequest(f);return await this.refreshInstanceFromResult(R,!1),this}}var $R=x8;class Ac extends $R{getNextQueryParams(c){var f;return{...this._queryParams,cursor:(f=this._realData.next_cursor_str)!==null&&f!==void 0?f:this._realData.next_cursor,...c?{count:c}:{}}}isFetchLastOver(c){return!this.canFetchNextPage(c.data)}canFetchNextPage(c){return!this.isNextCursorInvalid(c.next_cursor)||!this.isNextCursorInvalid(c.next_cursor_str)}isNextCursorInvalid(c){return c===void 0||c===0||c===-1||c==="0"||c==="-1"}}class P8 extends Ac{constructor(){super(...arguments);this._endpoint="direct_messages/events/list.json"}refreshInstanceFromResult(c,f){let R=c.data;if(this._rateLimit=c.rateLimit,f)this._realData.events.push(...R.events),this._realData.next_cursor=R.next_cursor}getPageLengthFromRequest(c){return c.data.events.length}getItemArray(){return this.events}get events(){return this._realData.events}}class K8 extends Ac{constructor(){super(...arguments);this._endpoint="direct_messages/welcome_messages/list.json"}refreshInstanceFromResult(c,f){let R=c.data;if(this._rateLimit=c.rateLimit,f)this._realData.welcome_messages.push(...R.welcome_messages),this._realData.next_cursor=R.next_cursor}getPageLengthFromRequest(c){return c.data.welcome_messages.length}getItemArray(){return this.welcomeMessages}get welcomeMessages(){return this._realData.welcome_messages}}var i;(function(c){c.Jpeg="image/jpeg",c.Mp4="video/mp4",c.Mov="video/quicktime",c.Gif="image/gif",c.Png="image/png",c.Srt="text/plain",c.Webp="image/webp"})(i||(i={}));var Ff;(function(c){c.Create="message_create",c.WelcomeCreate="welcome_message"})(Ff||(Ff={}));var R0;(function(c){c.Request="request",c.PartialResponse="partial-response",c.Response="response"})(R0||(R0={}));class th extends Error{constructor(){super(...arguments);this.error=!0}}class h0 extends th{constructor(c,f){super(c);this.type=R0.Request,Error.captureStackTrace(this,this.constructor),Object.defineProperty(this,"_options",{value:f})}get request(){return this._options.request}get requestError(){return this._options.requestError}toJSON(){return{type:this.type,error:this.requestError}}}class $0 extends th{constructor(c,f){super(c);this.type=R0.PartialResponse,Error.captureStackTrace(this,this.constructor),Object.defineProperty(this,"_options",{value:f})}get request(){return this._options.request}get response(){return this._options.response}get responseError(){return this._options.responseError}get rawContent(){return this._options.rawContent}toJSON(){return{type:this.type,error:this.responseError}}}class H0 extends th{constructor(c,f){super(c);if(this.type=R0.Response,Error.captureStackTrace(this,this.constructor),Object.defineProperty(this,"_options",{value:f}),this.code=f.code,this.headers=f.headers,this.rateLimit=f.rateLimit,f.data&&typeof f.data==="object"&&"error"in f.data&&!f.data.errors){let R={...f.data};R.errors=[{code:Qf.InternalError,message:R.error}],this.data=R}else this.data=f.data}get request(){return this._options.request}get response(){return this._options.response}hasErrorCode(...c){let f=this.errors;if(!(f===null||f===void 0?void 0:f.length))return!1;if("code"in f[0])return f.some(($)=>c.includes($.code));let R=this.data;return c.includes(R.type)}get errors(){var c;return(c=this.data)===null||c===void 0?void 0:c.errors}get rateLimitError(){return this.code===420||this.code===429}get isAuthError(){if(this.code===401)return!0;return this.hasErrorCode(Qf.AuthTimestampInvalid,Qf.AuthenticationFail,Qf.BadAuthenticationData,Qf.InvalidOrExpiredToken)}toJSON(){return{type:this.type,code:this.code,error:this.data,rateLimit:this.rateLimit,headers:this.headers}}}var Qf;(function(c){c[c.InvalidCoordinates=3]="InvalidCoordinates",c[c.NoLocationFound=13]="NoLocationFound",c[c.AuthenticationFail=32]="AuthenticationFail",c[c.InvalidOrExpiredToken=89]="InvalidOrExpiredToken",c[c.UnableToVerifyCredentials=99]="UnableToVerifyCredentials",c[c.AuthTimestampInvalid=135]="AuthTimestampInvalid",c[c.BadAuthenticationData=215]="BadAuthenticationData",c[c.NoUserMatch=17]="NoUserMatch",c[c.UserNotFound=50]="UserNotFound",c[c.ResourceNotFound=34]="ResourceNotFound",c[c.TweetNotFound=144]="TweetNotFound",c[c.TweetNotVisible=179]="TweetNotVisible",c[c.NotAllowedResource=220]="NotAllowedResource",c[c.MediaIdNotFound=325]="MediaIdNotFound",c[c.TweetNoLongerAvailable=421]="TweetNoLongerAvailable",c[c.TweetViolatedRules=422]="TweetViolatedRules",c[c.TargetUserSuspended=63]="TargetUserSuspended",c[c.YouAreSuspended=64]="YouAreSuspended",c[c.AccountUpdateFailed=120]="AccountUpdateFailed",c[c.NoSelfSpamReport=36]="NoSelfSpamReport",c[c.NoSelfMute=271]="NoSelfMute",c[c.AccountLocked=326]="AccountLocked",c[c.RateLimitExceeded=88]="RateLimitExceeded",c[c.NoDMRightForApp=93]="NoDMRightForApp",c[c.OverCapacity=130]="OverCapacity",c[c.InternalError=131]="InternalError",c[c.TooManyFollowings=161]="TooManyFollowings",c[c.TweetLimitExceeded=185]="TweetLimitExceeded",c[c.DuplicatedTweet=187]="DuplicatedTweet",c[c.TooManySpamReports=205]="TooManySpamReports",c[c.RequestLooksLikeSpam=226]="RequestLooksLikeSpam",c[c.NoWriteRightForApp=261]="NoWriteRightForApp",c[c.TweetActionsDisabled=425]="TweetActionsDisabled",c[c.TweetRepliesRestricted=433]="TweetRepliesRestricted",c[c.NamedParameterMissing=38]="NamedParameterMissing",c[c.InvalidAttachmentUrl=44]="InvalidAttachmentUrl",c[c.TweetTextTooLong=186]="TweetTextTooLong",c[c.MissingUrlParameter=195]="MissingUrlParameter",c[c.NoMultipleGifs=323]="NoMultipleGifs",c[c.InvalidMediaIds=324]="InvalidMediaIds",c[c.InvalidUrl=407]="InvalidUrl",c[c.TooManyTweetAttachments=386]="TooManyTweetAttachments",c[c.StatusAlreadyFavorited=139]="StatusAlreadyFavorited",c[c.FollowRequestAlreadySent=160]="FollowRequestAlreadySent",c[c.CannotUnmuteANonMutedAccount=272]="CannotUnmuteANonMutedAccount",c[c.TweetAlreadyRetweeted=327]="TweetAlreadyRetweeted",c[c.ReplyToDeletedTweet=385]="ReplyToDeletedTweet",c[c.DMReceiverNotFollowingYou=150]="DMReceiverNotFollowingYou",c[c.UnableToSendDM=151]="UnableToSendDM",c[c.MustAllowDMFromAnyone=214]="MustAllowDMFromAnyone",c[c.CannotSendDMToThisUser=349]="CannotSendDMToThisUser",c[c.DMTextTooLong=354]="DMTextTooLong",c[c.SubscriptionAlreadyExists=355]="SubscriptionAlreadyExists",c[c.CallbackUrlNotApproved=415]="CallbackUrlNotApproved",c[c.SuspendedApplication=416]="SuspendedApplication",c[c.OobOauthIsNotAllowed=417]="OobOauthIsNotAllowed"})(Qf||(Qf={}));var ey;(function(c){c.InvalidRequest="https://developer.x.com/en/support/x-api/error-troubleshooting#invalid-request",c.ClientForbidden="https://developer.x.com/en/support/x-api/error-troubleshooting#client-forbidden",c.UnsupportedAuthentication="https://developer.x.com/en/support/x-api/error-troubleshooting#unsupported-authentication",c.InvalidRules="https://developer.x.com/en/support/x-api/error-troubleshooting#invalid-rules",c.TooManyRules="https://developer.x.com/en/support/x-api/error-troubleshooting#rule-cap",c.DuplicatedRules="https://developer.x.com/en/support/x-api/error-troubleshooting#duplicate-rules",c.RateLimitExceeded="https://developer.x.com/en/support/x-api/error-troubleshooting#usage-capped",c.ConnectionError="https://developer.x.com/en/support/x-api/error-troubleshooting#streaming-connection",c.ClientDisconnected="https://developer.x.com/en/support/x-api/error-troubleshooting#client-disconnected",c.TwitterDisconnectedYou="https://developer.x.com/en/support/x-api/error-troubleshooting#operational-disconnect",c.ResourceNotFound="https://developer.x.com/en/support/x-api/error-troubleshooting#resource-not-found",c.ResourceUnauthorized="https://developer.x.com/en/support/x-api/error-troubleshooting#not-authorized-for-resource",c.DisallowedResource="https://developer.x.com/en/support/x-api/error-troubleshooting#disallowed-resource"})(ey||(ey={}));var L;(function(c){c.Connected="connected",c.ConnectError="connect error",c.ConnectionError="connection error",c.ConnectionClosed="connection closed",c.ConnectionLost="connection lost",c.ReconnectAttempt="reconnect attempt",c.Reconnected="reconnected",c.ReconnectError="reconnect error",c.ReconnectLimitExceeded="reconnect limit exceeded",c.DataKeepAlive="data keep-alive",c.Data="data event content",c.DataError="data twitter error",c.TweetParseError="data tweet parse error",c.Error="stream error"})(L||(L={}));class A0{constructor(c){this.value=c}}import*as R4 from"fs";var Fc={debug:!1,deprecationWarnings:!0,logger:{log:console.log.bind(console)}};function O8(c){let f={value:void 0,promise:c().then((R)=>{return f.value=R,R})};return f}function rh(c){if(Array.isArray(c))return c;return[c]}function fF(c){for(let f of Object.keys(c))if(c[f]===void 0)delete c[f]}function eh(c){return typeof c==="object"&&"errors"in c&&!("data"in c)}function G0(c){if(Array.isArray(c)&&c.length>1)return!0;return c.toString().includes(",")}var cF=new Set;function b8(c){if(typeof console>"u"||!console.warn||!Fc.deprecationWarnings)return;let f=`${c.instance}-${c.method}-${c.problem}`;if(cF.has(f))return;let R=`[twitter-api-v2] Deprecation warning: In ${c.instance}.${c.method}() call, ${c.problem}.
69
69
  ${c.resolution}.`;console.warn(R),console.warn("To disable this message, import variable TwitterApiV2Settings from twitter-api-v2 and set TwitterApiV2Settings.deprecationWarnings to false."),cF.add(f)}import{EventEmitter as fJ}from"events";import{request as t7}from"https";import*as Xc from"zlib";import{EventEmitter as r7}from"events";class RF{constructor(c){this.requestData=c,this.requestErrorHandled=!1,this.responseData=[]}get hrefPathname(){let c=this.requestData.url;return c.hostname+c.pathname}isCompressionDisabled(){return!this.requestData.compression||this.requestData.compression==="identity"}isFormEncodedEndpoint(){return this.requestData.url.href.startsWith("https://api.x.com/oauth/")}createRequestError(c){if(Fc.debug)Fc.logger.log("Request error:",c);return new h0("Request failed.",{request:this.req,error:c})}createPartialResponseError(c,f){let h=`Request failed with partial response with HTTP code ${this.res.statusCode}`;if(f)h+=" (connection abruptly closed)";else h+=" (parse error)";return new $0(h,{request:this.req,response:this.res,responseError:c,rawContent:Buffer.concat(this.responseData).toString()})}formatV1Errors(c){return c.map(({code:f,message:R})=>`${R} (Twitter code ${f})`).join(", ")}formatV2Error(c){return`${c.title}: ${c.detail} (see ${c.type})`}createResponseError({res:c,data:f,rateLimit:R,code:h}){var $;if(Fc.debug)Fc.logger.log(`Request failed with code ${h}, data:`,f),Fc.logger.log("Response headers:",c.headers);let H=`Request failed with code ${h}`;if(($=f===null||f===void 0?void 0:f.errors)===null||$===void 0?void 0:$.length){let A=f.errors;if(typeof A[0]==="object"&&"code"in A[0])H+=" - "+this.formatV1Errors(A);else H+=" - "+this.formatV2Error(f)}return new H0(H,{code:h,data:f,headers:c.headers,request:this.req,response:c,rateLimit:R})}getResponseDataStream(c){if(this.isCompressionDisabled())return c;let f=(c.headers["content-encoding"]||"identity").trim().toLowerCase();if(f==="br"){let R=Xc.createBrotliDecompress({flush:Xc.constants.BROTLI_OPERATION_FLUSH,finishFlush:Xc.constants.BROTLI_OPERATION_FLUSH});return c.pipe(R),R}if(f==="gzip"){let R=Xc.createGunzip({flush:Xc.constants.Z_SYNC_FLUSH,finishFlush:Xc.constants.Z_SYNC_FLUSH});return c.pipe(R),R}if(f==="deflate"){let R=Xc.createInflate({flush:Xc.constants.Z_SYNC_FLUSH,finishFlush:Xc.constants.Z_SYNC_FLUSH});return c.pipe(R),R}return c}detectResponseType(c){var f,R;if(((f=c.headers["content-type"])===null||f===void 0?void 0:f.includes("application/json"))||((R=c.headers["content-type"])===null||R===void 0?void 0:R.includes("application/problem+json")))return"json";else if(this.isFormEncodedEndpoint())return"url";return"text"}getParsedResponse(c){let f=this.responseData,R=this.requestData.forceParseMode||this.detectResponseType(c);if(R==="buffer")return Buffer.concat(f);else if(R==="text")return Buffer.concat(f).toString();else if(R==="json"){let h=Buffer.concat(f).toString();return h.length?JSON.parse(h):void 0}else if(R==="url"){let h=Buffer.concat(f).toString(),$={};for(let[H,A]of new URLSearchParams(h))$[H]=A;return $}else return}getRateLimitFromResponse(c){let f=void 0;if(c.headers["x-rate-limit-limit"]){if(f={limit:Number(c.headers["x-rate-limit-limit"]),remaining:Number(c.headers["x-rate-limit-remaining"]),reset:Number(c.headers["x-rate-limit-reset"])},c.headers["x-app-limit-24hour-limit"])f.day={limit:Number(c.headers["x-app-limit-24hour-limit"]),remaining:Number(c.headers["x-app-limit-24hour-remaining"]),reset:Number(c.headers["x-app-limit-24hour-reset"])};if(c.headers["x-user-limit-24hour-limit"])f.userDay={limit:Number(c.headers["x-user-limit-24hour-limit"]),remaining:Number(c.headers["x-user-limit-24hour-remaining"]),reset:Number(c.headers["x-user-limit-24hour-reset"])};if(this.requestData.rateLimitSaver)this.requestData.rateLimitSaver(f)}return f}onSocketEventHandler(c,f,R){let h=this.onSocketCloseHandler.bind(this,c);R.on("close",h),f.on("complete",()=>R.off("close",h))}onSocketCloseHandler(c){if(this.req.removeAllListeners("timeout"),this.res)return;if(!this.requestErrorHandled)return c(this.createRequestError(Error("Socket closed without any information.")))}requestErrorHandler(c,f){var R,h;(h=(R=this.requestData).requestEventDebugHandler)===null||h===void 0||h.call(R,"request-error",{requestError:f}),this.requestErrorHandled=!0,c(this.createRequestError(f))}timeoutErrorHandler(){this.requestErrorHandled=!0,this.req.destroy(Error("Request timeout."))}classicResponseHandler(c,f,R){this.res=R;let h=this.getResponseDataStream(R);if(h.on("data",($)=>this.responseData.push($)),h.on("end",this.onResponseEndHandler.bind(this,c,f)),h.on("close",this.onResponseCloseHandler.bind(this,c,f)),this.requestData.requestEventDebugHandler)this.requestData.requestEventDebugHandler("response",{res:R}),R.on("aborted",($)=>this.requestData.requestEventDebugHandler("response-aborted",{error:$})),R.on("error",($)=>this.requestData.requestEventDebugHandler("response-error",{error:$})),R.on("close",()=>this.requestData.requestEventDebugHandler("response-close",{data:this.responseData})),R.on("end",()=>this.requestData.requestEventDebugHandler("response-end"))}onResponseEndHandler(c,f){let R=this.getRateLimitFromResponse(this.res),h;try{h=this.getParsedResponse(this.res)}catch(H){f(this.createPartialResponseError(H,!1));return}let $=this.res.statusCode;if($>=400){f(this.createResponseError({data:h,res:this.res,rateLimit:R,code:$}));return}if(Fc.debug)Fc.logger.log(`[${this.requestData.options.method} ${this.hrefPathname}]: Request succeeds with code ${this.res.statusCode}`),Fc.logger.log("Response body:",h);c({data:h,headers:this.res.headers,rateLimit:R})}onResponseCloseHandler(c,f){let R=this.res;if(R.aborted)try{return this.getParsedResponse(this.res),this.onResponseEndHandler(c,f)}catch(h){return f(this.createPartialResponseError(h,!0))}if(!R.complete)return f(this.createPartialResponseError(Error("Response has been interrupted before response could be parsed."),!0))}streamResponseHandler(c,f,R){if(R.statusCode<400){if(Fc.debug)Fc.logger.log(`[${this.requestData.options.method} ${this.hrefPathname}]: Request succeeds with code ${R.statusCode} (starting stream)`);let $=this.getResponseDataStream(R);c({req:this.req,res:$,originalResponse:R,requestData:this.requestData})}else this.classicResponseHandler(()=>{return},f,R)}debugRequest(){let c=this.requestData.url;if(Fc.logger.log(`[${this.requestData.options.method} ${this.hrefPathname}]`,this.requestData.options),c.search)Fc.logger.log("Request parameters:",[...c.searchParams.entries()].map(([f,R])=>`${f}: ${R}`));if(this.requestData.body)Fc.logger.log("Request body:",this.requestData.body)}buildRequest(){var c;let f=this.requestData.url,R=f.username?`${f.username}:${f.password}`:void 0,h=(c=this.requestData.options.headers)!==null&&c!==void 0?c:{};if(this.requestData.compression===!0||this.requestData.compression==="brotli")h["accept-encoding"]="br;q=1.0, gzip;q=0.8, deflate;q=0.5, *;q=0.1";else if(this.requestData.compression==="gzip")h["accept-encoding"]="gzip;q=1, deflate;q=0.5, *;q=0.1";else if(this.requestData.compression==="deflate")h["accept-encoding"]="deflate;q=1, *;q=0.1";if(Fc.debug)this.debugRequest();this.req=t7({...this.requestData.options,host:f.hostname,port:f.port||void 0,path:f.pathname+f.search,protocol:f.protocol,auth:R,headers:h})}registerRequestEventDebugHandlers(c){c.on("close",()=>this.requestData.requestEventDebugHandler("close")),c.on("abort",()=>this.requestData.requestEventDebugHandler("abort")),c.on("socket",(f)=>{this.requestData.requestEventDebugHandler("socket",{socket:f}),f.on("error",(R)=>this.requestData.requestEventDebugHandler("socket-error",{socket:f,error:R})),f.on("connect",()=>this.requestData.requestEventDebugHandler("socket-connect",{socket:f})),f.on("close",(R)=>this.requestData.requestEventDebugHandler("socket-close",{socket:f,withError:R})),f.on("end",()=>this.requestData.requestEventDebugHandler("socket-end",{socket:f})),f.on("lookup",(...R)=>this.requestData.requestEventDebugHandler("socket-lookup",{socket:f,data:R})),f.on("timeout",()=>this.requestData.requestEventDebugHandler("socket-timeout",{socket:f}))})}makeRequest(){return this.buildRequest(),new Promise((c,f)=>{let R=(A)=>{$.emit("complete"),c(A)},h=(A)=>{$.emit("complete"),f(A)},$=new r7,H=this.req;if(H.on("error",this.requestErrorHandler.bind(this,h)),H.on("socket",this.onSocketEventHandler.bind(this,h,$)),H.on("response",this.classicResponseHandler.bind(this,R,h)),this.requestData.options.timeout)H.on("timeout",this.timeoutErrorHandler.bind(this));if(this.requestData.requestEventDebugHandler)this.registerRequestEventDebugHandlers(H);if(this.requestData.body)H.write(this.requestData.body);H.end()})}async makeRequestAsStream(){let{req:c,res:f,requestData:R,originalResponse:h}=await this.makeRequestAndResolveWhenReady();return new c1(R,{req:c,res:f,originalResponse:h})}makeRequestAndResolveWhenReady(){return this.buildRequest(),new Promise((c,f)=>{let R=this.req;if(R.on("error",this.requestErrorHandler.bind(this,f)),R.on("response",this.streamResponseHandler.bind(this,c,f)),this.requestData.body)R.write(this.requestData.body);R.end()})}}var y0=RF;import{EventEmitter as e7}from"events";class hF extends e7{constructor(c){super();this.stream=c,this.stack=[],this.onStreamData=this.onStreamData.bind(this),this.onStreamError=this.onStreamError.bind(this),this.onceNewEvent=this.once.bind(this,"event"),c.on(L.Data,this.onStreamData),c.on(L.ConnectionError,this.onStreamError),c.on(L.TweetParseError,this.onStreamError),c.on(L.ConnectionClosed,this.onStreamError)}nextEvent(){return new Promise(this.onceNewEvent)}hasStack(){return this.stack.length>0}popStack(){let c=this.stack;return this.stack=[],c}destroy(){this.removeAllListeners(),this.stream.off(L.Data,this.onStreamData),this.stream.off(L.ConnectionError,this.onStreamError),this.stream.off(L.TweetParseError,this.onStreamError),this.stream.off(L.ConnectionClosed,this.onStreamError)}emitEvent(c,f){this.emit("event",{type:c,payload:f})}onStreamError(c){this.emitEvent("error",c)}onStreamData(c){this.stack.push(c),this.emitEvent("data",c)}}var $F=hF;import{EventEmitter as cJ}from"events";class f1 extends cJ{constructor(){super(...arguments);this.currentMessage=""}push(c){this.currentMessage+=c,c=this.currentMessage;let f=c.length,R=0,h=0;while(h<f){if(c.slice(h,h+2)===`\r
70
70
  `){let $=c.slice(R,h);if(R=h+=2,!$.length)continue;try{let H=JSON.parse($);if(H){this.emit(Df.ParsedData,H);continue}}catch(H){this.emit(Df.ParseError,H)}}h++}this.currentMessage=c.slice(R,f)}reset(){this.currentMessage=""}}var Df;(function(c){c.ParsedData="parsed data",c.ParseError="parse error"})(Df||(Df={}));var HF=[5,15,30,60,90,120,180,300,600,900],RJ=(c)=>c>HF.length?901000:HF[c-1]*1000;class AF extends fJ{constructor(c,f){super();if(this.requestData=c,this.autoReconnect=!1,this.autoReconnectRetries=5,this.keepAliveTimeoutMs=120000,this.nextRetryTimeout=RJ,this.parser=new f1,this.connectionProcessRunning=!1,this.onKeepAliveTimeout=this.onKeepAliveTimeout.bind(this),this.initEventsFromParser(),f)this.req=f.req,this.res=f.res,this.originalResponse=f.originalResponse,this.initEventsFromRequest()}on(c,f){return super.on(c,f)}initEventsFromRequest(){if(!this.req||!this.res)throw Error("TweetStream error: You cannot init TweetStream without a request and response object.");let c=(f)=>{this.emit(L.ConnectionError,f),this.emit(L.Error,{type:L.ConnectionError,error:f,message:"Connection lost or closed by Twitter."}),this.onConnectionError()};this.req.on("error",c),this.res.on("error",c),this.res.on("close",()=>c(Error("Connection closed by Twitter."))),this.res.on("data",(f)=>{if(this.resetKeepAliveTimeout(),f.toString()===`\r
71
71
  `)return this.emit(L.DataKeepAlive);this.parser.push(f.toString())}),this.resetKeepAliveTimeout()}initEventsFromParser(){let c=this.requestData.payloadIsError;this.parser.on(Df.ParsedData,(f)=>{if(c&&c(f))this.emit(L.DataError,f),this.emit(L.Error,{type:L.DataError,error:f,message:"Twitter sent a payload that is detected as an error payload."});else this.emit(L.Data,f)}),this.parser.on(Df.ParseError,(f)=>{this.emit(L.TweetParseError,f),this.emit(L.Error,{type:L.TweetParseError,error:f,message:"Failed to parse stream data."})})}resetKeepAliveTimeout(){if(this.unbindKeepAliveTimeout(),this.keepAliveTimeoutMs!==1/0)this.keepAliveTimeout=setTimeout(this.onKeepAliveTimeout,this.keepAliveTimeoutMs)}onKeepAliveTimeout(){this.emit(L.ConnectionLost),this.onConnectionError()}unbindTimeouts(){this.unbindRetryTimeout(),this.unbindKeepAliveTimeout()}unbindKeepAliveTimeout(){if(this.keepAliveTimeout)clearTimeout(this.keepAliveTimeout),this.keepAliveTimeout=void 0}unbindRetryTimeout(){if(this.retryTimeout)clearTimeout(this.retryTimeout),this.retryTimeout=void 0}closeWithoutEmit(){if(this.unbindTimeouts(),this.res)this.res.removeAllListeners(),this.res.destroy();if(this.req)this.req.removeAllListeners(),this.req.destroy()}close(){this.emit(L.ConnectionClosed),this.closeWithoutEmit()}destroy(){this.removeAllListeners(),this.close()}async clone(){let f=await new y0(this.requestData).makeRequestAsStream(),R=this.eventNames();for(let h of R){let $=this.listeners(h);for(let H of $)f.on(h,H)}return f}async connect(c={}){if(typeof c.autoReconnect<"u")this.autoReconnect=c.autoReconnect;if(typeof c.autoReconnectRetries<"u")this.autoReconnectRetries=c.autoReconnectRetries==="unlimited"?1/0:c.autoReconnectRetries;if(typeof c.keepAliveTimeout<"u")this.keepAliveTimeoutMs=c.keepAliveTimeout==="disable"?1/0:c.keepAliveTimeout;if(typeof c.nextRetryTimeout<"u")this.nextRetryTimeout=c.nextRetryTimeout;this.unbindTimeouts();try{await this.reconnect()}catch(f){if(this.emit(L.ConnectError,0),this.emit(L.Error,{type:L.ConnectError,error:f,message:"Connect error - Initial connection just failed."}),this.autoReconnect)this.makeAutoReconnectRetry(0,f);else throw f}return this}async reconnect(){if(this.connectionProcessRunning)throw Error("Connection process is already running.");this.connectionProcessRunning=!0;try{let c=!0;if(this.req)c=!1,this.closeWithoutEmit();let{req:f,res:R,originalResponse:h}=await new y0(this.requestData).makeRequestAndResolveWhenReady();this.req=f,this.res=R,this.originalResponse=h,this.emit(c?L.Connected:L.Reconnected),this.parser.reset(),this.initEventsFromRequest()}finally{this.connectionProcessRunning=!1}}async onConnectionError(c=0){if(this.unbindTimeouts(),this.closeWithoutEmit(),!this.autoReconnect){this.emit(L.ConnectionClosed);return}if(c>=this.autoReconnectRetries){this.emit(L.ReconnectLimitExceeded),this.emit(L.ConnectionClosed);return}try{this.emit(L.ReconnectAttempt,c),await this.reconnect()}catch(f){this.emit(L.ReconnectError,c),this.emit(L.Error,{type:L.ReconnectError,error:f,message:`Reconnect error - ${c+1} attempts made yet.`}),this.makeAutoReconnectRetry(c,f)}}makeAutoReconnectRetry(c,f){let R=this.nextRetryTimeout(c+1,f);this.retryTimeout=setTimeout(()=>{this.onConnectionError(c+1)},R)}async*[Symbol.asyncIterator](){let c=new $F(this);try{while(!0){if(!this.req||this.req.aborted)throw Error("Connection closed");if(c.hasStack())yield*c.popStack();let{type:f,payload:R}=await c.nextEvent();if(f==="error")throw R}}finally{c.destroy()}}}var c1=AF;function GF(c){var f;if(!((f=c.clientSettings.plugins)===null||f===void 0?void 0:f.length))return!1;for(let R of c.clientSettings.plugins)if(R.onRequestError||R.onResponseError)return!0;return!1}async function yF(c,f,R,h){let $;if(h instanceof h0||h instanceof $0)$=await this.applyPluginMethod("onRequestError",{client:this,url:this.getUrlObjectFromUrlString(c.url),params:c,computedParams:f,requestOptions:R,error:h});else if(h instanceof H0)$=await this.applyPluginMethod("onResponseError",{client:this,url:this.getUrlObjectFromUrlString(c.url),params:c,computedParams:f,requestOptions:R,error:h});if($&&$ instanceof A0)return $.value;return Promise.reject(h)}import*as vF from"crypto";class Tc{constructor(c){this.nonceLength=32,this.consumerKeys=c.consumerKeys}static percentEncode(c){return encodeURIComponent(c).replace(/!/g,"%21").replace(/\*/g,"%2A").replace(/'/g,"%27").replace(/\(/g,"%28").replace(/\)/g,"%29")}hash(c,f){return vF.createHmac("sha1",f).update(c).digest("base64")}authorize(c,f={}){let R={oauth_consumer_key:this.consumerKeys.key,oauth_nonce:this.getNonce(),oauth_signature_method:"HMAC-SHA1",oauth_timestamp:this.getTimestamp(),oauth_version:"1.0"};if(f.key!==void 0)R.oauth_token=f.key;if(!c.data)c.data={};return R.oauth_signature=this.getSignature(c,f.secret,R),R}toHeader(c){let f=WF(c),R="OAuth ";for(let h of f){if(h.key.indexOf("oauth_")!==0)continue;R+=Tc.percentEncode(h.key)+'="'+Tc.percentEncode(h.value)+'",'}return{Authorization:R.slice(0,R.length-1)}}getNonce(){let f="";for(let R=0;R<this.nonceLength;R++)f+="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789"[Math.trunc(Math.random()*62)];return f}getTimestamp(){return Math.trunc(new Date().getTime()/1000)}getSignature(c,f,R){return this.hash(this.getBaseString(c,R),this.getSigningKey(f))}getSigningKey(c){return Tc.percentEncode(this.consumerKeys.secret)+"&"+Tc.percentEncode(c||"")}getBaseString(c,f){return c.method.toUpperCase()+"&"+Tc.percentEncode(this.getBaseUrl(c.url))+"&"+Tc.percentEncode(this.getParameterString(c,f))}getParameterString(c,f){let R=WF(HJ(FF(f,FF(c.data,$J(c.url))))),h="";for(let{key:$,value:H}of R)if(H&&Array.isArray(H)){H.sort();let A="";H.forEach((G,y)=>{if(A+=$+"="+G,y<H.length)A+="&"}),h+=A}else h+=$+"="+H+"&";return h.slice(0,h.length-1)}getBaseUrl(c){return c.split("?")[0]}}var F0=Tc;function FF(c,f){return{...c||{},...f||{}}}function WF(c){return Object.keys(c).sort().map((f)=>({key:f,value:c[f]}))}function hJ(c){let f=c.split("&"),R={};for(let h of f){let[$,H=""]=h.split("=");if(R[$]){if(!Array.isArray(R[$]))R[$]=[R[$]];R[$].push(decodeURIComponent(H))}else R[$]=decodeURIComponent(H)}return R}function $J(c){let f=c.split("?");if(f.length===1)return{};return hJ(f[1])}function HJ(c){let f={};for(let R in c){let h=c[R];if(h&&Array.isArray(h))h=h.map(($)=>Tc.percentEncode($));else h=Tc.percentEncode(h);f[Tc.percentEncode(R)]=h}return f}class uc{constructor(){this._boundary="",this._chunks=[]}bodyAppend(...c){let f=c.map((R)=>R instanceof Buffer?R:Buffer.from(R));this._chunks.push(...f)}append(c,f,R){let h=f instanceof Buffer?f:f.toString(),$=this.getMultipartHeader(c,h,R);this.bodyAppend($,h,uc.LINE_BREAK)}getHeaders(){return{"content-type":"multipart/form-data; boundary="+this.getBoundary()}}getLength(){return this._chunks.reduce((c,f)=>c+f.length,this.getMultipartFooter().length)}getBuffer(){let c=[...this._chunks,this.getMultipartFooter()],f=Buffer.alloc(this.getLength()),R=0;for(let h of c)for(let $=0;$<h.length;R++,$++)f[R]=h[$];return f}getBoundary(){if(!this._boundary)this.generateBoundary();return this._boundary}generateBoundary(){let c="--------------------------";for(let f=0;f<24;f++)c+=Math.floor(Math.random()*10).toString(16);this._boundary=c}getMultipartHeader(c,f,R){if(!R)R=f instanceof Buffer?uc.DEFAULT_CONTENT_TYPE:"";let h={"Content-Disposition":["form-data",`name="${c}"`],"Content-Type":R},$="";for(let[H,A]of Object.entries(h)){if(!A.length)continue;$+=H+": "+rh(A).join("; ")+uc.LINE_BREAK}return"--"+this.getBoundary()+uc.LINE_BREAK+$+uc.LINE_BREAK}getMultipartFooter(){if(this._footerChunk)return this._footerChunk;return this._footerChunk=Buffer.from("--"+this.getBoundary()+"--"+uc.LINE_BREAK)}}uc.LINE_BREAK=`\r
72
- `;uc.DEFAULT_CONTENT_TYPE="application/octet-stream";class q8{static formatQueryToString(c){let f={};for(let R in c)if(typeof c[R]==="string")f[R]=c[R];else if(typeof c[R]<"u")f[R]=String(c[R]);return f}static autoDetectBodyType(c){if(c.pathname.startsWith("/2/")||c.pathname.startsWith("/labs/2/")){if(c.password.startsWith("/2/oauth2"))return"url";return"json"}if(c.hostname==="upload.x.com"){if(c.pathname==="/1.1/media/upload.json")return"form-data";return"json"}let f=c.pathname.split("/1.1/",2)[1];if(this.JSON_1_1_ENDPOINTS.has(f))return"json";return"url"}static addQueryParamsToUrl(c,f){let R=Object.entries(f);if(R.length){let h="";for(let[$,H]of R)h+=(h.length?"&":"?")+`${F0.percentEncode($)}=${F0.percentEncode(H)}`;c.search=h}}static constructBodyParams(c,f,R){if(c instanceof Buffer)return c;if(R==="json"){if(!f["content-type"])f["content-type"]="application/json;charset=UTF-8";return JSON.stringify(c)}else if(R==="url"){if(!f["content-type"])f["content-type"]="application/x-www-form-urlencoded;charset=UTF-8";if(Object.keys(c).length)return new URLSearchParams(c).toString().replace(/\*/g,"%2A");return""}else if(R==="raw")throw Error("You can only use raw body mode with Buffers. To give a string, use Buffer.from(str).");else{let h=new uc;for(let $ in c)h.append($,c[$]);if(!f["content-type"]){let $=h.getHeaders();f["content-type"]=$["content-type"]}return h.getBuffer()}}static setBodyLengthHeader(c,f){var R;if(c.headers=(R=c.headers)!==null&&R!==void 0?R:{},typeof f==="string")c.headers["content-length"]=Buffer.byteLength(f);else c.headers["content-length"]=f.length}static isOAuthSerializable(c){return!(c instanceof Buffer)}static mergeQueryAndBodyForOAuth(c,f){let R={};for(let h in c)R[h]=c[h];if(this.isOAuthSerializable(f))for(let h in f){let $=f[h];if(this.isOAuthSerializable($))R[h]=typeof $==="object"&&$!==null&&"toString"in $?$.toString():$}return R}static moveUrlQueryParamsIntoObject(c,f){for(let[R,h]of c.searchParams)f[R]=h;return c.search="",c}static applyRequestParametersToUrl(c,f){return c.pathname=c.pathname.replace(/:([A-Z_-]+)/ig,(R,h)=>{if(f[h]!==void 0)return String(f[h]);return R}),c}}q8.JSON_1_1_ENDPOINTS=new Set(["direct_messages/events/new.json","direct_messages/welcome_messages/new.json","direct_messages/welcome_messages/rules/new.json","media/metadata/create.json","collections/entries/curate.json"]);var xc=q8;import*as UF from"crypto";class jf{static getCodeVerifier(){return this.generateRandomString(128)}static getCodeChallengeFromVerifier(c){return this.escapeBase64Url(UF.createHash("sha256").update(c).digest("base64"))}static getAuthHeader(c,f){let R=encodeURIComponent(c)+":"+encodeURIComponent(f);return Buffer.from(R).toString("base64")}static generateRandomString(c){let f="",R="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-._~";for(let h=0;h<c;h++)f+=R[Math.floor(Math.random()*R.length)];return f}static escapeBase64Url(c){return c.replace(/=/g,"").replace(/\+/g,"-").replace(/\//g,"_")}}class HR{constructor(c){if(this.rateLimits={},this.clientSettings={},c)this.clientSettings=c}getRateLimits(){return this.rateLimits}saveRateLimit(c,f){this.rateLimits[c]=f}async send(c){var f,R,h,$,H;if((f=this.clientSettings.plugins)===null||f===void 0?void 0:f.length){let N=await this.applyPreRequestConfigHooks(c);if(N)return N}let A=this.getHttpRequestArgs(c),G={method:A.method,headers:A.headers,timeout:c.timeout,agent:this.clientSettings.httpAgent},y=c.enableRateLimitSave!==!1;if(A.body)xc.setBodyLengthHeader(G,A.body);if((R=this.clientSettings.plugins)===null||R===void 0?void 0:R.length)await this.applyPreRequestHooks(c,A,G);let F=new y0({url:A.url,options:G,body:A.body,rateLimitSaver:y?this.saveRateLimit.bind(this,A.rawUrl):void 0,requestEventDebugHandler:c.requestEventDebugHandler,compression:($=(h=c.compression)!==null&&h!==void 0?h:this.clientSettings.compression)!==null&&$!==void 0?$:!0,forceParseMode:c.forceParseMode}).makeRequest();if(GF(this))F=this.applyResponseErrorHooks(c,A,G,F);let U=await F;if((H=this.clientSettings.plugins)===null||H===void 0?void 0:H.length){let N=await this.applyPostRequestHooks(c,A,G,U);if(N)return N.value}return U}sendStream(c){var f,R;if(this.clientSettings.plugins)this.applyPreStreamRequestConfigHooks(c);let h=this.getHttpRequestArgs(c),$={method:h.method,headers:h.headers,agent:this.clientSettings.httpAgent},H=c.enableRateLimitSave!==!1,A=c.autoConnect!==!1;if(h.body)xc.setBodyLengthHeader($,h.body);let G={url:h.url,options:$,body:h.body,rateLimitSaver:H?this.saveRateLimit.bind(this,h.rawUrl):void 0,payloadIsError:c.payloadIsError,compression:(R=(f=c.compression)!==null&&f!==void 0?f:this.clientSettings.compression)!==null&&R!==void 0?R:!0},y=new c1(G);if(!A)return y;return y.connect()}initializeToken(c){if(typeof c==="string")this.bearerToken=c;else if(typeof c==="object"&&"appKey"in c){if(this.consumerToken=c.appKey,this.consumerSecret=c.appSecret,c.accessToken&&c.accessSecret)this.accessToken=c.accessToken,this.accessSecret=c.accessSecret;this._oauth=this.buildOAuth()}else if(typeof c==="object"&&"username"in c){let f=encodeURIComponent(c.username)+":"+encodeURIComponent(c.password);this.basicToken=Buffer.from(f).toString("base64")}else if(typeof c==="object"&&"clientId"in c)this.clientId=c.clientId,this.clientSecret=c.clientSecret}getActiveTokens(){if(this.bearerToken)return{type:"oauth2",bearerToken:this.bearerToken};else if(this.basicToken)return{type:"basic",token:this.basicToken};else if(this.consumerSecret&&this._oauth)return{type:"oauth-1.0a",appKey:this.consumerToken,appSecret:this.consumerSecret,accessToken:this.accessToken,accessSecret:this.accessSecret};else if(this.clientId)return{type:"oauth2-user",clientId:this.clientId};return{type:"none"}}buildOAuth(){if(!this.consumerSecret||!this.consumerToken)throw Error("Invalid consumer tokens");return new F0({consumerKeys:{key:this.consumerToken,secret:this.consumerSecret}})}getOAuthAccessTokens(){if(!this.accessSecret||!this.accessToken)return;return{key:this.accessToken,secret:this.accessSecret}}getPlugins(){var c;return(c=this.clientSettings.plugins)!==null&&c!==void 0?c:[]}hasPlugins(){var c;return!!((c=this.clientSettings.plugins)===null||c===void 0?void 0:c.length)}async applyPluginMethod(c,f){var R;let h;for(let $ of this.getPlugins()){let H=await((R=$[c])===null||R===void 0?void 0:R.call($,f));if(H&&H instanceof A0)h=H}return h}writeAuthHeaders({headers:c,bodyInSignature:f,url:R,method:h,query:$,body:H}){if(c={...c},this.bearerToken)c.Authorization="Bearer "+this.bearerToken;else if(this.basicToken)c.Authorization="Basic "+this.basicToken;else if(this.clientId&&this.clientSecret)c.Authorization="Basic "+jf.getAuthHeader(this.clientId,this.clientSecret);else if(this.consumerSecret&&this._oauth){let A=f?xc.mergeQueryAndBodyForOAuth($,H):$,G=this._oauth.authorize({url:R.toString(),method:h,data:A},this.getOAuthAccessTokens());c={...c,...this._oauth.toHeader(G)}}return c}getUrlObjectFromUrlString(c){if(!c.startsWith("http"))c="https://"+c;return new URL(c)}getHttpRequestArgs({url:c,method:f,query:R={},body:h={},headers:$,forceBodyMode:H,enableAuth:A,params:G}){let y=void 0;if(f=f.toUpperCase(),$=$!==null&&$!==void 0?$:{},!$["x-user-agent"])$["x-user-agent"]="Node.twitter-api-v2";let F=this.getUrlObjectFromUrlString(c),U=F.origin+F.pathname;if(G)xc.applyRequestParametersToUrl(F,G);let N=xc.formatQueryToString(R);if(xc.moveUrlQueryParamsIntoObject(F,N),!(h instanceof Buffer))fF(h);let z=H!==null&&H!==void 0?H:xc.autoDetectBodyType(F);if(A!==!1){let Z=HR.BODY_METHODS.has(f)&&z==="url";$=this.writeAuthHeaders({headers:$,bodyInSignature:Z,method:f,query:N,url:F,body:h})}if(HR.BODY_METHODS.has(f))y=xc.constructBodyParams(h,$,z)||void 0;return xc.addQueryParamsToUrl(F,N),{rawUrl:U,url:F,method:f,headers:$,body:y}}async applyPreRequestConfigHooks(c){var f;let R=this.getUrlObjectFromUrlString(c.url);for(let h of this.getPlugins()){let $=await((f=h.onBeforeRequestConfig)===null||f===void 0?void 0:f.call(h,{client:this,url:R,params:c}));if($)return $}}applyPreStreamRequestConfigHooks(c){var f;let R=this.getUrlObjectFromUrlString(c.url);for(let h of this.getPlugins())(f=h.onBeforeStreamRequestConfig)===null||f===void 0||f.call(h,{client:this,url:R,params:c})}async applyPreRequestHooks(c,f,R){await this.applyPluginMethod("onBeforeRequest",{client:this,url:this.getUrlObjectFromUrlString(c.url),params:c,computedParams:f,requestOptions:R})}async applyPostRequestHooks(c,f,R,h){return await this.applyPluginMethod("onAfterRequest",{client:this,url:this.getUrlObjectFromUrlString(c.url),params:c,computedParams:f,requestOptions:R,response:h})}applyResponseErrorHooks(c,f,R,h){return h.catch(yF.bind(this,c,f,R))}}HR.BODY_METHODS=new Set(["POST","PUT","PATCH"]);class Wf{constructor(c,f={}){if(this._currentUser=null,this._currentUserV2=null,c instanceof Wf)this._requestMaker=c._requestMaker;else this._requestMaker=new HR(f),this._requestMaker.initializeToken(c)}setPrefix(c){this._prefix=c}cloneWithPrefix(c){let f=this.constructor(this);return f.setPrefix(c),f}getActiveTokens(){return this._requestMaker.getActiveTokens()}getPlugins(){return this._requestMaker.getPlugins()}getPluginOfType(c){return this.getPlugins().find((f)=>f instanceof c)}hasHitRateLimit(c){var f;if(this.isRateLimitStatusObsolete(c))return!1;return((f=this.getLastRateLimitStatus(c))===null||f===void 0?void 0:f.remaining)===0}isRateLimitStatusObsolete(c){let f=this.getLastRateLimitStatus(c);if(f===void 0)return!0;return f.reset*1000<Date.now()}getLastRateLimitStatus(c){let f=c.match(/^https?:\/\//)?c:this._prefix+c;return this._requestMaker.getRateLimits()[f]}getCurrentUserObject(c=!1){if(!c&&this._currentUser){if(this._currentUser.value)return Promise.resolve(this._currentUser.value);return this._currentUser.promise}return this._currentUser=O8(()=>this.get("account/verify_credentials.json",{tweet_mode:"extended"},{prefix:yf})),this._currentUser.promise}getCurrentUserV2Object(c=!1){if(!c&&this._currentUserV2){if(this._currentUserV2.value)return Promise.resolve(this._currentUserV2.value);return this._currentUserV2.promise}return this._currentUserV2=O8(()=>this.get("users/me",void 0,{prefix:Gf})),this._currentUserV2.promise}async get(c,f={},{fullResponse:R,prefix:h=this._prefix,...$}={}){if(h)c=h+c;let H=await this._requestMaker.send({url:c,method:"GET",query:f,...$});return R?H:H.data}async delete(c,f={},{fullResponse:R,prefix:h=this._prefix,...$}={}){if(h)c=h+c;let H=await this._requestMaker.send({url:c,method:"DELETE",query:f,...$});return R?H:H.data}async post(c,f,{fullResponse:R,prefix:h=this._prefix,...$}={}){if(h)c=h+c;let H=await this._requestMaker.send({url:c,method:"POST",body:f,...$});return R?H:H.data}async put(c,f,{fullResponse:R,prefix:h=this._prefix,...$}={}){if(h)c=h+c;let H=await this._requestMaker.send({url:c,method:"PUT",body:f,...$});return R?H:H.data}async patch(c,f,{fullResponse:R,prefix:h=this._prefix,...$}={}){if(h)c=h+c;let H=await this._requestMaker.send({url:c,method:"PATCH",body:f,...$});return R?H:H.data}getStream(c,f,{prefix:R=this._prefix,...h}={}){return this._requestMaker.sendStream({url:R?R+c:c,method:"GET",query:f,...h})}postStream(c,f,{prefix:R=this._prefix,...h}={}){return this._requestMaker.sendStream({url:R?R+c:c,method:"POST",body:f,...h})}}class Ic extends Wf{constructor(c){if(!(c instanceof Wf))throw Error("You must instance SubTwitterApi instance from existing TwitterApi instance.");super(c)}}class AR extends $R{constructor(){super(...arguments);this.hasFinishedFetch=!1}refreshInstanceFromResult(c,f){let R=c.data;if(this._rateLimit=c.rateLimit,f)this._realData.push(...R),this.hasFinishedFetch=R.length===0}getNextQueryParams(c){let f=BigInt(this._realData[this._realData.length-1].id_str);return{...this.injectQueryParams(c),max_id:(f-BigInt(1)).toString()}}getPageLengthFromRequest(c){return c.data.length}isFetchLastOver(c){return!c.data.length}canFetchNextPage(c){return c.length>0}getItemArray(){return this.tweets}get tweets(){return this._realData}get done(){return super.done||this.hasFinishedFetch}}class V8 extends AR{constructor(){super(...arguments);this._endpoint="statuses/home_timeline.json"}}class E8 extends AR{constructor(){super(...arguments);this._endpoint="statuses/mentions_timeline.json"}}class R1 extends AR{constructor(){super(...arguments);this._endpoint="statuses/user_timeline.json"}}class T8 extends AR{constructor(){super(...arguments);this._endpoint="lists/statuses.json"}}class h1 extends AR{constructor(){super(...arguments);this._endpoint="favorites/list.json"}}class u8 extends Ac{constructor(){super(...arguments);this._endpoint="mutes/users/list.json"}refreshInstanceFromResult(c,f){let R=c.data;if(this._rateLimit=c.rateLimit,f)this._realData.users.push(...R.users),this._realData.next_cursor=R.next_cursor}getPageLengthFromRequest(c){return c.data.users.length}getItemArray(){return this.users}get users(){return this._realData.users}}class g8 extends Ac{constructor(){super(...arguments);this._endpoint="mutes/users/ids.json",this._maxResultsWhenFetchLast=5000}refreshInstanceFromResult(c,f){let R=c.data;if(this._rateLimit=c.rateLimit,f)this._realData.ids.push(...R.ids),this._realData.next_cursor=R.next_cursor}getPageLengthFromRequest(c){return c.data.ids.length}getItemArray(){return this.ids}get ids(){return this._realData.ids}}class C8 extends Ac{constructor(){super(...arguments);this._endpoint="followers/list.json"}refreshInstanceFromResult(c,f){let R=c.data;if(this._rateLimit=c.rateLimit,f)this._realData.users.push(...R.users),this._realData.next_cursor=R.next_cursor}getPageLengthFromRequest(c){return c.data.users.length}getItemArray(){return this.users}get users(){return this._realData.users}}class m8 extends Ac{constructor(){super(...arguments);this._endpoint="followers/ids.json",this._maxResultsWhenFetchLast=5000}refreshInstanceFromResult(c,f){let R=c.data;if(this._rateLimit=c.rateLimit,f)this._realData.ids.push(...R.ids),this._realData.next_cursor=R.next_cursor}getPageLengthFromRequest(c){return c.data.ids.length}getItemArray(){return this.ids}get ids(){return this._realData.ids}}class p8 extends Ac{constructor(){super(...arguments);this._endpoint="friends/list.json"}refreshInstanceFromResult(c,f){let R=c.data;if(this._rateLimit=c.rateLimit,f)this._realData.users.push(...R.users),this._realData.next_cursor=R.next_cursor}getPageLengthFromRequest(c){return c.data.users.length}getItemArray(){return this.users}get users(){return this._realData.users}}class s8 extends Ac{constructor(){super(...arguments);this._endpoint="friends/ids.json",this._maxResultsWhenFetchLast=5000}refreshInstanceFromResult(c,f){let R=c.data;if(this._rateLimit=c.rateLimit,f)this._realData.ids.push(...R.ids),this._realData.next_cursor=R.next_cursor}getPageLengthFromRequest(c){return c.data.ids.length}getItemArray(){return this.ids}get ids(){return this._realData.ids}}class i8 extends $R{constructor(){super(...arguments);this._endpoint="users/search.json"}refreshInstanceFromResult(c,f){let R=c.data;if(this._rateLimit=c.rateLimit,f)this._realData.push(...R)}getNextQueryParams(c){var f;let R=Number((f=this._queryParams.page)!==null&&f!==void 0?f:"1");return{...this._queryParams,page:R+1,...c?{count:c}:{}}}getPageLengthFromRequest(c){return c.data.length}isFetchLastOver(c){return!c.data.length}canFetchNextPage(c){return c.length>0}getItemArray(){return this.users}get users(){return this._realData}}class $1 extends Ac{constructor(){super(...arguments);this._endpoint="friendships/incoming.json",this._maxResultsWhenFetchLast=5000}refreshInstanceFromResult(c,f){let R=c.data;if(this._rateLimit=c.rateLimit,f)this._realData.ids.push(...R.ids),this._realData.next_cursor=R.next_cursor}getPageLengthFromRequest(c){return c.data.ids.length}getItemArray(){return this.ids}get ids(){return this._realData.ids}}class k8 extends $1{constructor(){super(...arguments);this._endpoint="friendships/outgoing.json"}}class H1 extends Ac{refreshInstanceFromResult(c,f){let R=c.data;if(this._rateLimit=c.rateLimit,f)this._realData.lists.push(...R.lists),this._realData.next_cursor=R.next_cursor}getPageLengthFromRequest(c){return c.data.lists.length}getItemArray(){return this.lists}get lists(){return this._realData.lists}}class l8 extends H1{constructor(){super(...arguments);this._endpoint="lists/memberships.json"}}class d8 extends H1{constructor(){super(...arguments);this._endpoint="lists/ownerships.json"}}class _8 extends H1{constructor(){super(...arguments);this._endpoint="lists/subscriptions.json"}}class n8 extends Ac{refreshInstanceFromResult(c,f){let R=c.data;if(this._rateLimit=c.rateLimit,f)this._realData.users.push(...R.users),this._realData.next_cursor=R.next_cursor}getPageLengthFromRequest(c){return c.data.users.length}getItemArray(){return this.users}get users(){return this._realData.users}}class o8 extends n8{constructor(){super(...arguments);this._endpoint="lists/members.json"}}class a8 extends n8{constructor(){super(...arguments);this._endpoint="lists/subscribers.json"}}class GR extends Ic{constructor(){super(...arguments);this._prefix=yf}singleTweet(c,f={}){return this.get("statuses/show.json",{tweet_mode:"extended",id:c,...f})}tweets(c,f={}){return this.post("statuses/lookup.json",{tweet_mode:"extended",id:c,...f})}oembedTweet(c,f={}){return this.get("oembed",{url:`https://x.com/i/statuses/${c}`,...f},{prefix:"https://publish.x.com/"})}async homeTimeline(c={}){let f={tweet_mode:"extended",...c},R=await this.get("statuses/home_timeline.json",f,{fullResponse:!0});return new V8({realData:R.data,rateLimit:R.rateLimit,instance:this,queryParams:f})}async mentionTimeline(c={}){let f={tweet_mode:"extended",...c},R=await this.get("statuses/mentions_timeline.json",f,{fullResponse:!0});return new E8({realData:R.data,rateLimit:R.rateLimit,instance:this,queryParams:f})}async userTimeline(c,f={}){let R={tweet_mode:"extended",user_id:c,...f},h=await this.get("statuses/user_timeline.json",R,{fullResponse:!0});return new R1({realData:h.data,rateLimit:h.rateLimit,instance:this,queryParams:R})}async userTimelineByUsername(c,f={}){let R={tweet_mode:"extended",screen_name:c,...f},h=await this.get("statuses/user_timeline.json",R,{fullResponse:!0});return new R1({realData:h.data,rateLimit:h.rateLimit,instance:this,queryParams:R})}async favoriteTimeline(c,f={}){let R={tweet_mode:"extended",user_id:c,...f},h=await this.get("favorites/list.json",R,{fullResponse:!0});return new h1({realData:h.data,rateLimit:h.rateLimit,instance:this,queryParams:R})}async favoriteTimelineByUsername(c,f={}){let R={tweet_mode:"extended",screen_name:c,...f},h=await this.get("favorites/list.json",R,{fullResponse:!0});return new h1({realData:h.data,rateLimit:h.rateLimit,instance:this,queryParams:R})}user(c){return this.get("users/show.json",{tweet_mode:"extended",...c})}users(c){return this.get("users/lookup.json",{tweet_mode:"extended",...c})}verifyCredentials(c={}){return this.get("account/verify_credentials.json",c)}async listMutedUsers(c={}){let f={tweet_mode:"extended",...c},R=await this.get("mutes/users/list.json",f,{fullResponse:!0});return new u8({realData:R.data,rateLimit:R.rateLimit,instance:this,queryParams:f})}async listMutedUserIds(c={}){let f={stringify_ids:!0,...c},R=await this.get("mutes/users/ids.json",f,{fullResponse:!0});return new g8({realData:R.data,rateLimit:R.rateLimit,instance:this,queryParams:f})}async userFriendList(c={}){let f={...c},R=await this.get("friends/list.json",f,{fullResponse:!0});return new p8({realData:R.data,rateLimit:R.rateLimit,instance:this,queryParams:f})}async userFollowerList(c={}){let f={...c},R=await this.get("followers/list.json",f,{fullResponse:!0});return new C8({realData:R.data,rateLimit:R.rateLimit,instance:this,queryParams:f})}async userFollowerIds(c={}){let f={stringify_ids:!0,...c},R=await this.get("followers/ids.json",f,{fullResponse:!0});return new m8({realData:R.data,rateLimit:R.rateLimit,instance:this,queryParams:f})}async userFollowingIds(c={}){let f={stringify_ids:!0,...c},R=await this.get("friends/ids.json",f,{fullResponse:!0});return new s8({realData:R.data,rateLimit:R.rateLimit,instance:this,queryParams:f})}async searchUsers(c,f={}){let R={q:c,tweet_mode:"extended",page:1,...f},h=await this.get("users/search.json",R,{fullResponse:!0});return new i8({realData:h.data,rateLimit:h.rateLimit,instance:this,queryParams:R})}friendship(c){return this.get("friendships/show.json",c)}friendships(c){return this.get("friendships/lookup.json",c)}friendshipsNoRetweets(){return this.get("friendships/no_retweets/ids.json",{stringify_ids:!0})}async friendshipsIncoming(c={}){let f={stringify_ids:!0,...c},R=await this.get("friendships/incoming.json",f,{fullResponse:!0});return new $1({realData:R.data,rateLimit:R.rateLimit,instance:this,queryParams:f})}async friendshipsOutgoing(c={}){let f={stringify_ids:!0,...c},R=await this.get("friendships/outgoing.json",f,{fullResponse:!0});return new k8({realData:R.data,rateLimit:R.rateLimit,instance:this,queryParams:f})}accountSettings(){return this.get("account/settings.json")}userProfileBannerSizes(c){return this.get("users/profile_banner.json",c)}list(c){return this.get("lists/show.json",{tweet_mode:"extended",...c})}lists(c={}){return this.get("lists/list.json",{tweet_mode:"extended",...c})}async listMembers(c={}){let f={tweet_mode:"extended",...c},R=await this.get("lists/members.json",f,{fullResponse:!0});return new o8({realData:R.data,rateLimit:R.rateLimit,instance:this,queryParams:f})}listGetMember(c){return this.get("lists/members/show.json",{tweet_mode:"extended",...c})}async listMemberships(c={}){let f={tweet_mode:"extended",...c},R=await this.get("lists/memberships.json",f,{fullResponse:!0});return new l8({realData:R.data,rateLimit:R.rateLimit,instance:this,queryParams:f})}async listOwnerships(c={}){let f={tweet_mode:"extended",...c},R=await this.get("lists/ownerships.json",f,{fullResponse:!0});return new d8({realData:R.data,rateLimit:R.rateLimit,instance:this,queryParams:f})}async listStatuses(c){let f={tweet_mode:"extended",...c},R=await this.get("lists/statuses.json",f,{fullResponse:!0});return new T8({realData:R.data,rateLimit:R.rateLimit,instance:this,queryParams:f})}async listSubscribers(c={}){let f={tweet_mode:"extended",...c},R=await this.get("lists/subscribers.json",f,{fullResponse:!0});return new a8({realData:R.data,rateLimit:R.rateLimit,instance:this,queryParams:f})}listGetSubscriber(c){return this.get("lists/subscribers/show.json",{tweet_mode:"extended",...c})}async listSubscriptions(c={}){let f={tweet_mode:"extended",...c},R=await this.get("lists/subscriptions.json",f,{fullResponse:!0});return new _8({realData:R.data,rateLimit:R.rateLimit,instance:this,queryParams:f})}mediaInfo(c){return this.get("media/upload.json",{command:"STATUS",media_id:c},{prefix:_c})}filterStream({autoConnect:c,...f}={}){let R={};for(let[$,H]of Object.entries(f))if($==="follow"||$==="track")R[$]=H.toString();else if($==="locations"){let A=H;R.locations=rh(A).map((G)=>`${G.lng},${G.lat}`).join(",")}else R[$]=H;return this.stream.postStream("statuses/filter.json",R,{autoConnect:c})}sampleStream({autoConnect:c,...f}={}){return this.stream.getStream("statuses/sample.json",f,{autoConnect:c})}get stream(){let c=new A1(this);return c.setPrefix(ry),c}trendsByPlace(c,f={}){return this.get("trends/place.json",{id:c,...f})}trendsAvailable(){return this.get("trends/available.json")}trendsClosest(c,f){return this.get("trends/closest.json",{lat:c,long:f})}geoPlace(c){return this.get("geo/id/:place_id.json",void 0,{params:{place_id:c}})}geoSearch(c){return this.get("geo/search.json",c)}geoReverseGeoCode(c){return this.get("geo/reverse_geocode.json",c)}rateLimitStatuses(...c){return this.get("application/rate_limit_status.json",{resources:c})}supportedLanguages(){return this.get("help/languages.json")}}import*as vf from"fs";async function t8(c){let f=await r8(c);if(typeof f==="number")return new Promise((R,h)=>{vf.readFile(f,($,H)=>{if($)return h($);R(H)})});else if(f instanceof Buffer)return f;else return f.readFile()}function r8(c){if(typeof c==="string")return vf.promises.open(c,"r");else if(typeof c==="number")return c;else if(typeof c==="object"&&!(c instanceof Buffer))return c;else if(!(c instanceof Buffer))throw Error("Given file is not valid, please check its type.");else return c}async function YF(c){if(typeof c==="number")return(await new Promise((R,h)=>{vf.fstat(c,($,H)=>{if($)h($);R(H)})})).size;else if(c instanceof Buffer)return c.length;else return(await c.stat()).size}function NF(c,f,R){if(typeof R==="string")return R;else if(typeof c==="string"&&!f)return AJ(c);else if(typeof f==="string")return GJ(f);throw Error("You must specify type if file is a file handle or Buffer.")}function AJ(c){if(c.endsWith(".jpeg")||c.endsWith(".jpg"))return i.Jpeg;if(c.endsWith(".png"))return i.Png;if(c.endsWith(".webp"))return i.Webp;if(c.endsWith(".gif"))return i.Gif;if(c.endsWith(".mpeg4")||c.endsWith(".mp4"))return i.Mp4;if(c.endsWith(".mov")||c.endsWith(".mov"))return i.Mov;if(c.endsWith(".srt"))return i.Srt;return b8({instance:"TwitterApiv1ReadWrite",method:"uploadMedia",problem:"options.mimeType is missing and filename couldn't help to resolve MIME type, so it will fallback to image/jpeg",resolution:"If you except to give filenames without extensions, please specify explicitlty the MIME type using options.mimeType"}),i.Jpeg}function GJ(c){if(b8({instance:"TwitterApiv1ReadWrite",method:"uploadMedia",problem:"you're using options.type",resolution:"Remove options.type argument and migrate to options.mimeType which takes the real MIME type. If you're using type=longmp4, add options.longVideo alongside of mimeType=EUploadMimeType.Mp4"}),c==="gif")return i.Gif;if(c==="jpg")return i.Jpeg;if(c==="png")return i.Png;if(c==="webp")return i.Webp;if(c==="srt")return i.Srt;if(c==="mp4"||c==="longmp4")return i.Mp4;if(c==="mov")return i.Mov;return c}function ZF(c,f){if(c===i.Mp4||c===i.Mov)return f==="tweet"?"TweetVideo":"DmVideo";if(c===i.Gif)return f==="tweet"?"TweetGif":"DmGif";if(c===i.Srt)return"Subtitles";else return f==="tweet"?"TweetImage":"DmImage"}function e8(c){return new Promise((f)=>setTimeout(f,c*1000))}async function c4(c,f,R=0,h){if(c instanceof Buffer){let H=c.slice(R,R+f);return[H,H.length]}if(!h)throw Error("Well, we will need a buffer to store file content.");let $;if(typeof c==="number")$=await new Promise((H,A)=>{vf.read(c,h,0,f,R,(G,y)=>{if(G)A(G);H(y)})});else $=(await c.read(h,0,f,R)).bytesRead;return[h,$]}var f4="media/upload.json";class yR extends GR{constructor(){super(...arguments);this._prefix=yf}get readOnly(){return this}tweet(c,f={}){let R={status:c,tweet_mode:"extended",...f};return this.post("statuses/update.json",R)}async quote(c,f,R={}){let h="https://x.com/i/statuses/"+f;return this.tweet(c,{...R,attachment_url:h})}async tweetThread(c){let f=[];for(let R of c){let h=f.length?f[f.length-1]:null,$={...typeof R==="string"?{status:R}:R},H=h?h.id_str:$.in_reply_to_status_id,A=$.status;if(H)f.push(await this.reply(A,H,$));else f.push(await this.tweet(A,$))}return f}reply(c,f,R={}){return this.tweet(c,{auto_populate_reply_metadata:!0,in_reply_to_status_id:f,...R})}deleteTweet(c){return this.post("statuses/destroy/:id.json",{tweet_mode:"extended"},{params:{id:c}})}reportUserAsSpam(c){return this.post("users/report_spam.json",{tweet_mode:"extended",...c})}updateFriendship(c){return this.post("friendships/update.json",c)}createFriendship(c){return this.post("friendships/create.json",c)}destroyFriendship(c){return this.post("friendships/destroy.json",c)}updateAccountSettings(c){return this.post("account/settings.json",c)}updateAccountProfile(c){return this.post("account/update_profile.json",c)}async updateAccountProfileBanner(c,f={}){let R={banner:await t8(c),...f};return this.post("account/update_profile_banner.json",R,{forceBodyMode:"form-data"})}async updateAccountProfileImage(c,f={}){let R={tweet_mode:"extended",image:await t8(c),...f};return this.post("account/update_profile_image.json",R,{forceBodyMode:"form-data"})}removeAccountProfileBanner(){return this.post("account/remove_profile_banner.json")}createList(c){return this.post("lists/create.json",{tweet_mode:"extended",...c})}updateList(c){return this.post("lists/update.json",{tweet_mode:"extended",...c})}removeList(c){return this.post("lists/destroy.json",{tweet_mode:"extended",...c})}addListMembers(c){let R=c.user_id&&G0(c.user_id)||c.screen_name&&G0(c.screen_name)?"lists/members/create_all.json":"lists/members/create.json";return this.post(R,c)}removeListMembers(c){let R=c.user_id&&G0(c.user_id)||c.screen_name&&G0(c.screen_name)?"lists/members/destroy_all.json":"lists/members/destroy.json";return this.post(R,c)}subscribeToList(c){return this.post("lists/subscribers/create.json",{tweet_mode:"extended",...c})}unsubscribeOfList(c){return this.post("lists/subscribers/destroy.json",{tweet_mode:"extended",...c})}createMediaMetadata(c,f){return this.post("media/metadata/create.json",{media_id:c,...f},{prefix:_c,forceBodyMode:"json"})}createMediaSubtitles(c,f){return this.post("media/subtitles/create.json",{media_id:c,media_category:"TweetVideo",subtitle_info:{subtitles:f}},{prefix:_c,forceBodyMode:"json"})}deleteMediaSubtitles(c,...f){return this.post("media/subtitles/delete.json",{media_id:c,media_category:"TweetVideo",subtitle_info:{subtitles:f.map((R)=>({language_code:R}))}},{prefix:_c,forceBodyMode:"json"})}async uploadMedia(c,f={},R=!1){var h;let $=(h=f.chunkLength)!==null&&h!==void 0?h:1048576,{fileHandle:H,mediaCategory:A,fileSize:G,mimeType:y}=await this.getUploadMediaRequirements(c,f);try{let F=await this.post(f4,{command:"INIT",total_bytes:G,media_type:y,media_category:A,additional_owners:f.additionalOwners,shared:f.shared?!0:void 0},{prefix:_c});await this.mediaChunkedUpload(H,$,F.media_id_string,f.maxConcurrentUploads);let U=await this.post(f4,{command:"FINALIZE",media_id:F.media_id_string},{prefix:_c});if(U.processing_info&&U.processing_info.state!=="succeeded")await this.awaitForMediaProcessingCompletion(U);if(R)return U;else return U.media_id_string}finally{if(typeof c==="number")R4.close(c,()=>{});else if(typeof H==="object"&&!(H instanceof Buffer))H.close()}}async awaitForMediaProcessingCompletion(c){var f;while(!0){c=await this.mediaInfo(c.media_id_string);let{processing_info:R}=c;if(!R||R.state==="succeeded")return;if((f=R.error)===null||f===void 0?void 0:f.code){let{name:h,message:$}=R.error;throw Error(`Failed to process media: ${h} - ${$}.`)}if(R.state==="failed")throw Error("Failed to process the media.");if(R.check_after_secs)await e8(R.check_after_secs);else await e8(5)}}async getUploadMediaRequirements(c,{mimeType:f,type:R,target:h,longVideo:$}={}){let H;try{H=await r8(c);let A=NF(c,R,f),G;if(A===i.Mp4&&(!f&&!R&&h!=="dm"||$))G="amplify_video";else G=ZF(A,h!==null&&h!==void 0?h:"tweet");return{fileHandle:H,mediaCategory:G,fileSize:await YF(H),mimeType:A}}catch(A){if(typeof c==="number")R4.close(c,()=>{});else if(typeof H==="object"&&!(H instanceof Buffer))H.close();throw A}}async mediaChunkedUpload(c,f,R,h=3){let $=0;if(h<1)throw RangeError("Bad maxConcurrentUploads parameter.");let H=c instanceof Buffer?void 0:Buffer.alloc(f),A,G,y=0;[A,G]=await c4(c,f,y,H),y+=G;let F=new Set;while(G){let U=A.slice(0,G);if(U.length){let N=this.post(f4,{command:"APPEND",media_id:R,segment_index:$,media:U},{prefix:_c});F.add(N),N.then(()=>{F.delete(N)}),$++}if(F.size>=h)await Promise.race(F);[A,G]=await c4(c,f,y,H),y+=G}await Promise.all([...F])}}class JF extends yR{constructor(){super(...arguments);this._prefix=yf}get readWrite(){return this}sendDm({recipient_id:c,custom_profile_id:f,...R}){let h={event:{type:Ff.Create,[Ff.Create]:{target:{recipient_id:c},message_data:R}}};if(f)h.event[Ff.Create].custom_profile_id=f;return this.post("direct_messages/events/new.json",h,{forceBodyMode:"json"})}getDmEvent(c){return this.get("direct_messages/events/show.json",{id:c})}deleteDm(c){return this.delete("direct_messages/events/destroy.json",{id:c})}async listDmEvents(c={}){let f={...c},R=await this.get("direct_messages/events/list.json",f,{fullResponse:!0});return new P8({realData:R.data,rateLimit:R.rateLimit,instance:this,queryParams:f})}newWelcomeDm(c,f){let R={[Ff.WelcomeCreate]:{name:c,message_data:f}};return this.post("direct_messages/welcome_messages/new.json",R,{forceBodyMode:"json"})}getWelcomeDm(c){return this.get("direct_messages/welcome_messages/show.json",{id:c})}deleteWelcomeDm(c){return this.delete("direct_messages/welcome_messages/destroy.json",{id:c})}updateWelcomeDm(c,f){let R={message_data:f};return this.put("direct_messages/welcome_messages/update.json",R,{forceBodyMode:"json",query:{id:c}})}async listWelcomeDms(c={}){let f={...c},R=await this.get("direct_messages/welcome_messages/list.json",f,{fullResponse:!0});return new K8({realData:R.data,rateLimit:R.rateLimit,instance:this,queryParams:f})}newWelcomeDmRule(c){return this.post("direct_messages/welcome_messages/rules/new.json",{welcome_message_rule:{welcome_message_id:c}},{forceBodyMode:"json"})}getWelcomeDmRule(c){return this.get("direct_messages/welcome_messages/rules/show.json",{id:c})}deleteWelcomeDmRule(c){return this.delete("direct_messages/welcome_messages/rules/destroy.json",{id:c})}async listWelcomeDmRules(c={}){let f={...c};return this.get("direct_messages/welcome_messages/rules/list.json",f)}async setWelcomeDm(c,f=!0){var R;let h=await this.listWelcomeDmRules();if((R=h.welcome_message_rules)===null||R===void 0?void 0:R.length){for(let $ of h.welcome_message_rules)if(await this.deleteWelcomeDmRule($.id),f)await this.deleteWelcomeDm($.welcome_message_id)}return this.newWelcomeDmRule(c)}markDmAsRead(c,f){return this.post("direct_messages/mark_read.json",{last_read_event_id:c,recipient_id:f},{forceBodyMode:"url"})}indicateDmTyping(c){return this.post("direct_messages/indicate_typing.json",{recipient_id:c},{forceBodyMode:"url"})}async downloadDmImage(c){if(typeof c!=="string"){let R=c[Ff.Create].message_data.attachment;if(!R)throw Error("The given direct message doesn't contain any attachment");c=R.media.media_url_https}let f=await this.get(c,void 0,{forceParseMode:"buffer",prefix:""});if(!f.length)throw Error("Image not found. Make sure you are logged with credentials able to access direct messages, and check the URL.");return f}}var A1=JF;class s{constructor(c){this.result=c}get tweets(){return s.tweets(this.result)}static tweets(c){var f,R;return(R=(f=c.includes)===null||f===void 0?void 0:f.tweets)!==null&&R!==void 0?R:[]}tweetById(c){return s.tweetById(this.result,c)}static tweetById(c,f){return this.tweets(c).find((R)=>R.id===f)}retweet(c){return s.retweet(this.result,c)}static retweet(c,f){var R;let h=((R=f.referenced_tweets)!==null&&R!==void 0?R:[]).filter(($)=>$.type==="retweeted").map(($)=>$.id);return this.tweets(c).find(($)=>h.includes($.id))}quote(c){return s.quote(this.result,c)}static quote(c,f){var R;let h=((R=f.referenced_tweets)!==null&&R!==void 0?R:[]).filter(($)=>$.type==="quoted").map(($)=>$.id);return this.tweets(c).find(($)=>h.includes($.id))}repliedTo(c){return s.repliedTo(this.result,c)}static repliedTo(c,f){var R;let h=((R=f.referenced_tweets)!==null&&R!==void 0?R:[]).filter(($)=>$.type==="replied_to").map(($)=>$.id);return this.tweets(c).find(($)=>h.includes($.id))}author(c){return s.author(this.result,c)}static author(c,f){let R=f.author_id;return R?this.users(c).find((h)=>h.id===R):void 0}repliedToAuthor(c){return s.repliedToAuthor(this.result,c)}static repliedToAuthor(c,f){let R=f.in_reply_to_user_id;return R?this.users(c).find((h)=>h.id===R):void 0}get users(){return s.users(this.result)}static users(c){var f,R;return(R=(f=c.includes)===null||f===void 0?void 0:f.users)!==null&&R!==void 0?R:[]}userById(c){return s.userById(this.result,c)}static userById(c,f){return this.users(c).find((R)=>R.id===f)}pinnedTweet(c){return s.pinnedTweet(this.result,c)}static pinnedTweet(c,f){return f.pinned_tweet_id?this.tweets(c).find((R)=>R.id===f.pinned_tweet_id):void 0}get media(){return s.media(this.result)}static media(c){var f,R;return(R=(f=c.includes)===null||f===void 0?void 0:f.media)!==null&&R!==void 0?R:[]}medias(c){return s.medias(this.result,c)}static medias(c,f){var R,h;let $=(h=(R=f.attachments)===null||R===void 0?void 0:R.media_keys)!==null&&h!==void 0?h:[];return this.media(c).filter((H)=>$.includes(H.media_key))}get polls(){return s.polls(this.result)}static polls(c){var f,R;return(R=(f=c.includes)===null||f===void 0?void 0:f.polls)!==null&&R!==void 0?R:[]}poll(c){return s.poll(this.result,c)}static poll(c,f){var R,h;let $=(h=(R=f.attachments)===null||R===void 0?void 0:R.poll_ids)!==null&&h!==void 0?h:[];if($.length){let H=$[0];return this.polls(c).find((A)=>A.id===H)}return}get places(){return s.places(this.result)}static places(c){var f,R;return(R=(f=c.includes)===null||f===void 0?void 0:f.places)!==null&&R!==void 0?R:[]}place(c){return s.place(this.result,c)}static place(c,f){var R;let h=(R=f.geo)===null||R===void 0?void 0:R.place_id;return h?this.places(c).find(($)=>$.id===h):void 0}listOwner(c){return s.listOwner(this.result,c)}static listOwner(c,f){let R=f.owner_id;return R?this.users(c).find((h)=>h.id===R):void 0}spaceCreator(c){return s.spaceCreator(this.result,c)}static spaceCreator(c,f){let R=f.creator_id;return R?this.users(c).find((h)=>h.id===R):void 0}spaceHosts(c){return s.spaceHosts(this.result,c)}static spaceHosts(c,f){var R;let h=(R=f.host_ids)!==null&&R!==void 0?R:[];return this.users(c).filter(($)=>h.includes($.id))}spaceSpeakers(c){return s.spaceSpeakers(this.result,c)}static spaceSpeakers(c,f){var R;let h=(R=f.speaker_ids)!==null&&R!==void 0?R:[];return this.users(c).filter(($)=>h.includes($.id))}spaceInvitedUsers(c){return s.spaceInvitedUsers(this.result,c)}static spaceInvitedUsers(c,f){var R;let h=(R=f.invited_user_ids)!==null&&R!==void 0?R:[];return this.users(c).filter(($)=>h.includes($.id))}}class G1 extends I8{updateIncludes(c){if(c.errors){if(!this._realData.errors)this._realData.errors=[];this._realData.errors=[...this._realData.errors,...c.errors]}if(!c.includes)return;if(!this._realData.includes)this._realData.includes={};let f=this._realData.includes;for(let[R,h]of Object.entries(c.includes)){if(!f[R])f[R]=[];f[R]=[...f[R],...h]}}assertUsable(){if(this.unusable)throw Error("Unable to use this paginator to fetch more data, as it does not contain any metadata. Check .errors property for more details.")}get meta(){return this._realData.meta}get includes(){var c;if(!((c=this._realData)===null||c===void 0?void 0:c.includes))return new s(this._realData);if(this._includesInstance)return this._includesInstance;return this._includesInstance=new s(this._realData)}get errors(){var c;return(c=this._realData.errors)!==null&&c!==void 0?c:[]}get unusable(){return this.errors.length>0&&!this._realData.meta&&!this._realData.data}}class ic extends G1{refreshInstanceFromResult(c,f){var R;let h=c.data,$=(R=h.data)!==null&&R!==void 0?R:[];if(this._rateLimit=c.rateLimit,!this._realData.data)this._realData.data=[];if(f)this._realData.meta.result_count+=h.meta.result_count,this._realData.meta.next_token=h.meta.next_token,this._realData.data.push(...$);else this._realData.meta.result_count+=h.meta.result_count,this._realData.meta.previous_token=h.meta.previous_token,this._realData.data.unshift(...$);this.updateIncludes(h)}getNextQueryParams(c){return this.assertUsable(),{...this.injectQueryParams(c),pagination_token:this._realData.meta.next_token}}getPreviousQueryParams(c){return this.assertUsable(),{...this.injectQueryParams(c),pagination_token:this._realData.meta.previous_token}}getPageLengthFromRequest(c){var f,R;return(R=(f=c.data.data)===null||f===void 0?void 0:f.length)!==null&&R!==void 0?R:0}isFetchLastOver(c){var f;return!((f=c.data.data)===null||f===void 0?void 0:f.length)||!this.canFetchNextPage(c.data)}canFetchNextPage(c){var f;return!!((f=c.meta)===null||f===void 0?void 0:f.next_token)}}class h4 extends G1{refreshInstanceFromResult(c,f){var R;let h=c.data,$=(R=h.data)!==null&&R!==void 0?R:[];if(this._rateLimit=c.rateLimit,!this._realData.data)this._realData.data=[];if(f)this._realData.meta.oldest_id=h.meta.oldest_id,this._realData.meta.result_count+=h.meta.result_count,this._realData.meta.next_token=h.meta.next_token,this._realData.data.push(...$);else this._realData.meta.newest_id=h.meta.newest_id,this._realData.meta.result_count+=h.meta.result_count,this._realData.data.unshift(...$);this.updateIncludes(h)}getNextQueryParams(c){this.assertUsable();let f={...this.injectQueryParams(c)};if(this._realData.meta.next_token)f.next_token=this._realData.meta.next_token;else{if(f.start_time)f.since_id=this.dateStringToSnowflakeId(f.start_time),delete f.start_time;if(f.end_time)delete f.end_time;f.until_id=this._realData.meta.oldest_id}return f}getPreviousQueryParams(c){return this.assertUsable(),{...this.injectQueryParams(c),since_id:this._realData.meta.newest_id}}getPageLengthFromRequest(c){var f,R;return(R=(f=c.data.data)===null||f===void 0?void 0:f.length)!==null&&R!==void 0?R:0}isFetchLastOver(c){var f;return!((f=c.data.data)===null||f===void 0?void 0:f.length)||!this.canFetchNextPage(c.data)}canFetchNextPage(c){return!!c.meta.next_token}getItemArray(){return this.tweets}dateStringToSnowflakeId(c){let f=BigInt("1288834974657"),R=new Date(c);if(isNaN(R.valueOf()))throw Error("Unable to convert start_time/end_time to a valid date. A ISO 8601 DateTime is excepted, please check your input.");return(BigInt(R.valueOf())-f<<BigInt("22")).toString()}get tweets(){var c;return(c=this._realData.data)!==null&&c!==void 0?c:[]}get meta(){return super.meta}}class FR extends ic{refreshInstanceFromResult(c,f){super.refreshInstanceFromResult(c,f);let R=c.data;if(f)this._realData.meta.oldest_id=R.meta.oldest_id;else this._realData.meta.newest_id=R.meta.newest_id}getItemArray(){return this.tweets}get tweets(){var c;return(c=this._realData.data)!==null&&c!==void 0?c:[]}get meta(){return super.meta}}class $4 extends h4{constructor(){super(...arguments);this._endpoint="tweets/search/recent"}}class H4 extends h4{constructor(){super(...arguments);this._endpoint="tweets/search/all"}}class A4 extends FR{constructor(){super(...arguments);this._endpoint="tweets/:id/quote_tweets"}}class G4 extends FR{constructor(){super(...arguments);this._endpoint="users/:id/timelines/reverse_chronological"}}class y4 extends FR{constructor(){super(...arguments);this._endpoint="users/:id/tweets"}}class F4 extends FR{constructor(){super(...arguments);this._endpoint="users/:id/mentions"}}class W4 extends FR{constructor(){super(...arguments);this._endpoint="users/:id/bookmarks"}}class v4 extends ic{get tweets(){var c;return(c=this._realData.data)!==null&&c!==void 0?c:[]}get meta(){return super.meta}getItemArray(){return this.tweets}}class U4 extends v4{constructor(){super(...arguments);this._endpoint="users/:id/liked_tweets"}}class Y4 extends v4{constructor(){super(...arguments);this._endpoint="lists/:id/tweets"}}class nc extends ic{getItemArray(){return this.users}get users(){var c;return(c=this._realData.data)!==null&&c!==void 0?c:[]}get meta(){return super.meta}}class N4 extends nc{constructor(){super(...arguments);this._endpoint="users/:id/blocking"}}class Z4 extends nc{constructor(){super(...arguments);this._endpoint="users/:id/muting"}}class J4 extends nc{constructor(){super(...arguments);this._endpoint="users/:id/followers"}}class z4 extends nc{constructor(){super(...arguments);this._endpoint="users/:id/following"}}class S4 extends nc{constructor(){super(...arguments);this._endpoint="lists/:id/members"}}class M4 extends nc{constructor(){super(...arguments);this._endpoint="lists/:id/followers"}}class B4 extends nc{constructor(){super(...arguments);this._endpoint="tweets/:id/liking_users"}}class X4 extends nc{constructor(){super(...arguments);this._endpoint="tweets/:id/retweeted_by"}}class y1 extends ic{getItemArray(){return this.lists}get lists(){var c;return(c=this._realData.data)!==null&&c!==void 0?c:[]}get meta(){return super.meta}}class Q4 extends y1{constructor(){super(...arguments);this._endpoint="users/:id/owned_lists"}}class D4 extends y1{constructor(){super(...arguments);this._endpoint="users/:id/list_memberships"}}class j4 extends y1{constructor(){super(...arguments);this._endpoint="users/:id/followed_lists"}}class WR extends Ic{constructor(){super(...arguments);this._prefix=fR}}class F1 extends ic{getItemArray(){return this.events}get events(){var c;return(c=this._realData.data)!==null&&c!==void 0?c:[]}get meta(){return super.meta}}class w4 extends F1{constructor(){super(...arguments);this._endpoint="dm_events"}}class L4 extends F1{constructor(){super(...arguments);this._endpoint="dm_conversations/with/:participant_id/dm_events"}}class x4 extends F1{constructor(){super(...arguments);this._endpoint="dm_conversations/:dm_conversation_id/dm_events"}}class vR extends Ic{constructor(){super(...arguments);this._prefix=Gf}get labs(){if(this._labs)return this._labs;return this._labs=new WR(this)}async search(c,f={}){let R=typeof c==="string"?{...f,query:c}:{...c},h=await this.get("tweets/search/recent",R,{fullResponse:!0});return new $4({realData:h.data,rateLimit:h.rateLimit,instance:this,queryParams:R})}async searchAll(c,f={}){let R={...f,query:c},h=await this.get("tweets/search/all",R,{fullResponse:!0});return new H4({realData:h.data,rateLimit:h.rateLimit,instance:this,queryParams:R})}singleTweet(c,f={}){return this.get("tweets/:id",f,{params:{id:c}})}tweets(c,f={}){return this.get("tweets",{ids:c,...f})}tweetCountRecent(c,f={}){return this.get("tweets/counts/recent",{query:c,...f})}tweetCountAll(c,f={}){return this.get("tweets/counts/all",{query:c,...f})}async tweetRetweetedBy(c,f={}){let{asPaginator:R,...h}=f,$=await this.get("tweets/:id/retweeted_by",h,{fullResponse:!0,params:{id:c}});if(!R)return $.data;return new X4({realData:$.data,rateLimit:$.rateLimit,instance:this,queryParams:h,sharedParams:{id:c}})}async tweetLikedBy(c,f={}){let{asPaginator:R,...h}=f,$=await this.get("tweets/:id/liking_users",h,{fullResponse:!0,params:{id:c}});if(!R)return $.data;return new B4({realData:$.data,rateLimit:$.rateLimit,instance:this,queryParams:h,sharedParams:{id:c}})}async homeTimeline(c={}){let f=await this.getCurrentUserV2Object(),R=await this.get("users/:id/timelines/reverse_chronological",c,{fullResponse:!0,params:{id:f.data.id}});return new G4({realData:R.data,rateLimit:R.rateLimit,instance:this,queryParams:c,sharedParams:{id:f.data.id}})}async userTimeline(c,f={}){let R=await this.get("users/:id/tweets",f,{fullResponse:!0,params:{id:c}});return new y4({realData:R.data,rateLimit:R.rateLimit,instance:this,queryParams:f,sharedParams:{id:c}})}async userMentionTimeline(c,f={}){let R=await this.get("users/:id/mentions",f,{fullResponse:!0,params:{id:c}});return new F4({realData:R.data,rateLimit:R.rateLimit,instance:this,queryParams:f,sharedParams:{id:c}})}async quotes(c,f={}){let R=await this.get("tweets/:id/quote_tweets",f,{fullResponse:!0,params:{id:c}});return new A4({realData:R.data,rateLimit:R.rateLimit,instance:this,queryParams:f,sharedParams:{id:c}})}async bookmarks(c={}){let f=await this.getCurrentUserV2Object(),R=await this.get("users/:id/bookmarks",c,{fullResponse:!0,params:{id:f.data.id}});return new W4({realData:R.data,rateLimit:R.rateLimit,instance:this,queryParams:c,sharedParams:{id:f.data.id}})}me(c={}){return this.get("users/me",c)}user(c,f={}){return this.get("users/:id",f,{params:{id:c}})}users(c,f={}){let R=Array.isArray(c)?c.join(","):c;return this.get("users",{...f,ids:R})}userByUsername(c,f={}){return this.get("users/by/username/:username",f,{params:{username:c}})}usersByUsernames(c,f={}){return c=Array.isArray(c)?c.join(","):c,this.get("users/by",{...f,usernames:c})}async followers(c,f={}){let{asPaginator:R,...h}=f,$={id:c};if(!R)return this.get("users/:id/followers",h,{params:$});let H=await this.get("users/:id/followers",h,{fullResponse:!0,params:$});return new J4({realData:H.data,rateLimit:H.rateLimit,instance:this,queryParams:h,sharedParams:$})}async following(c,f={}){let{asPaginator:R,...h}=f,$={id:c};if(!R)return this.get("users/:id/following",h,{params:$});let H=await this.get("users/:id/following",h,{fullResponse:!0,params:$});return new z4({realData:H.data,rateLimit:H.rateLimit,instance:this,queryParams:h,sharedParams:$})}async userLikedTweets(c,f={}){let R={id:c},h=await this.get("users/:id/liked_tweets",f,{fullResponse:!0,params:R});return new U4({realData:h.data,rateLimit:h.rateLimit,instance:this,queryParams:{...f},sharedParams:R})}async userBlockingUsers(c,f={}){let R={id:c},h=await this.get("users/:id/blocking",f,{fullResponse:!0,params:R});return new N4({realData:h.data,rateLimit:h.rateLimit,instance:this,queryParams:{...f},sharedParams:R})}async userMutingUsers(c,f={}){let R={id:c},h=await this.get("users/:id/muting",f,{fullResponse:!0,params:R});return new Z4({realData:h.data,rateLimit:h.rateLimit,instance:this,queryParams:{...f},sharedParams:R})}list(c,f={}){return this.get("lists/:id",f,{params:{id:c}})}async listsOwned(c,f={}){let R={id:c},h=await this.get("users/:id/owned_lists",f,{fullResponse:!0,params:R});return new Q4({realData:h.data,rateLimit:h.rateLimit,instance:this,queryParams:{...f},sharedParams:R})}async listMemberships(c,f={}){let R={id:c},h=await this.get("users/:id/list_memberships",f,{fullResponse:!0,params:R});return new D4({realData:h.data,rateLimit:h.rateLimit,instance:this,queryParams:{...f},sharedParams:R})}async listFollowed(c,f={}){let R={id:c},h=await this.get("users/:id/followed_lists",f,{fullResponse:!0,params:R});return new j4({realData:h.data,rateLimit:h.rateLimit,instance:this,queryParams:{...f},sharedParams:R})}async listTweets(c,f={}){let R={id:c},h=await this.get("lists/:id/tweets",f,{fullResponse:!0,params:R});return new Y4({realData:h.data,rateLimit:h.rateLimit,instance:this,queryParams:{...f},sharedParams:R})}async listMembers(c,f={}){let R={id:c},h=await this.get("lists/:id/members",f,{fullResponse:!0,params:R});return new S4({realData:h.data,rateLimit:h.rateLimit,instance:this,queryParams:{...f},sharedParams:R})}async listFollowers(c,f={}){let R={id:c},h=await this.get("lists/:id/followers",f,{fullResponse:!0,params:R});return new M4({realData:h.data,rateLimit:h.rateLimit,instance:this,queryParams:{...f},sharedParams:R})}async listDmEvents(c={}){let f=await this.get("dm_events",c,{fullResponse:!0});return new w4({realData:f.data,rateLimit:f.rateLimit,instance:this,queryParams:{...c}})}async listDmEventsWithParticipant(c,f={}){let R={participant_id:c},h=await this.get("dm_conversations/with/:participant_id/dm_events",f,{fullResponse:!0,params:R});return new L4({realData:h.data,rateLimit:h.rateLimit,instance:this,queryParams:{...f},sharedParams:R})}async listDmEventsOfConversation(c,f={}){let R={dm_conversation_id:c},h=await this.get("dm_conversations/:dm_conversation_id/dm_events",f,{fullResponse:!0,params:R});return new x4({realData:h.data,rateLimit:h.rateLimit,instance:this,queryParams:{...f},sharedParams:R})}space(c,f={}){return this.get("spaces/:id",f,{params:{id:c}})}spaces(c,f={}){return this.get("spaces",{ids:c,...f})}spacesByCreators(c,f={}){return this.get("spaces/by/creator_ids",{user_ids:c,...f})}searchSpaces(c){return this.get("spaces/search",c)}spaceBuyers(c,f={}){return this.get("spaces/:id/buyers",f,{params:{id:c}})}spaceTweets(c,f={}){return this.get("spaces/:id/tweets",f,{params:{id:c}})}searchStream({autoConnect:c,...f}={}){return this.getStream("tweets/search/stream",f,{payloadIsError:eh,autoConnect:c})}streamRules(c={}){return this.get("tweets/search/stream/rules",c)}updateStreamRules(c,f={}){return this.post("tweets/search/stream/rules",c,{query:f})}sampleStream({autoConnect:c,...f}={}){return this.getStream("tweets/sample/stream",f,{payloadIsError:eh,autoConnect:c})}sample10Stream({autoConnect:c,...f}={}){return this.getStream("tweets/sample10/stream",f,{payloadIsError:eh,autoConnect:c})}complianceJobs(c){return this.get("compliance/jobs",c)}complianceJob(c){return this.get("compliance/jobs/:id",void 0,{params:{id:c}})}async sendComplianceJob(c){let f=await this.post("compliance/jobs",{type:c.type,name:c.name}),R=c.ids instanceof Buffer?c.ids:Buffer.from(c.ids.join(`
72
+ `;uc.DEFAULT_CONTENT_TYPE="application/octet-stream";class q8{static formatQueryToString(c){let f={};for(let R in c)if(typeof c[R]==="string")f[R]=c[R];else if(typeof c[R]<"u")f[R]=String(c[R]);return f}static autoDetectBodyType(c){if(c.pathname.startsWith("/2/")||c.pathname.startsWith("/labs/2/")){if(c.password.startsWith("/2/oauth2"))return"url";return"json"}if(c.hostname==="upload.x.com"){if(c.pathname==="/1.1/media/upload.json")return"form-data";return"json"}let f=c.pathname.split("/1.1/",2)[1];if(this.JSON_1_1_ENDPOINTS.has(f))return"json";return"url"}static addQueryParamsToUrl(c,f){let R=Object.entries(f);if(R.length){let h="";for(let[$,H]of R)h+=(h.length?"&":"?")+`${F0.percentEncode($)}=${F0.percentEncode(H)}`;c.search=h}}static constructBodyParams(c,f,R){if(c instanceof Buffer)return c;if(R==="json"){if(!f["content-type"])f["content-type"]="application/json;charset=UTF-8";return JSON.stringify(c)}else if(R==="url"){if(!f["content-type"])f["content-type"]="application/x-www-form-urlencoded;charset=UTF-8";if(Object.keys(c).length)return new URLSearchParams(c).toString().replace(/\*/g,"%2A");return""}else if(R==="raw")throw Error("You can only use raw body mode with Buffers. To give a string, use Buffer.from(str).");else{let h=new uc;for(let $ in c)h.append($,c[$]);if(!f["content-type"]){let $=h.getHeaders();f["content-type"]=$["content-type"]}return h.getBuffer()}}static setBodyLengthHeader(c,f){var R;if(c.headers=(R=c.headers)!==null&&R!==void 0?R:{},typeof f==="string")c.headers["content-length"]=Buffer.byteLength(f);else c.headers["content-length"]=f.length}static isOAuthSerializable(c){return!(c instanceof Buffer)}static mergeQueryAndBodyForOAuth(c,f){let R={};for(let h in c)R[h]=c[h];if(this.isOAuthSerializable(f))for(let h in f){let $=f[h];if(this.isOAuthSerializable($))R[h]=typeof $==="object"&&$!==null&&"toString"in $?$.toString():$}return R}static moveUrlQueryParamsIntoObject(c,f){for(let[R,h]of c.searchParams)f[R]=h;return c.search="",c}static applyRequestParametersToUrl(c,f){return c.pathname=c.pathname.replace(/:([A-Z_-]+)/ig,(R,h)=>{if(f[h]!==void 0)return String(f[h]);return R}),c}}q8.JSON_1_1_ENDPOINTS=new Set(["direct_messages/events/new.json","direct_messages/welcome_messages/new.json","direct_messages/welcome_messages/rules/new.json","media/metadata/create.json","collections/entries/curate.json"]);var xc=q8;import*as UF from"crypto";class wf{static getCodeVerifier(){return this.generateRandomString(128)}static getCodeChallengeFromVerifier(c){return this.escapeBase64Url(UF.createHash("sha256").update(c).digest("base64"))}static getAuthHeader(c,f){let R=encodeURIComponent(c)+":"+encodeURIComponent(f);return Buffer.from(R).toString("base64")}static generateRandomString(c){let f="",R="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-._~";for(let h=0;h<c;h++)f+=R[Math.floor(Math.random()*R.length)];return f}static escapeBase64Url(c){return c.replace(/=/g,"").replace(/\+/g,"-").replace(/\//g,"_")}}class HR{constructor(c){if(this.rateLimits={},this.clientSettings={},c)this.clientSettings=c}getRateLimits(){return this.rateLimits}saveRateLimit(c,f){this.rateLimits[c]=f}async send(c){var f,R,h,$,H;if((f=this.clientSettings.plugins)===null||f===void 0?void 0:f.length){let N=await this.applyPreRequestConfigHooks(c);if(N)return N}let A=this.getHttpRequestArgs(c),G={method:A.method,headers:A.headers,timeout:c.timeout,agent:this.clientSettings.httpAgent},y=c.enableRateLimitSave!==!1;if(A.body)xc.setBodyLengthHeader(G,A.body);if((R=this.clientSettings.plugins)===null||R===void 0?void 0:R.length)await this.applyPreRequestHooks(c,A,G);let F=new y0({url:A.url,options:G,body:A.body,rateLimitSaver:y?this.saveRateLimit.bind(this,A.rawUrl):void 0,requestEventDebugHandler:c.requestEventDebugHandler,compression:($=(h=c.compression)!==null&&h!==void 0?h:this.clientSettings.compression)!==null&&$!==void 0?$:!0,forceParseMode:c.forceParseMode}).makeRequest();if(GF(this))F=this.applyResponseErrorHooks(c,A,G,F);let U=await F;if((H=this.clientSettings.plugins)===null||H===void 0?void 0:H.length){let N=await this.applyPostRequestHooks(c,A,G,U);if(N)return N.value}return U}sendStream(c){var f,R;if(this.clientSettings.plugins)this.applyPreStreamRequestConfigHooks(c);let h=this.getHttpRequestArgs(c),$={method:h.method,headers:h.headers,agent:this.clientSettings.httpAgent},H=c.enableRateLimitSave!==!1,A=c.autoConnect!==!1;if(h.body)xc.setBodyLengthHeader($,h.body);let G={url:h.url,options:$,body:h.body,rateLimitSaver:H?this.saveRateLimit.bind(this,h.rawUrl):void 0,payloadIsError:c.payloadIsError,compression:(R=(f=c.compression)!==null&&f!==void 0?f:this.clientSettings.compression)!==null&&R!==void 0?R:!0},y=new c1(G);if(!A)return y;return y.connect()}initializeToken(c){if(typeof c==="string")this.bearerToken=c;else if(typeof c==="object"&&"appKey"in c){if(this.consumerToken=c.appKey,this.consumerSecret=c.appSecret,c.accessToken&&c.accessSecret)this.accessToken=c.accessToken,this.accessSecret=c.accessSecret;this._oauth=this.buildOAuth()}else if(typeof c==="object"&&"username"in c){let f=encodeURIComponent(c.username)+":"+encodeURIComponent(c.password);this.basicToken=Buffer.from(f).toString("base64")}else if(typeof c==="object"&&"clientId"in c)this.clientId=c.clientId,this.clientSecret=c.clientSecret}getActiveTokens(){if(this.bearerToken)return{type:"oauth2",bearerToken:this.bearerToken};else if(this.basicToken)return{type:"basic",token:this.basicToken};else if(this.consumerSecret&&this._oauth)return{type:"oauth-1.0a",appKey:this.consumerToken,appSecret:this.consumerSecret,accessToken:this.accessToken,accessSecret:this.accessSecret};else if(this.clientId)return{type:"oauth2-user",clientId:this.clientId};return{type:"none"}}buildOAuth(){if(!this.consumerSecret||!this.consumerToken)throw Error("Invalid consumer tokens");return new F0({consumerKeys:{key:this.consumerToken,secret:this.consumerSecret}})}getOAuthAccessTokens(){if(!this.accessSecret||!this.accessToken)return;return{key:this.accessToken,secret:this.accessSecret}}getPlugins(){var c;return(c=this.clientSettings.plugins)!==null&&c!==void 0?c:[]}hasPlugins(){var c;return!!((c=this.clientSettings.plugins)===null||c===void 0?void 0:c.length)}async applyPluginMethod(c,f){var R;let h;for(let $ of this.getPlugins()){let H=await((R=$[c])===null||R===void 0?void 0:R.call($,f));if(H&&H instanceof A0)h=H}return h}writeAuthHeaders({headers:c,bodyInSignature:f,url:R,method:h,query:$,body:H}){if(c={...c},this.bearerToken)c.Authorization="Bearer "+this.bearerToken;else if(this.basicToken)c.Authorization="Basic "+this.basicToken;else if(this.clientId&&this.clientSecret)c.Authorization="Basic "+wf.getAuthHeader(this.clientId,this.clientSecret);else if(this.consumerSecret&&this._oauth){let A=f?xc.mergeQueryAndBodyForOAuth($,H):$,G=this._oauth.authorize({url:R.toString(),method:h,data:A},this.getOAuthAccessTokens());c={...c,...this._oauth.toHeader(G)}}return c}getUrlObjectFromUrlString(c){if(!c.startsWith("http"))c="https://"+c;return new URL(c)}getHttpRequestArgs({url:c,method:f,query:R={},body:h={},headers:$,forceBodyMode:H,enableAuth:A,params:G}){let y=void 0;if(f=f.toUpperCase(),$=$!==null&&$!==void 0?$:{},!$["x-user-agent"])$["x-user-agent"]="Node.twitter-api-v2";let F=this.getUrlObjectFromUrlString(c),U=F.origin+F.pathname;if(G)xc.applyRequestParametersToUrl(F,G);let N=xc.formatQueryToString(R);if(xc.moveUrlQueryParamsIntoObject(F,N),!(h instanceof Buffer))fF(h);let z=H!==null&&H!==void 0?H:xc.autoDetectBodyType(F);if(A!==!1){let Z=HR.BODY_METHODS.has(f)&&z==="url";$=this.writeAuthHeaders({headers:$,bodyInSignature:Z,method:f,query:N,url:F,body:h})}if(HR.BODY_METHODS.has(f))y=xc.constructBodyParams(h,$,z)||void 0;return xc.addQueryParamsToUrl(F,N),{rawUrl:U,url:F,method:f,headers:$,body:y}}async applyPreRequestConfigHooks(c){var f;let R=this.getUrlObjectFromUrlString(c.url);for(let h of this.getPlugins()){let $=await((f=h.onBeforeRequestConfig)===null||f===void 0?void 0:f.call(h,{client:this,url:R,params:c}));if($)return $}}applyPreStreamRequestConfigHooks(c){var f;let R=this.getUrlObjectFromUrlString(c.url);for(let h of this.getPlugins())(f=h.onBeforeStreamRequestConfig)===null||f===void 0||f.call(h,{client:this,url:R,params:c})}async applyPreRequestHooks(c,f,R){await this.applyPluginMethod("onBeforeRequest",{client:this,url:this.getUrlObjectFromUrlString(c.url),params:c,computedParams:f,requestOptions:R})}async applyPostRequestHooks(c,f,R,h){return await this.applyPluginMethod("onAfterRequest",{client:this,url:this.getUrlObjectFromUrlString(c.url),params:c,computedParams:f,requestOptions:R,response:h})}applyResponseErrorHooks(c,f,R,h){return h.catch(yF.bind(this,c,f,R))}}HR.BODY_METHODS=new Set(["POST","PUT","PATCH"]);class Wf{constructor(c,f={}){if(this._currentUser=null,this._currentUserV2=null,c instanceof Wf)this._requestMaker=c._requestMaker;else this._requestMaker=new HR(f),this._requestMaker.initializeToken(c)}setPrefix(c){this._prefix=c}cloneWithPrefix(c){let f=this.constructor(this);return f.setPrefix(c),f}getActiveTokens(){return this._requestMaker.getActiveTokens()}getPlugins(){return this._requestMaker.getPlugins()}getPluginOfType(c){return this.getPlugins().find((f)=>f instanceof c)}hasHitRateLimit(c){var f;if(this.isRateLimitStatusObsolete(c))return!1;return((f=this.getLastRateLimitStatus(c))===null||f===void 0?void 0:f.remaining)===0}isRateLimitStatusObsolete(c){let f=this.getLastRateLimitStatus(c);if(f===void 0)return!0;return f.reset*1000<Date.now()}getLastRateLimitStatus(c){let f=c.match(/^https?:\/\//)?c:this._prefix+c;return this._requestMaker.getRateLimits()[f]}getCurrentUserObject(c=!1){if(!c&&this._currentUser){if(this._currentUser.value)return Promise.resolve(this._currentUser.value);return this._currentUser.promise}return this._currentUser=O8(()=>this.get("account/verify_credentials.json",{tweet_mode:"extended"},{prefix:yf})),this._currentUser.promise}getCurrentUserV2Object(c=!1){if(!c&&this._currentUserV2){if(this._currentUserV2.value)return Promise.resolve(this._currentUserV2.value);return this._currentUserV2.promise}return this._currentUserV2=O8(()=>this.get("users/me",void 0,{prefix:Gf})),this._currentUserV2.promise}async get(c,f={},{fullResponse:R,prefix:h=this._prefix,...$}={}){if(h)c=h+c;let H=await this._requestMaker.send({url:c,method:"GET",query:f,...$});return R?H:H.data}async delete(c,f={},{fullResponse:R,prefix:h=this._prefix,...$}={}){if(h)c=h+c;let H=await this._requestMaker.send({url:c,method:"DELETE",query:f,...$});return R?H:H.data}async post(c,f,{fullResponse:R,prefix:h=this._prefix,...$}={}){if(h)c=h+c;let H=await this._requestMaker.send({url:c,method:"POST",body:f,...$});return R?H:H.data}async put(c,f,{fullResponse:R,prefix:h=this._prefix,...$}={}){if(h)c=h+c;let H=await this._requestMaker.send({url:c,method:"PUT",body:f,...$});return R?H:H.data}async patch(c,f,{fullResponse:R,prefix:h=this._prefix,...$}={}){if(h)c=h+c;let H=await this._requestMaker.send({url:c,method:"PATCH",body:f,...$});return R?H:H.data}getStream(c,f,{prefix:R=this._prefix,...h}={}){return this._requestMaker.sendStream({url:R?R+c:c,method:"GET",query:f,...h})}postStream(c,f,{prefix:R=this._prefix,...h}={}){return this._requestMaker.sendStream({url:R?R+c:c,method:"POST",body:f,...h})}}class Ic extends Wf{constructor(c){if(!(c instanceof Wf))throw Error("You must instance SubTwitterApi instance from existing TwitterApi instance.");super(c)}}class AR extends $R{constructor(){super(...arguments);this.hasFinishedFetch=!1}refreshInstanceFromResult(c,f){let R=c.data;if(this._rateLimit=c.rateLimit,f)this._realData.push(...R),this.hasFinishedFetch=R.length===0}getNextQueryParams(c){let f=BigInt(this._realData[this._realData.length-1].id_str);return{...this.injectQueryParams(c),max_id:(f-BigInt(1)).toString()}}getPageLengthFromRequest(c){return c.data.length}isFetchLastOver(c){return!c.data.length}canFetchNextPage(c){return c.length>0}getItemArray(){return this.tweets}get tweets(){return this._realData}get done(){return super.done||this.hasFinishedFetch}}class V8 extends AR{constructor(){super(...arguments);this._endpoint="statuses/home_timeline.json"}}class E8 extends AR{constructor(){super(...arguments);this._endpoint="statuses/mentions_timeline.json"}}class R1 extends AR{constructor(){super(...arguments);this._endpoint="statuses/user_timeline.json"}}class T8 extends AR{constructor(){super(...arguments);this._endpoint="lists/statuses.json"}}class h1 extends AR{constructor(){super(...arguments);this._endpoint="favorites/list.json"}}class u8 extends Ac{constructor(){super(...arguments);this._endpoint="mutes/users/list.json"}refreshInstanceFromResult(c,f){let R=c.data;if(this._rateLimit=c.rateLimit,f)this._realData.users.push(...R.users),this._realData.next_cursor=R.next_cursor}getPageLengthFromRequest(c){return c.data.users.length}getItemArray(){return this.users}get users(){return this._realData.users}}class g8 extends Ac{constructor(){super(...arguments);this._endpoint="mutes/users/ids.json",this._maxResultsWhenFetchLast=5000}refreshInstanceFromResult(c,f){let R=c.data;if(this._rateLimit=c.rateLimit,f)this._realData.ids.push(...R.ids),this._realData.next_cursor=R.next_cursor}getPageLengthFromRequest(c){return c.data.ids.length}getItemArray(){return this.ids}get ids(){return this._realData.ids}}class C8 extends Ac{constructor(){super(...arguments);this._endpoint="followers/list.json"}refreshInstanceFromResult(c,f){let R=c.data;if(this._rateLimit=c.rateLimit,f)this._realData.users.push(...R.users),this._realData.next_cursor=R.next_cursor}getPageLengthFromRequest(c){return c.data.users.length}getItemArray(){return this.users}get users(){return this._realData.users}}class m8 extends Ac{constructor(){super(...arguments);this._endpoint="followers/ids.json",this._maxResultsWhenFetchLast=5000}refreshInstanceFromResult(c,f){let R=c.data;if(this._rateLimit=c.rateLimit,f)this._realData.ids.push(...R.ids),this._realData.next_cursor=R.next_cursor}getPageLengthFromRequest(c){return c.data.ids.length}getItemArray(){return this.ids}get ids(){return this._realData.ids}}class p8 extends Ac{constructor(){super(...arguments);this._endpoint="friends/list.json"}refreshInstanceFromResult(c,f){let R=c.data;if(this._rateLimit=c.rateLimit,f)this._realData.users.push(...R.users),this._realData.next_cursor=R.next_cursor}getPageLengthFromRequest(c){return c.data.users.length}getItemArray(){return this.users}get users(){return this._realData.users}}class s8 extends Ac{constructor(){super(...arguments);this._endpoint="friends/ids.json",this._maxResultsWhenFetchLast=5000}refreshInstanceFromResult(c,f){let R=c.data;if(this._rateLimit=c.rateLimit,f)this._realData.ids.push(...R.ids),this._realData.next_cursor=R.next_cursor}getPageLengthFromRequest(c){return c.data.ids.length}getItemArray(){return this.ids}get ids(){return this._realData.ids}}class i8 extends $R{constructor(){super(...arguments);this._endpoint="users/search.json"}refreshInstanceFromResult(c,f){let R=c.data;if(this._rateLimit=c.rateLimit,f)this._realData.push(...R)}getNextQueryParams(c){var f;let R=Number((f=this._queryParams.page)!==null&&f!==void 0?f:"1");return{...this._queryParams,page:R+1,...c?{count:c}:{}}}getPageLengthFromRequest(c){return c.data.length}isFetchLastOver(c){return!c.data.length}canFetchNextPage(c){return c.length>0}getItemArray(){return this.users}get users(){return this._realData}}class $1 extends Ac{constructor(){super(...arguments);this._endpoint="friendships/incoming.json",this._maxResultsWhenFetchLast=5000}refreshInstanceFromResult(c,f){let R=c.data;if(this._rateLimit=c.rateLimit,f)this._realData.ids.push(...R.ids),this._realData.next_cursor=R.next_cursor}getPageLengthFromRequest(c){return c.data.ids.length}getItemArray(){return this.ids}get ids(){return this._realData.ids}}class k8 extends $1{constructor(){super(...arguments);this._endpoint="friendships/outgoing.json"}}class H1 extends Ac{refreshInstanceFromResult(c,f){let R=c.data;if(this._rateLimit=c.rateLimit,f)this._realData.lists.push(...R.lists),this._realData.next_cursor=R.next_cursor}getPageLengthFromRequest(c){return c.data.lists.length}getItemArray(){return this.lists}get lists(){return this._realData.lists}}class l8 extends H1{constructor(){super(...arguments);this._endpoint="lists/memberships.json"}}class d8 extends H1{constructor(){super(...arguments);this._endpoint="lists/ownerships.json"}}class _8 extends H1{constructor(){super(...arguments);this._endpoint="lists/subscriptions.json"}}class n8 extends Ac{refreshInstanceFromResult(c,f){let R=c.data;if(this._rateLimit=c.rateLimit,f)this._realData.users.push(...R.users),this._realData.next_cursor=R.next_cursor}getPageLengthFromRequest(c){return c.data.users.length}getItemArray(){return this.users}get users(){return this._realData.users}}class o8 extends n8{constructor(){super(...arguments);this._endpoint="lists/members.json"}}class a8 extends n8{constructor(){super(...arguments);this._endpoint="lists/subscribers.json"}}class GR extends Ic{constructor(){super(...arguments);this._prefix=yf}singleTweet(c,f={}){return this.get("statuses/show.json",{tweet_mode:"extended",id:c,...f})}tweets(c,f={}){return this.post("statuses/lookup.json",{tweet_mode:"extended",id:c,...f})}oembedTweet(c,f={}){return this.get("oembed",{url:`https://x.com/i/statuses/${c}`,...f},{prefix:"https://publish.x.com/"})}async homeTimeline(c={}){let f={tweet_mode:"extended",...c},R=await this.get("statuses/home_timeline.json",f,{fullResponse:!0});return new V8({realData:R.data,rateLimit:R.rateLimit,instance:this,queryParams:f})}async mentionTimeline(c={}){let f={tweet_mode:"extended",...c},R=await this.get("statuses/mentions_timeline.json",f,{fullResponse:!0});return new E8({realData:R.data,rateLimit:R.rateLimit,instance:this,queryParams:f})}async userTimeline(c,f={}){let R={tweet_mode:"extended",user_id:c,...f},h=await this.get("statuses/user_timeline.json",R,{fullResponse:!0});return new R1({realData:h.data,rateLimit:h.rateLimit,instance:this,queryParams:R})}async userTimelineByUsername(c,f={}){let R={tweet_mode:"extended",screen_name:c,...f},h=await this.get("statuses/user_timeline.json",R,{fullResponse:!0});return new R1({realData:h.data,rateLimit:h.rateLimit,instance:this,queryParams:R})}async favoriteTimeline(c,f={}){let R={tweet_mode:"extended",user_id:c,...f},h=await this.get("favorites/list.json",R,{fullResponse:!0});return new h1({realData:h.data,rateLimit:h.rateLimit,instance:this,queryParams:R})}async favoriteTimelineByUsername(c,f={}){let R={tweet_mode:"extended",screen_name:c,...f},h=await this.get("favorites/list.json",R,{fullResponse:!0});return new h1({realData:h.data,rateLimit:h.rateLimit,instance:this,queryParams:R})}user(c){return this.get("users/show.json",{tweet_mode:"extended",...c})}users(c){return this.get("users/lookup.json",{tweet_mode:"extended",...c})}verifyCredentials(c={}){return this.get("account/verify_credentials.json",c)}async listMutedUsers(c={}){let f={tweet_mode:"extended",...c},R=await this.get("mutes/users/list.json",f,{fullResponse:!0});return new u8({realData:R.data,rateLimit:R.rateLimit,instance:this,queryParams:f})}async listMutedUserIds(c={}){let f={stringify_ids:!0,...c},R=await this.get("mutes/users/ids.json",f,{fullResponse:!0});return new g8({realData:R.data,rateLimit:R.rateLimit,instance:this,queryParams:f})}async userFriendList(c={}){let f={...c},R=await this.get("friends/list.json",f,{fullResponse:!0});return new p8({realData:R.data,rateLimit:R.rateLimit,instance:this,queryParams:f})}async userFollowerList(c={}){let f={...c},R=await this.get("followers/list.json",f,{fullResponse:!0});return new C8({realData:R.data,rateLimit:R.rateLimit,instance:this,queryParams:f})}async userFollowerIds(c={}){let f={stringify_ids:!0,...c},R=await this.get("followers/ids.json",f,{fullResponse:!0});return new m8({realData:R.data,rateLimit:R.rateLimit,instance:this,queryParams:f})}async userFollowingIds(c={}){let f={stringify_ids:!0,...c},R=await this.get("friends/ids.json",f,{fullResponse:!0});return new s8({realData:R.data,rateLimit:R.rateLimit,instance:this,queryParams:f})}async searchUsers(c,f={}){let R={q:c,tweet_mode:"extended",page:1,...f},h=await this.get("users/search.json",R,{fullResponse:!0});return new i8({realData:h.data,rateLimit:h.rateLimit,instance:this,queryParams:R})}friendship(c){return this.get("friendships/show.json",c)}friendships(c){return this.get("friendships/lookup.json",c)}friendshipsNoRetweets(){return this.get("friendships/no_retweets/ids.json",{stringify_ids:!0})}async friendshipsIncoming(c={}){let f={stringify_ids:!0,...c},R=await this.get("friendships/incoming.json",f,{fullResponse:!0});return new $1({realData:R.data,rateLimit:R.rateLimit,instance:this,queryParams:f})}async friendshipsOutgoing(c={}){let f={stringify_ids:!0,...c},R=await this.get("friendships/outgoing.json",f,{fullResponse:!0});return new k8({realData:R.data,rateLimit:R.rateLimit,instance:this,queryParams:f})}accountSettings(){return this.get("account/settings.json")}userProfileBannerSizes(c){return this.get("users/profile_banner.json",c)}list(c){return this.get("lists/show.json",{tweet_mode:"extended",...c})}lists(c={}){return this.get("lists/list.json",{tweet_mode:"extended",...c})}async listMembers(c={}){let f={tweet_mode:"extended",...c},R=await this.get("lists/members.json",f,{fullResponse:!0});return new o8({realData:R.data,rateLimit:R.rateLimit,instance:this,queryParams:f})}listGetMember(c){return this.get("lists/members/show.json",{tweet_mode:"extended",...c})}async listMemberships(c={}){let f={tweet_mode:"extended",...c},R=await this.get("lists/memberships.json",f,{fullResponse:!0});return new l8({realData:R.data,rateLimit:R.rateLimit,instance:this,queryParams:f})}async listOwnerships(c={}){let f={tweet_mode:"extended",...c},R=await this.get("lists/ownerships.json",f,{fullResponse:!0});return new d8({realData:R.data,rateLimit:R.rateLimit,instance:this,queryParams:f})}async listStatuses(c){let f={tweet_mode:"extended",...c},R=await this.get("lists/statuses.json",f,{fullResponse:!0});return new T8({realData:R.data,rateLimit:R.rateLimit,instance:this,queryParams:f})}async listSubscribers(c={}){let f={tweet_mode:"extended",...c},R=await this.get("lists/subscribers.json",f,{fullResponse:!0});return new a8({realData:R.data,rateLimit:R.rateLimit,instance:this,queryParams:f})}listGetSubscriber(c){return this.get("lists/subscribers/show.json",{tweet_mode:"extended",...c})}async listSubscriptions(c={}){let f={tweet_mode:"extended",...c},R=await this.get("lists/subscriptions.json",f,{fullResponse:!0});return new _8({realData:R.data,rateLimit:R.rateLimit,instance:this,queryParams:f})}mediaInfo(c){return this.get("media/upload.json",{command:"STATUS",media_id:c},{prefix:_c})}filterStream({autoConnect:c,...f}={}){let R={};for(let[$,H]of Object.entries(f))if($==="follow"||$==="track")R[$]=H.toString();else if($==="locations"){let A=H;R.locations=rh(A).map((G)=>`${G.lng},${G.lat}`).join(",")}else R[$]=H;return this.stream.postStream("statuses/filter.json",R,{autoConnect:c})}sampleStream({autoConnect:c,...f}={}){return this.stream.getStream("statuses/sample.json",f,{autoConnect:c})}get stream(){let c=new A1(this);return c.setPrefix(ry),c}trendsByPlace(c,f={}){return this.get("trends/place.json",{id:c,...f})}trendsAvailable(){return this.get("trends/available.json")}trendsClosest(c,f){return this.get("trends/closest.json",{lat:c,long:f})}geoPlace(c){return this.get("geo/id/:place_id.json",void 0,{params:{place_id:c}})}geoSearch(c){return this.get("geo/search.json",c)}geoReverseGeoCode(c){return this.get("geo/reverse_geocode.json",c)}rateLimitStatuses(...c){return this.get("application/rate_limit_status.json",{resources:c})}supportedLanguages(){return this.get("help/languages.json")}}import*as vf from"fs";async function t8(c){let f=await r8(c);if(typeof f==="number")return new Promise((R,h)=>{vf.readFile(f,($,H)=>{if($)return h($);R(H)})});else if(f instanceof Buffer)return f;else return f.readFile()}function r8(c){if(typeof c==="string")return vf.promises.open(c,"r");else if(typeof c==="number")return c;else if(typeof c==="object"&&!(c instanceof Buffer))return c;else if(!(c instanceof Buffer))throw Error("Given file is not valid, please check its type.");else return c}async function YF(c){if(typeof c==="number")return(await new Promise((R,h)=>{vf.fstat(c,($,H)=>{if($)h($);R(H)})})).size;else if(c instanceof Buffer)return c.length;else return(await c.stat()).size}function NF(c,f,R){if(typeof R==="string")return R;else if(typeof c==="string"&&!f)return AJ(c);else if(typeof f==="string")return GJ(f);throw Error("You must specify type if file is a file handle or Buffer.")}function AJ(c){if(c.endsWith(".jpeg")||c.endsWith(".jpg"))return i.Jpeg;if(c.endsWith(".png"))return i.Png;if(c.endsWith(".webp"))return i.Webp;if(c.endsWith(".gif"))return i.Gif;if(c.endsWith(".mpeg4")||c.endsWith(".mp4"))return i.Mp4;if(c.endsWith(".mov")||c.endsWith(".mov"))return i.Mov;if(c.endsWith(".srt"))return i.Srt;return b8({instance:"TwitterApiv1ReadWrite",method:"uploadMedia",problem:"options.mimeType is missing and filename couldn't help to resolve MIME type, so it will fallback to image/jpeg",resolution:"If you except to give filenames without extensions, please specify explicitlty the MIME type using options.mimeType"}),i.Jpeg}function GJ(c){if(b8({instance:"TwitterApiv1ReadWrite",method:"uploadMedia",problem:"you're using options.type",resolution:"Remove options.type argument and migrate to options.mimeType which takes the real MIME type. If you're using type=longmp4, add options.longVideo alongside of mimeType=EUploadMimeType.Mp4"}),c==="gif")return i.Gif;if(c==="jpg")return i.Jpeg;if(c==="png")return i.Png;if(c==="webp")return i.Webp;if(c==="srt")return i.Srt;if(c==="mp4"||c==="longmp4")return i.Mp4;if(c==="mov")return i.Mov;return c}function ZF(c,f){if(c===i.Mp4||c===i.Mov)return f==="tweet"?"TweetVideo":"DmVideo";if(c===i.Gif)return f==="tweet"?"TweetGif":"DmGif";if(c===i.Srt)return"Subtitles";else return f==="tweet"?"TweetImage":"DmImage"}function e8(c){return new Promise((f)=>setTimeout(f,c*1000))}async function c4(c,f,R=0,h){if(c instanceof Buffer){let H=c.slice(R,R+f);return[H,H.length]}if(!h)throw Error("Well, we will need a buffer to store file content.");let $;if(typeof c==="number")$=await new Promise((H,A)=>{vf.read(c,h,0,f,R,(G,y)=>{if(G)A(G);H(y)})});else $=(await c.read(h,0,f,R)).bytesRead;return[h,$]}var f4="media/upload.json";class yR extends GR{constructor(){super(...arguments);this._prefix=yf}get readOnly(){return this}tweet(c,f={}){let R={status:c,tweet_mode:"extended",...f};return this.post("statuses/update.json",R)}async quote(c,f,R={}){let h="https://x.com/i/statuses/"+f;return this.tweet(c,{...R,attachment_url:h})}async tweetThread(c){let f=[];for(let R of c){let h=f.length?f[f.length-1]:null,$={...typeof R==="string"?{status:R}:R},H=h?h.id_str:$.in_reply_to_status_id,A=$.status;if(H)f.push(await this.reply(A,H,$));else f.push(await this.tweet(A,$))}return f}reply(c,f,R={}){return this.tweet(c,{auto_populate_reply_metadata:!0,in_reply_to_status_id:f,...R})}deleteTweet(c){return this.post("statuses/destroy/:id.json",{tweet_mode:"extended"},{params:{id:c}})}reportUserAsSpam(c){return this.post("users/report_spam.json",{tweet_mode:"extended",...c})}updateFriendship(c){return this.post("friendships/update.json",c)}createFriendship(c){return this.post("friendships/create.json",c)}destroyFriendship(c){return this.post("friendships/destroy.json",c)}updateAccountSettings(c){return this.post("account/settings.json",c)}updateAccountProfile(c){return this.post("account/update_profile.json",c)}async updateAccountProfileBanner(c,f={}){let R={banner:await t8(c),...f};return this.post("account/update_profile_banner.json",R,{forceBodyMode:"form-data"})}async updateAccountProfileImage(c,f={}){let R={tweet_mode:"extended",image:await t8(c),...f};return this.post("account/update_profile_image.json",R,{forceBodyMode:"form-data"})}removeAccountProfileBanner(){return this.post("account/remove_profile_banner.json")}createList(c){return this.post("lists/create.json",{tweet_mode:"extended",...c})}updateList(c){return this.post("lists/update.json",{tweet_mode:"extended",...c})}removeList(c){return this.post("lists/destroy.json",{tweet_mode:"extended",...c})}addListMembers(c){let R=c.user_id&&G0(c.user_id)||c.screen_name&&G0(c.screen_name)?"lists/members/create_all.json":"lists/members/create.json";return this.post(R,c)}removeListMembers(c){let R=c.user_id&&G0(c.user_id)||c.screen_name&&G0(c.screen_name)?"lists/members/destroy_all.json":"lists/members/destroy.json";return this.post(R,c)}subscribeToList(c){return this.post("lists/subscribers/create.json",{tweet_mode:"extended",...c})}unsubscribeOfList(c){return this.post("lists/subscribers/destroy.json",{tweet_mode:"extended",...c})}createMediaMetadata(c,f){return this.post("media/metadata/create.json",{media_id:c,...f},{prefix:_c,forceBodyMode:"json"})}createMediaSubtitles(c,f){return this.post("media/subtitles/create.json",{media_id:c,media_category:"TweetVideo",subtitle_info:{subtitles:f}},{prefix:_c,forceBodyMode:"json"})}deleteMediaSubtitles(c,...f){return this.post("media/subtitles/delete.json",{media_id:c,media_category:"TweetVideo",subtitle_info:{subtitles:f.map((R)=>({language_code:R}))}},{prefix:_c,forceBodyMode:"json"})}async uploadMedia(c,f={},R=!1){var h;let $=(h=f.chunkLength)!==null&&h!==void 0?h:1048576,{fileHandle:H,mediaCategory:A,fileSize:G,mimeType:y}=await this.getUploadMediaRequirements(c,f);try{let F=await this.post(f4,{command:"INIT",total_bytes:G,media_type:y,media_category:A,additional_owners:f.additionalOwners,shared:f.shared?!0:void 0},{prefix:_c});await this.mediaChunkedUpload(H,$,F.media_id_string,f.maxConcurrentUploads);let U=await this.post(f4,{command:"FINALIZE",media_id:F.media_id_string},{prefix:_c});if(U.processing_info&&U.processing_info.state!=="succeeded")await this.awaitForMediaProcessingCompletion(U);if(R)return U;else return U.media_id_string}finally{if(typeof c==="number")R4.close(c,()=>{});else if(typeof H==="object"&&!(H instanceof Buffer))H.close()}}async awaitForMediaProcessingCompletion(c){var f;while(!0){c=await this.mediaInfo(c.media_id_string);let{processing_info:R}=c;if(!R||R.state==="succeeded")return;if((f=R.error)===null||f===void 0?void 0:f.code){let{name:h,message:$}=R.error;throw Error(`Failed to process media: ${h} - ${$}.`)}if(R.state==="failed")throw Error("Failed to process the media.");if(R.check_after_secs)await e8(R.check_after_secs);else await e8(5)}}async getUploadMediaRequirements(c,{mimeType:f,type:R,target:h,longVideo:$}={}){let H;try{H=await r8(c);let A=NF(c,R,f),G;if(A===i.Mp4&&(!f&&!R&&h!=="dm"||$))G="amplify_video";else G=ZF(A,h!==null&&h!==void 0?h:"tweet");return{fileHandle:H,mediaCategory:G,fileSize:await YF(H),mimeType:A}}catch(A){if(typeof c==="number")R4.close(c,()=>{});else if(typeof H==="object"&&!(H instanceof Buffer))H.close();throw A}}async mediaChunkedUpload(c,f,R,h=3){let $=0;if(h<1)throw RangeError("Bad maxConcurrentUploads parameter.");let H=c instanceof Buffer?void 0:Buffer.alloc(f),A,G,y=0;[A,G]=await c4(c,f,y,H),y+=G;let F=new Set;while(G){let U=A.slice(0,G);if(U.length){let N=this.post(f4,{command:"APPEND",media_id:R,segment_index:$,media:U},{prefix:_c});F.add(N),N.then(()=>{F.delete(N)}),$++}if(F.size>=h)await Promise.race(F);[A,G]=await c4(c,f,y,H),y+=G}await Promise.all([...F])}}class JF extends yR{constructor(){super(...arguments);this._prefix=yf}get readWrite(){return this}sendDm({recipient_id:c,custom_profile_id:f,...R}){let h={event:{type:Ff.Create,[Ff.Create]:{target:{recipient_id:c},message_data:R}}};if(f)h.event[Ff.Create].custom_profile_id=f;return this.post("direct_messages/events/new.json",h,{forceBodyMode:"json"})}getDmEvent(c){return this.get("direct_messages/events/show.json",{id:c})}deleteDm(c){return this.delete("direct_messages/events/destroy.json",{id:c})}async listDmEvents(c={}){let f={...c},R=await this.get("direct_messages/events/list.json",f,{fullResponse:!0});return new P8({realData:R.data,rateLimit:R.rateLimit,instance:this,queryParams:f})}newWelcomeDm(c,f){let R={[Ff.WelcomeCreate]:{name:c,message_data:f}};return this.post("direct_messages/welcome_messages/new.json",R,{forceBodyMode:"json"})}getWelcomeDm(c){return this.get("direct_messages/welcome_messages/show.json",{id:c})}deleteWelcomeDm(c){return this.delete("direct_messages/welcome_messages/destroy.json",{id:c})}updateWelcomeDm(c,f){let R={message_data:f};return this.put("direct_messages/welcome_messages/update.json",R,{forceBodyMode:"json",query:{id:c}})}async listWelcomeDms(c={}){let f={...c},R=await this.get("direct_messages/welcome_messages/list.json",f,{fullResponse:!0});return new K8({realData:R.data,rateLimit:R.rateLimit,instance:this,queryParams:f})}newWelcomeDmRule(c){return this.post("direct_messages/welcome_messages/rules/new.json",{welcome_message_rule:{welcome_message_id:c}},{forceBodyMode:"json"})}getWelcomeDmRule(c){return this.get("direct_messages/welcome_messages/rules/show.json",{id:c})}deleteWelcomeDmRule(c){return this.delete("direct_messages/welcome_messages/rules/destroy.json",{id:c})}async listWelcomeDmRules(c={}){let f={...c};return this.get("direct_messages/welcome_messages/rules/list.json",f)}async setWelcomeDm(c,f=!0){var R;let h=await this.listWelcomeDmRules();if((R=h.welcome_message_rules)===null||R===void 0?void 0:R.length){for(let $ of h.welcome_message_rules)if(await this.deleteWelcomeDmRule($.id),f)await this.deleteWelcomeDm($.welcome_message_id)}return this.newWelcomeDmRule(c)}markDmAsRead(c,f){return this.post("direct_messages/mark_read.json",{last_read_event_id:c,recipient_id:f},{forceBodyMode:"url"})}indicateDmTyping(c){return this.post("direct_messages/indicate_typing.json",{recipient_id:c},{forceBodyMode:"url"})}async downloadDmImage(c){if(typeof c!=="string"){let R=c[Ff.Create].message_data.attachment;if(!R)throw Error("The given direct message doesn't contain any attachment");c=R.media.media_url_https}let f=await this.get(c,void 0,{forceParseMode:"buffer",prefix:""});if(!f.length)throw Error("Image not found. Make sure you are logged with credentials able to access direct messages, and check the URL.");return f}}var A1=JF;class s{constructor(c){this.result=c}get tweets(){return s.tweets(this.result)}static tweets(c){var f,R;return(R=(f=c.includes)===null||f===void 0?void 0:f.tweets)!==null&&R!==void 0?R:[]}tweetById(c){return s.tweetById(this.result,c)}static tweetById(c,f){return this.tweets(c).find((R)=>R.id===f)}retweet(c){return s.retweet(this.result,c)}static retweet(c,f){var R;let h=((R=f.referenced_tweets)!==null&&R!==void 0?R:[]).filter(($)=>$.type==="retweeted").map(($)=>$.id);return this.tweets(c).find(($)=>h.includes($.id))}quote(c){return s.quote(this.result,c)}static quote(c,f){var R;let h=((R=f.referenced_tweets)!==null&&R!==void 0?R:[]).filter(($)=>$.type==="quoted").map(($)=>$.id);return this.tweets(c).find(($)=>h.includes($.id))}repliedTo(c){return s.repliedTo(this.result,c)}static repliedTo(c,f){var R;let h=((R=f.referenced_tweets)!==null&&R!==void 0?R:[]).filter(($)=>$.type==="replied_to").map(($)=>$.id);return this.tweets(c).find(($)=>h.includes($.id))}author(c){return s.author(this.result,c)}static author(c,f){let R=f.author_id;return R?this.users(c).find((h)=>h.id===R):void 0}repliedToAuthor(c){return s.repliedToAuthor(this.result,c)}static repliedToAuthor(c,f){let R=f.in_reply_to_user_id;return R?this.users(c).find((h)=>h.id===R):void 0}get users(){return s.users(this.result)}static users(c){var f,R;return(R=(f=c.includes)===null||f===void 0?void 0:f.users)!==null&&R!==void 0?R:[]}userById(c){return s.userById(this.result,c)}static userById(c,f){return this.users(c).find((R)=>R.id===f)}pinnedTweet(c){return s.pinnedTweet(this.result,c)}static pinnedTweet(c,f){return f.pinned_tweet_id?this.tweets(c).find((R)=>R.id===f.pinned_tweet_id):void 0}get media(){return s.media(this.result)}static media(c){var f,R;return(R=(f=c.includes)===null||f===void 0?void 0:f.media)!==null&&R!==void 0?R:[]}medias(c){return s.medias(this.result,c)}static medias(c,f){var R,h;let $=(h=(R=f.attachments)===null||R===void 0?void 0:R.media_keys)!==null&&h!==void 0?h:[];return this.media(c).filter((H)=>$.includes(H.media_key))}get polls(){return s.polls(this.result)}static polls(c){var f,R;return(R=(f=c.includes)===null||f===void 0?void 0:f.polls)!==null&&R!==void 0?R:[]}poll(c){return s.poll(this.result,c)}static poll(c,f){var R,h;let $=(h=(R=f.attachments)===null||R===void 0?void 0:R.poll_ids)!==null&&h!==void 0?h:[];if($.length){let H=$[0];return this.polls(c).find((A)=>A.id===H)}return}get places(){return s.places(this.result)}static places(c){var f,R;return(R=(f=c.includes)===null||f===void 0?void 0:f.places)!==null&&R!==void 0?R:[]}place(c){return s.place(this.result,c)}static place(c,f){var R;let h=(R=f.geo)===null||R===void 0?void 0:R.place_id;return h?this.places(c).find(($)=>$.id===h):void 0}listOwner(c){return s.listOwner(this.result,c)}static listOwner(c,f){let R=f.owner_id;return R?this.users(c).find((h)=>h.id===R):void 0}spaceCreator(c){return s.spaceCreator(this.result,c)}static spaceCreator(c,f){let R=f.creator_id;return R?this.users(c).find((h)=>h.id===R):void 0}spaceHosts(c){return s.spaceHosts(this.result,c)}static spaceHosts(c,f){var R;let h=(R=f.host_ids)!==null&&R!==void 0?R:[];return this.users(c).filter(($)=>h.includes($.id))}spaceSpeakers(c){return s.spaceSpeakers(this.result,c)}static spaceSpeakers(c,f){var R;let h=(R=f.speaker_ids)!==null&&R!==void 0?R:[];return this.users(c).filter(($)=>h.includes($.id))}spaceInvitedUsers(c){return s.spaceInvitedUsers(this.result,c)}static spaceInvitedUsers(c,f){var R;let h=(R=f.invited_user_ids)!==null&&R!==void 0?R:[];return this.users(c).filter(($)=>h.includes($.id))}}class G1 extends I8{updateIncludes(c){if(c.errors){if(!this._realData.errors)this._realData.errors=[];this._realData.errors=[...this._realData.errors,...c.errors]}if(!c.includes)return;if(!this._realData.includes)this._realData.includes={};let f=this._realData.includes;for(let[R,h]of Object.entries(c.includes)){if(!f[R])f[R]=[];f[R]=[...f[R],...h]}}assertUsable(){if(this.unusable)throw Error("Unable to use this paginator to fetch more data, as it does not contain any metadata. Check .errors property for more details.")}get meta(){return this._realData.meta}get includes(){var c;if(!((c=this._realData)===null||c===void 0?void 0:c.includes))return new s(this._realData);if(this._includesInstance)return this._includesInstance;return this._includesInstance=new s(this._realData)}get errors(){var c;return(c=this._realData.errors)!==null&&c!==void 0?c:[]}get unusable(){return this.errors.length>0&&!this._realData.meta&&!this._realData.data}}class ic extends G1{refreshInstanceFromResult(c,f){var R;let h=c.data,$=(R=h.data)!==null&&R!==void 0?R:[];if(this._rateLimit=c.rateLimit,!this._realData.data)this._realData.data=[];if(f)this._realData.meta.result_count+=h.meta.result_count,this._realData.meta.next_token=h.meta.next_token,this._realData.data.push(...$);else this._realData.meta.result_count+=h.meta.result_count,this._realData.meta.previous_token=h.meta.previous_token,this._realData.data.unshift(...$);this.updateIncludes(h)}getNextQueryParams(c){return this.assertUsable(),{...this.injectQueryParams(c),pagination_token:this._realData.meta.next_token}}getPreviousQueryParams(c){return this.assertUsable(),{...this.injectQueryParams(c),pagination_token:this._realData.meta.previous_token}}getPageLengthFromRequest(c){var f,R;return(R=(f=c.data.data)===null||f===void 0?void 0:f.length)!==null&&R!==void 0?R:0}isFetchLastOver(c){var f;return!((f=c.data.data)===null||f===void 0?void 0:f.length)||!this.canFetchNextPage(c.data)}canFetchNextPage(c){var f;return!!((f=c.meta)===null||f===void 0?void 0:f.next_token)}}class h4 extends G1{refreshInstanceFromResult(c,f){var R;let h=c.data,$=(R=h.data)!==null&&R!==void 0?R:[];if(this._rateLimit=c.rateLimit,!this._realData.data)this._realData.data=[];if(f)this._realData.meta.oldest_id=h.meta.oldest_id,this._realData.meta.result_count+=h.meta.result_count,this._realData.meta.next_token=h.meta.next_token,this._realData.data.push(...$);else this._realData.meta.newest_id=h.meta.newest_id,this._realData.meta.result_count+=h.meta.result_count,this._realData.data.unshift(...$);this.updateIncludes(h)}getNextQueryParams(c){this.assertUsable();let f={...this.injectQueryParams(c)};if(this._realData.meta.next_token)f.next_token=this._realData.meta.next_token;else{if(f.start_time)f.since_id=this.dateStringToSnowflakeId(f.start_time),delete f.start_time;if(f.end_time)delete f.end_time;f.until_id=this._realData.meta.oldest_id}return f}getPreviousQueryParams(c){return this.assertUsable(),{...this.injectQueryParams(c),since_id:this._realData.meta.newest_id}}getPageLengthFromRequest(c){var f,R;return(R=(f=c.data.data)===null||f===void 0?void 0:f.length)!==null&&R!==void 0?R:0}isFetchLastOver(c){var f;return!((f=c.data.data)===null||f===void 0?void 0:f.length)||!this.canFetchNextPage(c.data)}canFetchNextPage(c){return!!c.meta.next_token}getItemArray(){return this.tweets}dateStringToSnowflakeId(c){let f=BigInt("1288834974657"),R=new Date(c);if(isNaN(R.valueOf()))throw Error("Unable to convert start_time/end_time to a valid date. A ISO 8601 DateTime is excepted, please check your input.");return(BigInt(R.valueOf())-f<<BigInt("22")).toString()}get tweets(){var c;return(c=this._realData.data)!==null&&c!==void 0?c:[]}get meta(){return super.meta}}class FR extends ic{refreshInstanceFromResult(c,f){super.refreshInstanceFromResult(c,f);let R=c.data;if(f)this._realData.meta.oldest_id=R.meta.oldest_id;else this._realData.meta.newest_id=R.meta.newest_id}getItemArray(){return this.tweets}get tweets(){var c;return(c=this._realData.data)!==null&&c!==void 0?c:[]}get meta(){return super.meta}}class $4 extends h4{constructor(){super(...arguments);this._endpoint="tweets/search/recent"}}class H4 extends h4{constructor(){super(...arguments);this._endpoint="tweets/search/all"}}class A4 extends FR{constructor(){super(...arguments);this._endpoint="tweets/:id/quote_tweets"}}class G4 extends FR{constructor(){super(...arguments);this._endpoint="users/:id/timelines/reverse_chronological"}}class y4 extends FR{constructor(){super(...arguments);this._endpoint="users/:id/tweets"}}class F4 extends FR{constructor(){super(...arguments);this._endpoint="users/:id/mentions"}}class W4 extends FR{constructor(){super(...arguments);this._endpoint="users/:id/bookmarks"}}class v4 extends ic{get tweets(){var c;return(c=this._realData.data)!==null&&c!==void 0?c:[]}get meta(){return super.meta}getItemArray(){return this.tweets}}class U4 extends v4{constructor(){super(...arguments);this._endpoint="users/:id/liked_tweets"}}class Y4 extends v4{constructor(){super(...arguments);this._endpoint="lists/:id/tweets"}}class nc extends ic{getItemArray(){return this.users}get users(){var c;return(c=this._realData.data)!==null&&c!==void 0?c:[]}get meta(){return super.meta}}class N4 extends nc{constructor(){super(...arguments);this._endpoint="users/:id/blocking"}}class Z4 extends nc{constructor(){super(...arguments);this._endpoint="users/:id/muting"}}class J4 extends nc{constructor(){super(...arguments);this._endpoint="users/:id/followers"}}class z4 extends nc{constructor(){super(...arguments);this._endpoint="users/:id/following"}}class S4 extends nc{constructor(){super(...arguments);this._endpoint="lists/:id/members"}}class M4 extends nc{constructor(){super(...arguments);this._endpoint="lists/:id/followers"}}class B4 extends nc{constructor(){super(...arguments);this._endpoint="tweets/:id/liking_users"}}class X4 extends nc{constructor(){super(...arguments);this._endpoint="tweets/:id/retweeted_by"}}class y1 extends ic{getItemArray(){return this.lists}get lists(){var c;return(c=this._realData.data)!==null&&c!==void 0?c:[]}get meta(){return super.meta}}class Q4 extends y1{constructor(){super(...arguments);this._endpoint="users/:id/owned_lists"}}class D4 extends y1{constructor(){super(...arguments);this._endpoint="users/:id/list_memberships"}}class w4 extends y1{constructor(){super(...arguments);this._endpoint="users/:id/followed_lists"}}class WR extends Ic{constructor(){super(...arguments);this._prefix=fR}}class F1 extends ic{getItemArray(){return this.events}get events(){var c;return(c=this._realData.data)!==null&&c!==void 0?c:[]}get meta(){return super.meta}}class j4 extends F1{constructor(){super(...arguments);this._endpoint="dm_events"}}class L4 extends F1{constructor(){super(...arguments);this._endpoint="dm_conversations/with/:participant_id/dm_events"}}class x4 extends F1{constructor(){super(...arguments);this._endpoint="dm_conversations/:dm_conversation_id/dm_events"}}class vR extends Ic{constructor(){super(...arguments);this._prefix=Gf}get labs(){if(this._labs)return this._labs;return this._labs=new WR(this)}async search(c,f={}){let R=typeof c==="string"?{...f,query:c}:{...c},h=await this.get("tweets/search/recent",R,{fullResponse:!0});return new $4({realData:h.data,rateLimit:h.rateLimit,instance:this,queryParams:R})}async searchAll(c,f={}){let R={...f,query:c},h=await this.get("tweets/search/all",R,{fullResponse:!0});return new H4({realData:h.data,rateLimit:h.rateLimit,instance:this,queryParams:R})}singleTweet(c,f={}){return this.get("tweets/:id",f,{params:{id:c}})}tweets(c,f={}){return this.get("tweets",{ids:c,...f})}tweetCountRecent(c,f={}){return this.get("tweets/counts/recent",{query:c,...f})}tweetCountAll(c,f={}){return this.get("tweets/counts/all",{query:c,...f})}async tweetRetweetedBy(c,f={}){let{asPaginator:R,...h}=f,$=await this.get("tweets/:id/retweeted_by",h,{fullResponse:!0,params:{id:c}});if(!R)return $.data;return new X4({realData:$.data,rateLimit:$.rateLimit,instance:this,queryParams:h,sharedParams:{id:c}})}async tweetLikedBy(c,f={}){let{asPaginator:R,...h}=f,$=await this.get("tweets/:id/liking_users",h,{fullResponse:!0,params:{id:c}});if(!R)return $.data;return new B4({realData:$.data,rateLimit:$.rateLimit,instance:this,queryParams:h,sharedParams:{id:c}})}async homeTimeline(c={}){let f=await this.getCurrentUserV2Object(),R=await this.get("users/:id/timelines/reverse_chronological",c,{fullResponse:!0,params:{id:f.data.id}});return new G4({realData:R.data,rateLimit:R.rateLimit,instance:this,queryParams:c,sharedParams:{id:f.data.id}})}async userTimeline(c,f={}){let R=await this.get("users/:id/tweets",f,{fullResponse:!0,params:{id:c}});return new y4({realData:R.data,rateLimit:R.rateLimit,instance:this,queryParams:f,sharedParams:{id:c}})}async userMentionTimeline(c,f={}){let R=await this.get("users/:id/mentions",f,{fullResponse:!0,params:{id:c}});return new F4({realData:R.data,rateLimit:R.rateLimit,instance:this,queryParams:f,sharedParams:{id:c}})}async quotes(c,f={}){let R=await this.get("tweets/:id/quote_tweets",f,{fullResponse:!0,params:{id:c}});return new A4({realData:R.data,rateLimit:R.rateLimit,instance:this,queryParams:f,sharedParams:{id:c}})}async bookmarks(c={}){let f=await this.getCurrentUserV2Object(),R=await this.get("users/:id/bookmarks",c,{fullResponse:!0,params:{id:f.data.id}});return new W4({realData:R.data,rateLimit:R.rateLimit,instance:this,queryParams:c,sharedParams:{id:f.data.id}})}me(c={}){return this.get("users/me",c)}user(c,f={}){return this.get("users/:id",f,{params:{id:c}})}users(c,f={}){let R=Array.isArray(c)?c.join(","):c;return this.get("users",{...f,ids:R})}userByUsername(c,f={}){return this.get("users/by/username/:username",f,{params:{username:c}})}usersByUsernames(c,f={}){return c=Array.isArray(c)?c.join(","):c,this.get("users/by",{...f,usernames:c})}async followers(c,f={}){let{asPaginator:R,...h}=f,$={id:c};if(!R)return this.get("users/:id/followers",h,{params:$});let H=await this.get("users/:id/followers",h,{fullResponse:!0,params:$});return new J4({realData:H.data,rateLimit:H.rateLimit,instance:this,queryParams:h,sharedParams:$})}async following(c,f={}){let{asPaginator:R,...h}=f,$={id:c};if(!R)return this.get("users/:id/following",h,{params:$});let H=await this.get("users/:id/following",h,{fullResponse:!0,params:$});return new z4({realData:H.data,rateLimit:H.rateLimit,instance:this,queryParams:h,sharedParams:$})}async userLikedTweets(c,f={}){let R={id:c},h=await this.get("users/:id/liked_tweets",f,{fullResponse:!0,params:R});return new U4({realData:h.data,rateLimit:h.rateLimit,instance:this,queryParams:{...f},sharedParams:R})}async userBlockingUsers(c,f={}){let R={id:c},h=await this.get("users/:id/blocking",f,{fullResponse:!0,params:R});return new N4({realData:h.data,rateLimit:h.rateLimit,instance:this,queryParams:{...f},sharedParams:R})}async userMutingUsers(c,f={}){let R={id:c},h=await this.get("users/:id/muting",f,{fullResponse:!0,params:R});return new Z4({realData:h.data,rateLimit:h.rateLimit,instance:this,queryParams:{...f},sharedParams:R})}list(c,f={}){return this.get("lists/:id",f,{params:{id:c}})}async listsOwned(c,f={}){let R={id:c},h=await this.get("users/:id/owned_lists",f,{fullResponse:!0,params:R});return new Q4({realData:h.data,rateLimit:h.rateLimit,instance:this,queryParams:{...f},sharedParams:R})}async listMemberships(c,f={}){let R={id:c},h=await this.get("users/:id/list_memberships",f,{fullResponse:!0,params:R});return new D4({realData:h.data,rateLimit:h.rateLimit,instance:this,queryParams:{...f},sharedParams:R})}async listFollowed(c,f={}){let R={id:c},h=await this.get("users/:id/followed_lists",f,{fullResponse:!0,params:R});return new w4({realData:h.data,rateLimit:h.rateLimit,instance:this,queryParams:{...f},sharedParams:R})}async listTweets(c,f={}){let R={id:c},h=await this.get("lists/:id/tweets",f,{fullResponse:!0,params:R});return new Y4({realData:h.data,rateLimit:h.rateLimit,instance:this,queryParams:{...f},sharedParams:R})}async listMembers(c,f={}){let R={id:c},h=await this.get("lists/:id/members",f,{fullResponse:!0,params:R});return new S4({realData:h.data,rateLimit:h.rateLimit,instance:this,queryParams:{...f},sharedParams:R})}async listFollowers(c,f={}){let R={id:c},h=await this.get("lists/:id/followers",f,{fullResponse:!0,params:R});return new M4({realData:h.data,rateLimit:h.rateLimit,instance:this,queryParams:{...f},sharedParams:R})}async listDmEvents(c={}){let f=await this.get("dm_events",c,{fullResponse:!0});return new j4({realData:f.data,rateLimit:f.rateLimit,instance:this,queryParams:{...c}})}async listDmEventsWithParticipant(c,f={}){let R={participant_id:c},h=await this.get("dm_conversations/with/:participant_id/dm_events",f,{fullResponse:!0,params:R});return new L4({realData:h.data,rateLimit:h.rateLimit,instance:this,queryParams:{...f},sharedParams:R})}async listDmEventsOfConversation(c,f={}){let R={dm_conversation_id:c},h=await this.get("dm_conversations/:dm_conversation_id/dm_events",f,{fullResponse:!0,params:R});return new x4({realData:h.data,rateLimit:h.rateLimit,instance:this,queryParams:{...f},sharedParams:R})}space(c,f={}){return this.get("spaces/:id",f,{params:{id:c}})}spaces(c,f={}){return this.get("spaces",{ids:c,...f})}spacesByCreators(c,f={}){return this.get("spaces/by/creator_ids",{user_ids:c,...f})}searchSpaces(c){return this.get("spaces/search",c)}spaceBuyers(c,f={}){return this.get("spaces/:id/buyers",f,{params:{id:c}})}spaceTweets(c,f={}){return this.get("spaces/:id/tweets",f,{params:{id:c}})}searchStream({autoConnect:c,...f}={}){return this.getStream("tweets/search/stream",f,{payloadIsError:eh,autoConnect:c})}streamRules(c={}){return this.get("tweets/search/stream/rules",c)}updateStreamRules(c,f={}){return this.post("tweets/search/stream/rules",c,{query:f})}sampleStream({autoConnect:c,...f}={}){return this.getStream("tweets/sample/stream",f,{payloadIsError:eh,autoConnect:c})}sample10Stream({autoConnect:c,...f}={}){return this.getStream("tweets/sample10/stream",f,{payloadIsError:eh,autoConnect:c})}complianceJobs(c){return this.get("compliance/jobs",c)}complianceJob(c){return this.get("compliance/jobs/:id",void 0,{params:{id:c}})}async sendComplianceJob(c){let f=await this.post("compliance/jobs",{type:c.type,name:c.name}),R=c.ids instanceof Buffer?c.ids:Buffer.from(c.ids.join(`
73
73
  `));return await this.put(f.data.upload_url,R,{forceBodyMode:"raw",enableAuth:!1,headers:{"Content-Type":"text/plain"},prefix:""}),f}async complianceJobResult(c){let f=c;while(f.status!=="complete"){if(f.status==="expired"||f.status==="failed")throw Error("Job failed to be completed.");await new Promise((h)=>setTimeout(h,3500)),f=(await this.complianceJob(c.id)).data}return(await this.get(c.download_url,void 0,{enableAuth:!1,prefix:""})).trim().split(`
74
- `).filter((h)=>h).map((h)=>JSON.parse(h))}async usage(c={}){return this.get("usage/tweets",c)}community(c,f={}){return this.get("communities/:id",f,{params:{id:c}})}searchCommunities(c,f={}){return this.get("communities/search",{query:c,...f})}}class UR extends WR{constructor(){super(...arguments);this._prefix=fR}get readOnly(){return this}}class YR extends vR{constructor(){super(...arguments);this._prefix=Gf}get readOnly(){return this}get labs(){if(this._labs)return this._labs;return this._labs=new UR(this)}hideReply(c,f){return this.put("tweets/:id/hidden",{hidden:f},{params:{id:c}})}like(c,f){return this.post("users/:id/likes",{tweet_id:f},{params:{id:c}})}unlike(c,f){return this.delete("users/:id/likes/:tweet_id",void 0,{params:{id:c,tweet_id:f}})}retweet(c,f){return this.post("users/:id/retweets",{tweet_id:f},{params:{id:c}})}unretweet(c,f){return this.delete("users/:id/retweets/:tweet_id",void 0,{params:{id:c,tweet_id:f}})}tweet(c,f={}){if(typeof c==="object")f=c;else f={text:c,...f};return this.post("tweets",f)}async uploadMedia(c,f,R=1048576){let h=f.media_category;if(!f.media_category){if(f.media_type.includes("gif"))h="tweet_gif";else if(f.media_type.includes("image"))h="tweet_image";else if(f.media_type.includes("video"))h="tweet_video"}let $={additional_owners:f.additional_owners,media_type:f.media_type,total_bytes:c.length,media_category:h},A=(await this.post("media/upload/initialize",$)).data.id,G=Math.ceil(c.length/R),y=new Uint8Array(c);for(let U=0;U<G;U++){let N=U*R,z=Math.min(N+R,c.length),Z=y.slice(N,z),j=Buffer.from(Z),V={segment_index:U,media:j};await this.post(`media/upload/${A}/append`,V,{forceBodyMode:"form-data"})}if((await this.post(`media/upload/${A}/finalize`)).data.processing_info)await this.waitForMediaProcessing(A);return A}async waitForMediaProcessing(c){var f;let h=(await this.get("media/upload",{command:"STATUS",media_id:c})).data.processing_info;if(!h)return;switch(h.state){case"succeeded":return;case"failed":throw Error(`Media processing failed: ${(f=h.error)===null||f===void 0?void 0:f.message}`);case"pending":case"in_progress":{let $=h===null||h===void 0?void 0:h.check_after_secs;if($&&$>0)await new Promise((H)=>setTimeout(H,$*1000)),await this.waitForMediaProcessing(c)}}}createMediaMetadata(c,f){return this.post("media/metadata",{id:c,metadata:f})}reply(c,f,R={}){var h;let $={in_reply_to_tweet_id:f,...(h=R.reply)!==null&&h!==void 0?h:{}};return this.post("tweets",{text:c,...R,reply:$})}quote(c,f,R={}){return this.tweet(c,{...R,quote_tweet_id:f})}async tweetThread(c){var f,R;let h=[];for(let $ of c){let H=h.length?h[h.length-1]:null,A={...typeof $==="string"?{text:$}:$},G=H?H.data.id:(f=A.reply)===null||f===void 0?void 0:f.in_reply_to_tweet_id,y=(R=A.text)!==null&&R!==void 0?R:"";if(G)h.push(await this.reply(y,G,A));else h.push(await this.tweet(y,A))}return h}deleteTweet(c){return this.delete("tweets/:id",void 0,{params:{id:c}})}async bookmark(c){let f=await this.getCurrentUserV2Object();return this.post("users/:id/bookmarks",{tweet_id:c},{params:{id:f.data.id}})}async deleteBookmark(c){let f=await this.getCurrentUserV2Object();return this.delete("users/:id/bookmarks/:tweet_id",void 0,{params:{id:f.data.id,tweet_id:c}})}follow(c,f){return this.post("users/:id/following",{target_user_id:f},{params:{id:c}})}unfollow(c,f){return this.delete("users/:source_user_id/following/:target_user_id",void 0,{params:{source_user_id:c,target_user_id:f}})}block(c,f){return this.post("users/:id/blocking",{target_user_id:f},{params:{id:c}})}unblock(c,f){return this.delete("users/:source_user_id/blocking/:target_user_id",void 0,{params:{source_user_id:c,target_user_id:f}})}mute(c,f){return this.post("users/:id/muting",{target_user_id:f},{params:{id:c}})}unmute(c,f){return this.delete("users/:source_user_id/muting/:target_user_id",void 0,{params:{source_user_id:c,target_user_id:f}})}createList(c){return this.post("lists",c)}updateList(c,f={}){return this.put("lists/:id",f,{params:{id:c}})}removeList(c){return this.delete("lists/:id",void 0,{params:{id:c}})}addListMember(c,f){return this.post("lists/:id/members",{user_id:f},{params:{id:c}})}removeListMember(c,f){return this.delete("lists/:id/members/:user_id",void 0,{params:{id:c,user_id:f}})}subscribeToList(c,f){return this.post("users/:id/followed_lists",{list_id:f},{params:{id:c}})}unsubscribeOfList(c,f){return this.delete("users/:id/followed_lists/:list_id",void 0,{params:{id:c,list_id:f}})}pinList(c,f){return this.post("users/:id/pinned_lists",{list_id:f},{params:{id:c}})}unpinList(c,f){return this.delete("users/:id/pinned_lists/:list_id",void 0,{params:{id:c,list_id:f}})}sendDmInConversation(c,f){return this.post("dm_conversations/:dm_conversation_id/messages",f,{params:{dm_conversation_id:c}})}sendDmToParticipant(c,f){return this.post("dm_conversations/with/:participant_id/messages",f,{params:{participant_id:c}})}createDmConversation(c){return this.post("dm_conversations",c)}}class zF extends UR{constructor(){super(...arguments);this._prefix=fR}get readWrite(){return this}}var SF=zF;class MF extends YR{constructor(){super(...arguments);this._prefix=Gf}get readWrite(){return this}get labs(){if(this._labs)return this._labs;return this._labs=new SF(this)}}var BF=MF;class W0 extends Wf{get v1(){if(this._v1)return this._v1;return this._v1=new GR(this)}get v2(){if(this._v2)return this._v2;return this._v2=new vR(this)}async currentUser(c=!1){return await this.getCurrentUserObject(c)}async currentUserV2(c=!1){return await this.getCurrentUserV2Object(c)}search(c,f){return this.v2.search(c,f)}async generateAuthLink(c="oob",{authAccessType:f,linkMode:R="authenticate",forceLogin:h,screenName:$}={}){let H=await this.post("https://api.x.com/oauth/request_token",{oauth_callback:c,x_auth_access_type:f}),A=`https://api.x.com/oauth/${R}?oauth_token=${encodeURIComponent(H.oauth_token)}`;if(h!==void 0)A+=`&force_login=${encodeURIComponent(h)}`;if($!==void 0)A+=`&screen_name=${encodeURIComponent($)}`;if(this._requestMaker.hasPlugins())this._requestMaker.applyPluginMethod("onOAuth1RequestToken",{client:this._requestMaker,url:A,oauthResult:H});return{url:A,...H}}async login(c){let f=this.getActiveTokens();if(f.type!=="oauth-1.0a")throw Error("You must setup TwitterApi instance with consumer keys to accept OAuth 1.0 login");let R=await this.post("https://api.x.com/oauth/access_token",{oauth_token:f.accessToken,oauth_verifier:c}),h=new this.constructor({appKey:f.appKey,appSecret:f.appSecret,accessToken:R.oauth_token,accessSecret:R.oauth_token_secret},this._requestMaker.clientSettings);return{accessToken:R.oauth_token,accessSecret:R.oauth_token_secret,userId:R.user_id,screenName:R.screen_name,client:h}}async appLogin(){let c=this.getActiveTokens();if(c.type!=="oauth-1.0a")throw Error("You must setup TwitterApi instance with consumer keys to accept app-only login");let R=await new this.constructor({username:c.appKey,password:c.appSecret},this._requestMaker.clientSettings).post("https://api.x.com/oauth2/token",{grant_type:"client_credentials"});return new this.constructor(R.access_token,this._requestMaker.clientSettings)}generateOAuth2AuthLink(c,f={}){var R,h;if(!this._requestMaker.clientId)throw Error("Twitter API instance is not initialized with client ID. You can find your client ID in Twitter Developer Portal. Please build an instance with: new TwitterApi({ clientId: '<yourClientId>' })");let $=(R=f.state)!==null&&R!==void 0?R:jf.generateRandomString(32),H=jf.getCodeVerifier(),A=jf.getCodeChallengeFromVerifier(H),G=(h=f.scope)!==null&&h!==void 0?h:"",y=Array.isArray(G)?G.join(" "):G,F=new URL("https://x.com/i/oauth2/authorize"),U={response_type:"code",client_id:this._requestMaker.clientId,redirect_uri:c,state:$,code_challenge:A,code_challenge_method:"s256",scope:y};xc.addQueryParamsToUrl(F,U);let N={url:F.toString(),state:$,codeVerifier:H,codeChallenge:A};if(this._requestMaker.hasPlugins())this._requestMaker.applyPluginMethod("onOAuth2RequestToken",{client:this._requestMaker,result:N,redirectUri:c});return N}async loginWithOAuth2({code:c,codeVerifier:f,redirectUri:R}){if(!this._requestMaker.clientId)throw Error("Twitter API instance is not initialized with client ID. Please build an instance with: new TwitterApi({ clientId: '<yourClientId>' })");let h=await this.post("https://api.x.com/2/oauth2/token",{code:c,code_verifier:f,redirect_uri:R,grant_type:"authorization_code",client_id:this._requestMaker.clientId,client_secret:this._requestMaker.clientSecret});return this.parseOAuth2AccessTokenResult(h)}async refreshOAuth2Token(c){if(!this._requestMaker.clientId)throw Error("Twitter API instance is not initialized with client ID. Please build an instance with: new TwitterApi({ clientId: '<yourClientId>' })");let f=await this.post("https://api.x.com/2/oauth2/token",{refresh_token:c,grant_type:"refresh_token",client_id:this._requestMaker.clientId,client_secret:this._requestMaker.clientSecret});return this.parseOAuth2AccessTokenResult(f)}async revokeOAuth2Token(c,f="access_token"){if(!this._requestMaker.clientId)throw Error("Twitter API instance is not initialized with client ID. Please build an instance with: new TwitterApi({ clientId: '<yourClientId>' })");return await this.post("https://api.x.com/2/oauth2/revoke",{client_id:this._requestMaker.clientId,client_secret:this._requestMaker.clientSecret,token:c,token_type_hint:f})}parseOAuth2AccessTokenResult(c){let f=new this.constructor(c.access_token,this._requestMaker.clientSettings),R=c.scope.split(" ").filter((h)=>h);return{client:f,expiresIn:c.expires_in,accessToken:c.access_token,scope:R,refreshToken:c.refresh_token}}}class v0 extends W0{get v1(){if(this._v1)return this._v1;return this._v1=new yR(this)}get v2(){if(this._v2)return this._v2;return this._v2=new YR(this)}get readOnly(){return this}}class W1 extends Ic{constructor(){super(...arguments);this._prefix=RR}}class v1 extends W1{constructor(){super(...arguments);this._prefix=RR}get readOnly(){return this}}class U1 extends Ic{constructor(){super(...arguments);this._prefix=hR}}class Y1 extends U1{constructor(){super(...arguments);this._prefix=hR}get readOnly(){return this}}class XF extends Y1{constructor(){super(...arguments);this._prefix=hR}get readWrite(){return this}}var QF=XF;class DF extends v1{constructor(){super(...arguments);this._prefix=RR}get readWrite(){return this}get sandbox(){if(this._sandbox)return this._sandbox;return this._sandbox=new QF(this)}}var jF=DF;class I4 extends v0{get v1(){if(this._v1)return this._v1;return this._v1=new A1(this)}get v2(){if(this._v2)return this._v2;return this._v2=new BF(this)}get readWrite(){return this}get ads(){if(this._ads)return this._ads;return this._ads=new jF(this)}static getErrors(c){var f;if(typeof c!=="object")return[];if(!("data"in c))return[];return(f=c.data.errors)!==null&&f!==void 0?f:[]}static getProfileImageInSize(c,f){let R=c.split("/").pop(),h=["normal","bigger","mini"],$=c;for(let A of h)if(R.includes(`_${A}`)){$=c.replace(`_${A}`,"");break}if(f==="original")return $;let H=$.lastIndexOf(".");if(H!==-1){let A=$.slice(H+1);return $.slice(0,H)+"_"+f+"."+A}else return $+"_"+f}}var yJ={clientId:process.env.X_CLIENT_ID,clientSecret:process.env.X_SECRET,redirectPath:"/auth/oauth/x/callback",scope:["tweet.read","users.read","offline.access"]};class LF extends cR{config;client;oauthStates=new Map;constructor(c={}){super();this.config={...yJ,...c},this.client=new I4({clientId:this.config.clientId,clientSecret:this.config.clientSecret})}getRedirectUrl(){let{url:c,codeVerifier:f,state:R}=this.client.generateOAuth2AuthLink(`${process.env.HOST_NAME}${this.config.redirectPath}`,{scope:this.config.scope});return this.oauthStates.set(R,{state:R,codeVerifier:f}),wF.to(c),c}async onCallback(c){let f=c.search.get("code"),R=c.search.get("state"),h=this.oauthStates.get(R);if(!h)throw Error("Invalid or expired OAuth state");let $=await this.client.loginWithOAuth2({code:f,codeVerifier:h.codeVerifier,redirectUri:`${process.env.HOST_NAME}${this.config.redirectPath}`});this.oauthStates.delete(R);let{data:H}=await $.client.v2.me({"user.fields":["name","username","entities"]}),{name:A,email:G,id:y="",username:F}=H??{};return{name:A,email:G,username:F,providerId:y}}}class xF extends l{kernel;jobs=[];constructor(c){super();this.kernel=c}boot(){}}class IF{name;cron;callback(){}onTick(){}onComplete(){}static exp(c){return c}}export{Lf as Z,U0 as _,P4 as $,ly as aa,W6 as ba,Yh as ca,Nh as da,v6 as ea,_h as fa,nh as ga,sy as ha,iy as ia,ky as ja,dy as ka,_y as la,oy as ma,oh as na,ah as oa,ay as pa,cR as qa,ty as ra,LF as sa,xF as ta,IF as ua};
74
+ `).filter((h)=>h).map((h)=>JSON.parse(h))}async usage(c={}){return this.get("usage/tweets",c)}community(c,f={}){return this.get("communities/:id",f,{params:{id:c}})}searchCommunities(c,f={}){return this.get("communities/search",{query:c,...f})}}class UR extends WR{constructor(){super(...arguments);this._prefix=fR}get readOnly(){return this}}class YR extends vR{constructor(){super(...arguments);this._prefix=Gf}get readOnly(){return this}get labs(){if(this._labs)return this._labs;return this._labs=new UR(this)}hideReply(c,f){return this.put("tweets/:id/hidden",{hidden:f},{params:{id:c}})}like(c,f){return this.post("users/:id/likes",{tweet_id:f},{params:{id:c}})}unlike(c,f){return this.delete("users/:id/likes/:tweet_id",void 0,{params:{id:c,tweet_id:f}})}retweet(c,f){return this.post("users/:id/retweets",{tweet_id:f},{params:{id:c}})}unretweet(c,f){return this.delete("users/:id/retweets/:tweet_id",void 0,{params:{id:c,tweet_id:f}})}tweet(c,f={}){if(typeof c==="object")f=c;else f={text:c,...f};return this.post("tweets",f)}async uploadMedia(c,f,R=1048576){let h=f.media_category;if(!f.media_category){if(f.media_type.includes("gif"))h="tweet_gif";else if(f.media_type.includes("image"))h="tweet_image";else if(f.media_type.includes("video"))h="tweet_video"}let $={additional_owners:f.additional_owners,media_type:f.media_type,total_bytes:c.length,media_category:h},A=(await this.post("media/upload/initialize",$)).data.id,G=Math.ceil(c.length/R),y=new Uint8Array(c);for(let U=0;U<G;U++){let N=U*R,z=Math.min(N+R,c.length),Z=y.slice(N,z),w=Buffer.from(Z),V={segment_index:U,media:w};await this.post(`media/upload/${A}/append`,V,{forceBodyMode:"form-data"})}if((await this.post(`media/upload/${A}/finalize`)).data.processing_info)await this.waitForMediaProcessing(A);return A}async waitForMediaProcessing(c){var f;let h=(await this.get("media/upload",{command:"STATUS",media_id:c})).data.processing_info;if(!h)return;switch(h.state){case"succeeded":return;case"failed":throw Error(`Media processing failed: ${(f=h.error)===null||f===void 0?void 0:f.message}`);case"pending":case"in_progress":{let $=h===null||h===void 0?void 0:h.check_after_secs;if($&&$>0)await new Promise((H)=>setTimeout(H,$*1000)),await this.waitForMediaProcessing(c)}}}createMediaMetadata(c,f){return this.post("media/metadata",{id:c,metadata:f})}reply(c,f,R={}){var h;let $={in_reply_to_tweet_id:f,...(h=R.reply)!==null&&h!==void 0?h:{}};return this.post("tweets",{text:c,...R,reply:$})}quote(c,f,R={}){return this.tweet(c,{...R,quote_tweet_id:f})}async tweetThread(c){var f,R;let h=[];for(let $ of c){let H=h.length?h[h.length-1]:null,A={...typeof $==="string"?{text:$}:$},G=H?H.data.id:(f=A.reply)===null||f===void 0?void 0:f.in_reply_to_tweet_id,y=(R=A.text)!==null&&R!==void 0?R:"";if(G)h.push(await this.reply(y,G,A));else h.push(await this.tweet(y,A))}return h}deleteTweet(c){return this.delete("tweets/:id",void 0,{params:{id:c}})}async bookmark(c){let f=await this.getCurrentUserV2Object();return this.post("users/:id/bookmarks",{tweet_id:c},{params:{id:f.data.id}})}async deleteBookmark(c){let f=await this.getCurrentUserV2Object();return this.delete("users/:id/bookmarks/:tweet_id",void 0,{params:{id:f.data.id,tweet_id:c}})}follow(c,f){return this.post("users/:id/following",{target_user_id:f},{params:{id:c}})}unfollow(c,f){return this.delete("users/:source_user_id/following/:target_user_id",void 0,{params:{source_user_id:c,target_user_id:f}})}block(c,f){return this.post("users/:id/blocking",{target_user_id:f},{params:{id:c}})}unblock(c,f){return this.delete("users/:source_user_id/blocking/:target_user_id",void 0,{params:{source_user_id:c,target_user_id:f}})}mute(c,f){return this.post("users/:id/muting",{target_user_id:f},{params:{id:c}})}unmute(c,f){return this.delete("users/:source_user_id/muting/:target_user_id",void 0,{params:{source_user_id:c,target_user_id:f}})}createList(c){return this.post("lists",c)}updateList(c,f={}){return this.put("lists/:id",f,{params:{id:c}})}removeList(c){return this.delete("lists/:id",void 0,{params:{id:c}})}addListMember(c,f){return this.post("lists/:id/members",{user_id:f},{params:{id:c}})}removeListMember(c,f){return this.delete("lists/:id/members/:user_id",void 0,{params:{id:c,user_id:f}})}subscribeToList(c,f){return this.post("users/:id/followed_lists",{list_id:f},{params:{id:c}})}unsubscribeOfList(c,f){return this.delete("users/:id/followed_lists/:list_id",void 0,{params:{id:c,list_id:f}})}pinList(c,f){return this.post("users/:id/pinned_lists",{list_id:f},{params:{id:c}})}unpinList(c,f){return this.delete("users/:id/pinned_lists/:list_id",void 0,{params:{id:c,list_id:f}})}sendDmInConversation(c,f){return this.post("dm_conversations/:dm_conversation_id/messages",f,{params:{dm_conversation_id:c}})}sendDmToParticipant(c,f){return this.post("dm_conversations/with/:participant_id/messages",f,{params:{participant_id:c}})}createDmConversation(c){return this.post("dm_conversations",c)}}class zF extends UR{constructor(){super(...arguments);this._prefix=fR}get readWrite(){return this}}var SF=zF;class MF extends YR{constructor(){super(...arguments);this._prefix=Gf}get readWrite(){return this}get labs(){if(this._labs)return this._labs;return this._labs=new SF(this)}}var BF=MF;class W0 extends Wf{get v1(){if(this._v1)return this._v1;return this._v1=new GR(this)}get v2(){if(this._v2)return this._v2;return this._v2=new vR(this)}async currentUser(c=!1){return await this.getCurrentUserObject(c)}async currentUserV2(c=!1){return await this.getCurrentUserV2Object(c)}search(c,f){return this.v2.search(c,f)}async generateAuthLink(c="oob",{authAccessType:f,linkMode:R="authenticate",forceLogin:h,screenName:$}={}){let H=await this.post("https://api.x.com/oauth/request_token",{oauth_callback:c,x_auth_access_type:f}),A=`https://api.x.com/oauth/${R}?oauth_token=${encodeURIComponent(H.oauth_token)}`;if(h!==void 0)A+=`&force_login=${encodeURIComponent(h)}`;if($!==void 0)A+=`&screen_name=${encodeURIComponent($)}`;if(this._requestMaker.hasPlugins())this._requestMaker.applyPluginMethod("onOAuth1RequestToken",{client:this._requestMaker,url:A,oauthResult:H});return{url:A,...H}}async login(c){let f=this.getActiveTokens();if(f.type!=="oauth-1.0a")throw Error("You must setup TwitterApi instance with consumer keys to accept OAuth 1.0 login");let R=await this.post("https://api.x.com/oauth/access_token",{oauth_token:f.accessToken,oauth_verifier:c}),h=new this.constructor({appKey:f.appKey,appSecret:f.appSecret,accessToken:R.oauth_token,accessSecret:R.oauth_token_secret},this._requestMaker.clientSettings);return{accessToken:R.oauth_token,accessSecret:R.oauth_token_secret,userId:R.user_id,screenName:R.screen_name,client:h}}async appLogin(){let c=this.getActiveTokens();if(c.type!=="oauth-1.0a")throw Error("You must setup TwitterApi instance with consumer keys to accept app-only login");let R=await new this.constructor({username:c.appKey,password:c.appSecret},this._requestMaker.clientSettings).post("https://api.x.com/oauth2/token",{grant_type:"client_credentials"});return new this.constructor(R.access_token,this._requestMaker.clientSettings)}generateOAuth2AuthLink(c,f={}){var R,h;if(!this._requestMaker.clientId)throw Error("Twitter API instance is not initialized with client ID. You can find your client ID in Twitter Developer Portal. Please build an instance with: new TwitterApi({ clientId: '<yourClientId>' })");let $=(R=f.state)!==null&&R!==void 0?R:wf.generateRandomString(32),H=wf.getCodeVerifier(),A=wf.getCodeChallengeFromVerifier(H),G=(h=f.scope)!==null&&h!==void 0?h:"",y=Array.isArray(G)?G.join(" "):G,F=new URL("https://x.com/i/oauth2/authorize"),U={response_type:"code",client_id:this._requestMaker.clientId,redirect_uri:c,state:$,code_challenge:A,code_challenge_method:"s256",scope:y};xc.addQueryParamsToUrl(F,U);let N={url:F.toString(),state:$,codeVerifier:H,codeChallenge:A};if(this._requestMaker.hasPlugins())this._requestMaker.applyPluginMethod("onOAuth2RequestToken",{client:this._requestMaker,result:N,redirectUri:c});return N}async loginWithOAuth2({code:c,codeVerifier:f,redirectUri:R}){if(!this._requestMaker.clientId)throw Error("Twitter API instance is not initialized with client ID. Please build an instance with: new TwitterApi({ clientId: '<yourClientId>' })");let h=await this.post("https://api.x.com/2/oauth2/token",{code:c,code_verifier:f,redirect_uri:R,grant_type:"authorization_code",client_id:this._requestMaker.clientId,client_secret:this._requestMaker.clientSecret});return this.parseOAuth2AccessTokenResult(h)}async refreshOAuth2Token(c){if(!this._requestMaker.clientId)throw Error("Twitter API instance is not initialized with client ID. Please build an instance with: new TwitterApi({ clientId: '<yourClientId>' })");let f=await this.post("https://api.x.com/2/oauth2/token",{refresh_token:c,grant_type:"refresh_token",client_id:this._requestMaker.clientId,client_secret:this._requestMaker.clientSecret});return this.parseOAuth2AccessTokenResult(f)}async revokeOAuth2Token(c,f="access_token"){if(!this._requestMaker.clientId)throw Error("Twitter API instance is not initialized with client ID. Please build an instance with: new TwitterApi({ clientId: '<yourClientId>' })");return await this.post("https://api.x.com/2/oauth2/revoke",{client_id:this._requestMaker.clientId,client_secret:this._requestMaker.clientSecret,token:c,token_type_hint:f})}parseOAuth2AccessTokenResult(c){let f=new this.constructor(c.access_token,this._requestMaker.clientSettings),R=c.scope.split(" ").filter((h)=>h);return{client:f,expiresIn:c.expires_in,accessToken:c.access_token,scope:R,refreshToken:c.refresh_token}}}class v0 extends W0{get v1(){if(this._v1)return this._v1;return this._v1=new yR(this)}get v2(){if(this._v2)return this._v2;return this._v2=new YR(this)}get readOnly(){return this}}class W1 extends Ic{constructor(){super(...arguments);this._prefix=RR}}class v1 extends W1{constructor(){super(...arguments);this._prefix=RR}get readOnly(){return this}}class U1 extends Ic{constructor(){super(...arguments);this._prefix=hR}}class Y1 extends U1{constructor(){super(...arguments);this._prefix=hR}get readOnly(){return this}}class XF extends Y1{constructor(){super(...arguments);this._prefix=hR}get readWrite(){return this}}var QF=XF;class DF extends v1{constructor(){super(...arguments);this._prefix=RR}get readWrite(){return this}get sandbox(){if(this._sandbox)return this._sandbox;return this._sandbox=new QF(this)}}var wF=DF;class I4 extends v0{get v1(){if(this._v1)return this._v1;return this._v1=new A1(this)}get v2(){if(this._v2)return this._v2;return this._v2=new BF(this)}get readWrite(){return this}get ads(){if(this._ads)return this._ads;return this._ads=new wF(this)}static getErrors(c){var f;if(typeof c!=="object")return[];if(!("data"in c))return[];return(f=c.data.errors)!==null&&f!==void 0?f:[]}static getProfileImageInSize(c,f){let R=c.split("/").pop(),h=["normal","bigger","mini"],$=c;for(let A of h)if(R.includes(`_${A}`)){$=c.replace(`_${A}`,"");break}if(f==="original")return $;let H=$.lastIndexOf(".");if(H!==-1){let A=$.slice(H+1);return $.slice(0,H)+"_"+f+"."+A}else return $+"_"+f}}var yJ={clientId:process.env.X_CLIENT_ID,clientSecret:process.env.X_SECRET,redirectPath:"/auth/oauth/x/callback",scope:["tweet.read","users.read","offline.access"]};class LF extends cR{config;client;oauthStates=new Map;constructor(c={}){super();this.config={...yJ,...c},this.client=new I4({clientId:this.config.clientId,clientSecret:this.config.clientSecret})}getRedirectUrl(){let{url:c,codeVerifier:f,state:R}=this.client.generateOAuth2AuthLink(`${process.env.HOST_NAME}${this.config.redirectPath}`,{scope:this.config.scope});return this.oauthStates.set(R,{state:R,codeVerifier:f}),jF.to(c),c}async onCallback(c){let f=c.search.get("code"),R=c.search.get("state"),h=this.oauthStates.get(R);if(!h)throw Error("Invalid or expired OAuth state");let $=await this.client.loginWithOAuth2({code:f,codeVerifier:h.codeVerifier,redirectUri:`${process.env.HOST_NAME}${this.config.redirectPath}`});this.oauthStates.delete(R);let{data:H}=await $.client.v2.me({"user.fields":["name","username","entities"]}),{name:A,email:G,id:y="",username:F}=H??{};return{name:A,email:G,username:F,providerId:y}}}class xF extends l{kernel;jobs=[];constructor(c){super();this.kernel=c}boot(){}}class IF{name;cron;callback(){}onTick(){}onComplete(){}static exp(c){return c}}export{Lf as Z,U0 as _,P4 as $,ly as aa,W6 as ba,Yh as ca,Nh as da,v6 as ea,_h as fa,nh as ga,sy as ha,iy as ia,ky as ja,dy as ka,_y as la,oy as ma,oh as na,ah as oa,ay as pa,cR as qa,ty as ra,LF as sa,xF as ta,IF as ua};
75
75
 
76
- //# debugId=CD88A7B68261742864756E2164756E21
76
+ //# debugId=4FE9B26D74E4D0B564756E2164756E21