@localazy/cli
Version:
This package is Localazy CLI tool for app and software localization and translation.
1 lines • 74.8 kB
JavaScript
!function(_,kotlin_kotlin,kotlin_org_jetbrains_kotlinx_kotlinx_io_bytestring){var imul=Math.imul,toLong=kotlin_kotlin.$_$.vd,IndexOutOfBoundsException_init_$Create$=kotlin_kotlin.$_$.f2,Long=kotlin_kotlin.$_$.hj,IllegalArgumentException_init_$Create$=kotlin_kotlin.$_$.w1,toString=kotlin_kotlin.$_$.xd,_Char___init__impl__6a9atx=kotlin_kotlin.$_$.v2,charArrayOf=kotlin_kotlin.$_$.bc,protoOf=kotlin_kotlin.$_$.td,THROW_CCE=kotlin_kotlin.$_$.nj,Annotation=kotlin_kotlin.$_$.ti,initMetadataForClass=kotlin_kotlin.$_$.rc,VOID=kotlin_kotlin.$_$.i,ensureNotNull=kotlin_kotlin.$_$.fk,toShort=kotlin_kotlin.$_$.wd,Unit_getInstance=kotlin_kotlin.$_$.p5,StringBuilder_init_$Create$=kotlin_kotlin.$_$.j1,UnsafeByteStringOperations_getInstance=kotlin_org_jetbrains_kotlinx_kotlinx_io_bytestring.$_$.b,IllegalStateException_init_$Create$=kotlin_kotlin.$_$.b2,AutoCloseable=kotlin_kotlin.$_$.ui,initMetadataForInterface=kotlin_kotlin.$_$.vc,objectCreate=kotlin_kotlin.$_$.sd,initMetadataForCompanion=kotlin_kotlin.$_$.sc,arrayCopy=kotlin_kotlin.$_$.o6,toByte=kotlin_kotlin.$_$.ud,IllegalArgumentException_init_$Create$_0=kotlin_kotlin.$_$.u1,initMetadataForObject=kotlin_kotlin.$_$.xc,Char__toInt_impl_vasixd=kotlin_kotlin.$_$.b3,charSequenceGet=kotlin_kotlin.$_$.dc,StringBuilder_init_$Create$_0=kotlin_kotlin.$_$.k1,charSequenceLength=kotlin_kotlin.$_$.ec,endsWith=kotlin_kotlin.$_$.xf,startsWith=kotlin_kotlin.$_$.dh,charArray=kotlin_kotlin.$_$.cc,numberToChar=kotlin_kotlin.$_$.od,concatToString=kotlin_kotlin.$_$.of,Char=kotlin_kotlin.$_$.wi,Exception_init_$Init$=kotlin_kotlin.$_$.o1,captureStack=kotlin_kotlin.$_$.ac,Exception_init_$Init$_0=kotlin_kotlin.$_$.p1,Exception_init_$Init$_1=kotlin_kotlin.$_$.n1,Exception_init_$Init$_2=kotlin_kotlin.$_$.r1,Exception=kotlin_kotlin.$_$.ej,UnsupportedOperationException_init_$Create$=kotlin_kotlin.$_$.r2,KProperty0=kotlin_kotlin.$_$.re,getPropertyCallableRef=kotlin_kotlin.$_$.oc,lazy=kotlin_kotlin.$_$.mk,ArrayList_init_$Create$=kotlin_kotlin.$_$.p,asReversed=kotlin_kotlin.$_$.q6,contains=kotlin_kotlin.$_$.qf,getStringHashCode=kotlin_kotlin.$_$.pc,HEX_DIGIT_CHARS,properties_initialized__Util_kt_67kc5b,Companion_instance,AlwaysSharedCopyTracker_instance,HEX_DIGIT_BYTES,properties_initialized_Sinks_kt_u7wmts,SegmentReadContextImpl,SegmentWriteContextImpl,BufferIterationContextImpl,UnsafeBufferOperations_instance,properties_initialized_UnsafeBufferOperations_kt_2xfgoc,SegmentPool_instance,path$delegate,fs$delegate,os$delegate,buffer$delegate,properties_initialized_nodeModulesJs_kt_oooz8e,SystemFileSystem,isWindows,properties_initialized_FileSystemNodeJs_kt_vmmd20,SystemPathSeparator$delegate,properties_initialized_PathsNodeJs_kt_2u5gc7;function readAtMostTo$default(t,e,_,n){return e=e===VOID?0:e,_=_===VOID?t.length:_,n===VOID?this.readAtMostTo_kub29z_k$(t,e,_):n.readAtMostTo_kub29z_k$.call(this,t,e,_)}function write$default(t,e,_,n){return e=e===VOID?0:e,_=_===VOID?t.length:_,n===VOID?(this.write_ti570x_k$(t,e,_),Unit_getInstance()):n.write_ti570x_k$.call(this,t,e,_)}function delete$default(t,e,_){return e=e===VOID||e,_===VOID?(this.delete_wo7h84_k$(t,e),Unit_getInstance()):_.delete_wo7h84_k$.call(this,t,e)}function createDirectories$default(t,e,_){return e=e!==VOID&&e,_===VOID?(this.createDirectories_7nzr80_k$(t,e),Unit_getInstance()):_.createDirectories_7nzr80_k$.call(this,t,e)}function sink$default(t,e,_){return e=e!==VOID&&e,_===VOID?this.sink_ed8sos_k$(t,e):_.sink_ed8sos_k$.call(this,t,e)}function get_HEX_DIGIT_CHARS(){return _init_properties__Util_kt__g8tcl9(),HEX_DIGIT_CHARS}function minOf(t,e){_init_properties__Util_kt__g8tcl9();e=toLong(e);t.compareTo_9jj042_k$(e)}function and(t,e){_init_properties__Util_kt__g8tcl9()}function and_0(t,e){_init_properties__Util_kt__g8tcl9(),toLong(t).and_4spn93_k$(e)}function checkBounds(t,e,_){if(_init_properties__Util_kt__g8tcl9(),e.compareTo_9jj042_k$(new Long(0,0))<0||0<_.compareTo_9jj042_k$(t))throw IndexOutOfBoundsException_init_$Create$("startIndex ("+e.toString()+") and endIndex ("+_.toString()+") are not within the range [0..size("+t.toString()+"))");if(0<e.compareTo_9jj042_k$(_))throw IllegalArgumentException_init_$Create$("startIndex ("+e.toString()+") > endIndex ("+_.toString()+")")}function checkByteCount(t){if(_init_properties__Util_kt__g8tcl9(),!(0<=t.compareTo_9jj042_k$(new Long(0,0))))throw t="byteCount ("+t.toString()+") < 0",IllegalArgumentException_init_$Create$(toString(t))}function checkBounds_0(t,e,_){_init_properties__Util_kt__g8tcl9(),checkBounds(toLong(t),toLong(e),toLong(_))}function checkOffsetAndCount(t,e,_){if(_init_properties__Util_kt__g8tcl9(),e.compareTo_9jj042_k$(new Long(0,0))<0||0<e.compareTo_9jj042_k$(t)||t.minus_mfbszm_k$(e).compareTo_9jj042_k$(_)<0||_.compareTo_9jj042_k$(new Long(0,0))<0)throw IllegalArgumentException_init_$Create$("offset ("+e.toString()+") and byteCount ("+_.toString()+") are not within the range [0..size("+t.toString()+"))")}function minOf_0(t,e){_init_properties__Util_kt__g8tcl9();t=toLong(t);t.compareTo_9jj042_k$(e)}function shr(t,e){_init_properties__Util_kt__g8tcl9()}function _init_properties__Util_kt__g8tcl9(){properties_initialized__Util_kt_67kc5b||(properties_initialized__Util_kt_67kc5b=!0,HEX_DIGIT_CHARS=charArrayOf([_Char___init__impl__6a9atx(48),_Char___init__impl__6a9atx(49),_Char___init__impl__6a9atx(50),_Char___init__impl__6a9atx(51),_Char___init__impl__6a9atx(52),_Char___init__impl__6a9atx(53),_Char___init__impl__6a9atx(54),_Char___init__impl__6a9atx(55),_Char___init__impl__6a9atx(56),_Char___init__impl__6a9atx(57),_Char___init__impl__6a9atx(97),_Char___init__impl__6a9atx(98),_Char___init__impl__6a9atx(99),_Char___init__impl__6a9atx(100),_Char___init__impl__6a9atx(101),_Char___init__impl__6a9atx(102)]))}function UnsafeIoApi(){}function InternalIoApi(){}function DelicateIoApi(){}function throwEof(t,e){throw EOFException_init_$Create$_0("Buffer doesn't contain required number of bytes (size: "+t.get_size_woubt6_k$().toString()+", required: "+e.toString()+")")}function pushSegment(t,e,_){null==t.head_1?(t.head_1=e,t.tail_1=e):_?(t.tail_1=ensureNotNull(t.tail_1).push_h69db4_k$(e).compact_he236d_k$(),null==ensureNotNull(t.tail_1).get_prev_d7or6k_k$()&&(t.head_1=t.tail_1)):t.tail_1=ensureNotNull(t.tail_1).push_h69db4_k$(e)}function Buffer(){this.head_1=null,this.tail_1=null,this.sizeMut_1=new Long(0,0)}function seek(t,e,_){if(null==t.head_1)return _(null,new Long(-1,-1));if(t.get_size_woubt6_k$().minus_mfbszm_k$(e).compareTo_9jj042_k$(e)<0){for(var n=t.tail_1,i=t.get_size_woubt6_k$();null!=n&&0<i.compareTo_9jj042_k$(e)&&!((i=i.minus_mfbszm_k$(toLong(n.get_limit_kzbf7q_k$()-n.get_pos_c7hn7x_k$()|0))).compareTo_9jj042_k$(e)<=0);)n=n.get_prev_d7or6k_k$();_(n,i)}else{for(var o=t.head_1,r=new Long(0,0);null!=o;){var a=r,s=o.get_limit_kzbf7q_k$()-o.get_pos_c7hn7x_k$()|0,a=a.plus_r93sks_k$(toLong(s));if(0<a.compareTo_9jj042_k$(e))break;o=o.get_next_dym7ms_k$(),r=a}_(o,r)}}function readByteString(t,e){return UnsafeByteStringOperations_getInstance().wrapUnsafe_3fobxs_k$(readByteArray_0(t,e))}function buffered(t){return new RealSource(t)}function _get_upstream__8b4500(t){t.upstream_1}function _get_buffer__tgqkad(t){t.buffer_1}function _set_expectedSegment__ufl0ui(t,e){t.expectedSegment_1=e}function _get_expectedSegment__uhstm2(t){t.expectedSegment_1}function _set_expectedPos__7eepj(t,e){t.expectedPos_1=e}function _get_expectedPos__u2zrmd(t){t.expectedPos_1}function _set_closed__kdb0et(t,e){t.closed_1=e}function _get_closed__iwkfs1(t){t.closed_1}function _set_pos__4wcab5(t,e){t.pos_1=e}function _get_pos__e6evgd(t){t.pos_1}function PeekSource(t){this.upstream_1=t,this.buffer_1=this.upstream_1.get_buffer_bmaafd_k$(),this.expectedSegment_1=this.buffer_1.get_head_1rxik1_k$();t=this.buffer_1.get_head_1rxik1_k$(),t=null==t?null:t.get_pos_c7hn7x_k$();this.expectedPos_1=null==t?-1:t,this.closed_1=!1,this.pos_1=new Long(0,0)}function RawSource(){}function _get_bufferField__cx5nm1(t){t.bufferField_1}function checkNotClosed(t){if(t.closed_1)throw IllegalStateException_init_$Create$(toString("Source is closed."))}function RealSource(t){this.source_1=t,this.closed_1=!1,this.bufferField_1=new Buffer}function _get_data__d5abxd(t){t.data_1}function Segment_init_$Init$(t){return Segment.call(t),t.data_1=new Int8Array(8192),t.owner_1=!0,t.copyTracker_1=null,t}function Segment_init_$Create$(){return Segment_init_$Init$(objectCreate(protoOf(Segment)))}function Segment_init_$Init$_0(t,e,_,n,i,o){return Segment.call(o),o.data_1=t,o.pos_1=e,o.limit_1=_,o.copyTracker_1=n,o.owner_1=i,o}function Segment_init_$Create$_0(t,e,_,n,i){return Segment_init_$Init$_0(t,e,_,n,i,objectCreate(protoOf(Segment)))}function Companion(){(Companion_instance=this).SIZE_1=8192,this.SHARE_MINIMUM_1=1024}function Companion_getInstance(){return null==Companion_instance&&new Companion,Companion_instance}function Segment(){Companion_getInstance(),this.pos_1=0,this.limit_1=0,this.copyTracker_1=null,this.owner_1=!1,this.next_1=null,this.prev_1=null}function SegmentCopyTracker(){}function isEmpty(t){return 0===t.get_size_woubt6_k$()}function AlwaysSharedCopyTracker(){AlwaysSharedCopyTracker_instance=this,SegmentCopyTracker.call(this)}function AlwaysSharedCopyTracker_getInstance(){return null==AlwaysSharedCopyTracker_instance&&new AlwaysSharedCopyTracker,AlwaysSharedCopyTracker_instance}function Sink(){}function get_HEX_DIGIT_BYTES(){_init_properties_Sinks_kt__92ml72()}function writeToInternalBuffer(t,e){_init_properties_Sinks_kt__92ml72(),e(t.get_buffer_bmaafd_k$()),t.hintEmit_6b2e5m_k$()}function _init_properties_Sinks_kt__92ml72(){if(!properties_initialized_Sinks_kt_u7wmts){properties_initialized_Sinks_kt_u7wmts=!0;for(var t=0,e=new Int8Array(16);t<16;){var _,n,i=t;_=i<10?(n=_Char___init__impl__6a9atx(48),Char__toInt_impl_vasixd(n)):(n=_Char___init__impl__6a9atx(97),Char__toInt_impl_vasixd(n)-10|0),e[i]=toByte(_+i|0),t=t+1|0}HEX_DIGIT_BYTES=e}}function Source(){}function readByteArray(t){return readByteArrayImpl(t,-1)}function readByteArrayImpl(t,e){var _=e;if(-1===e){for(var n=new Long(2147483647,0);t.get_buffer_bmaafd_k$().get_size_woubt6_k$().compareTo_9jj042_k$(new Long(2147483647,0))<0&&t.request_mpoy7z_k$(n);)n=n.times_nfzjiw_k$(toLong(2));if(!(t.get_buffer_bmaafd_k$().get_size_woubt6_k$().compareTo_9jj042_k$(new Long(2147483647,0))<0))throw i="Can't create an array of size "+t.get_buffer_bmaafd_k$().get_size_woubt6_k$().toString(),IllegalStateException_init_$Create$(toString(i));_=t.get_buffer_bmaafd_k$().get_size_woubt6_k$().toInt_1tsl84_k$()}else t.require_28r0pl_k$(toLong(e));var i=new Int8Array(_);return readTo(t.get_buffer_bmaafd_k$(),i),i}function readTo(t,e,_,n){_=_===VOID?0:_,n=n===VOID?e.length:n;for(var i=e.length,o=(checkBounds(toLong(i),toLong(_),toLong(n)),_);o<n;){var r=t.readAtMostTo_kub29z_k$(e,o,n);if(-1===r)throw EOFException_init_$Create$_0("Source exhausted before reading "+(n-_|0)+" bytes. Only "+r+" bytes were read.");o=o+r|0}}function readByteArray_0(t,e){var _=toLong(e);if(0<=_.compareTo_9jj042_k$(new Long(0,0)))return readByteArrayImpl(t,e);throw t="byteCount ("+_.toString()+") < 0",IllegalArgumentException_init_$Create$(toString(t))}function readString(t){return t.request_mpoy7z_k$(new Long(-1,2147483647)),commonReadUtf8(t.get_buffer_bmaafd_k$(),t.get_buffer_bmaafd_k$().get_size_woubt6_k$())}function readString_0(t,e){return t.require_28r0pl_k$(e),commonReadUtf8(t.get_buffer_bmaafd_k$(),e)}function readString_1(t){return commonReadUtf8(t,t.get_size_woubt6_k$())}function commonReadUtf8(t,e){if(e.equals(new Long(0,0)))return"";UnsafeBufferOperations_getInstance();{var _,n,i,o,r,a=t.get_head_1rxik1_k$();if(null!=a)return get_SegmentReadContextImpl(),0<=toLong(a.get_size_woubt6_k$()).compareTo_9jj042_k$(e)?(_=a.dataAsByteArray_g1m4im_k$(!(r="")),n=a.get_pos_c7hn7x_k$(),i=a.get_limit_kzbf7q_k$(),o=n+e.toInt_1tsl84_k$()|0,r=commonToUtf8String(_,n,Math.min(i,o)),t.skip_bgd4sf_k$(e),r):commonToUtf8String(readByteArray_0(t,e.toInt_1tsl84_k$()))}throw IllegalStateException_init_$Create$(toString("Unreacheable"))}function writeString(t,e,_,n){_=_===VOID?0:_,n=n===VOID?e.length:n;for(var i=e.length,o=(checkBounds(toLong(i),toLong(_),toLong(n)),t.get_buffer_bmaafd_k$()),r=_;r<n;){var a=charSequenceGet(e,r);if((c=Char__toInt_impl_vasixd(a))<128){UnsafeBufferOperations_getInstance();var s=o.writableSegment_voqx71_k$(1),l=get_SegmentWriteContextImpl(),u=0|-r,a=r+s.get_remainingCapacity_c94947_k$()|0,f=Math.min(n,a),a=r;for(r=a+1|0,l.setUnchecked_b2f64i_k$(s,u+a|0,toByte(c));r<f;){var c,$=charSequenceGet(e,r);if(128<=(c=Char__toInt_impl_vasixd($)))break;$=r,r=$+1|0;l.setUnchecked_b2f64i_k$(s,u+$|0,toByte(c))}a=r+u|0;if(1==a){s.set_limit_3yu7ea_k$(s.get_limit_kzbf7q_k$()+a|0);var k=o.get_sizeMut_lwlia2_k$().plus_r93sks_k$(toLong(a));o.set_sizeMut_cp56bw_k$(k)}else{if(!(0<=a&&a<=s.get_remainingCapacity_c94947_k$()))throw k="Invalid number of bytes written: "+a+". Should be in 0.."+s.get_remainingCapacity_c94947_k$(),IllegalStateException_init_$Create$(toString(k));0!=a?(s.set_limit_3yu7ea_k$(s.get_limit_kzbf7q_k$()+a|0),a=o.get_sizeMut_lwlia2_k$().plus_r93sks_k$(toLong(a)),o.set_sizeMut_cp56bw_k$(a)):isEmpty(s)&&o.recycleTail_61sxi3_k$()}}else if(c<2048){UnsafeBufferOperations_getInstance();t:{var p=o.writableSegment_voqx71_k$(2),p=(get_SegmentWriteContextImpl().setUnchecked_3svw1y_k$(p,0,toByte(c>>6|192),toByte(63&c|128)),p.set_limit_3yu7ea_k$(p.get_limit_kzbf7q_k$()+2|0),o.get_sizeMut_lwlia2_k$().plus_r93sks_k$(toLong(2)));o.set_sizeMut_cp56bw_k$(p)}r=r+1|0}else if(c<55296||57343<c){UnsafeBufferOperations_getInstance();t:{var g=o.writableSegment_voqx71_k$(3),g=(get_SegmentWriteContextImpl().setUnchecked_ofazem_k$(g,0,toByte(c>>12|224),toByte(c>>6&63|128),toByte(63&c|128)),g.set_limit_3yu7ea_k$(g.get_limit_kzbf7q_k$()+3|0),o.get_sizeMut_lwlia2_k$().plus_r93sks_k$(toLong(3)));o.set_sizeMut_cp56bw_k$(g)}r=r+1|0}else{a=(r+1|0)<n?(a=charSequenceGet(e,r+1|0),Char__toInt_impl_vasixd(a)):0;if(56319<c||!(56320<=a&&a<=57343)){var h=_Char___init__impl__6a9atx(63),h=Char__toInt_impl_vasixd(h);o.writeByte_9ih3z3_k$(toByte(h)),r=r+1|0}else{var m=65536+((1023&c)<<10|1023&a)|0;UnsafeBufferOperations_getInstance();t:{var d=o.writableSegment_voqx71_k$(4),d=(get_SegmentWriteContextImpl().setUnchecked_7scgvu_k$(d,0,toByte(m>>18|240),toByte(m>>12&63|128),toByte(m>>6&63|128),toByte(63&m|128)),d.set_limit_3yu7ea_k$(d.get_limit_kzbf7q_k$()+4|0),o.get_sizeMut_lwlia2_k$().plus_r93sks_k$(toLong(4)));o.set_sizeMut_cp56bw_k$(d)}r=r+2|0}}}t.hintEmit_6b2e5m_k$()}function commonWriteUtf8(t,e,_,n){for(var i=e;i<_;){var o=n(i).value_1;if((u=Char__toInt_impl_vasixd(o))<128){UnsafeBufferOperations_getInstance();var r=t.writableSegment_voqx71_k$(1),a=get_SegmentWriteContextImpl(),s=0|-i,o=i+r.get_remainingCapacity_c94947_k$()|0,l=Math.min(_,o),o=i;for(i=o+1|0,a.setUnchecked_b2f64i_k$(r,s+o|0,toByte(u));i<l;){var u,f=n(i).value_1;if(128<=(u=Char__toInt_impl_vasixd(f)))break;f=i,i=f+1|0;a.setUnchecked_b2f64i_k$(r,s+f|0,toByte(u))}o=i+s|0;if(1==o){r.set_limit_3yu7ea_k$(r.get_limit_kzbf7q_k$()+o|0);var c=t.get_sizeMut_lwlia2_k$().plus_r93sks_k$(toLong(o));t.set_sizeMut_cp56bw_k$(c)}else{if(!(0<=o&&o<=r.get_remainingCapacity_c94947_k$()))throw c="Invalid number of bytes written: "+o+". Should be in 0.."+r.get_remainingCapacity_c94947_k$(),IllegalStateException_init_$Create$(toString(c));0!=o?(r.set_limit_3yu7ea_k$(r.get_limit_kzbf7q_k$()+o|0),o=t.get_sizeMut_lwlia2_k$().plus_r93sks_k$(toLong(o)),t.set_sizeMut_cp56bw_k$(o)):isEmpty(r)&&t.recycleTail_61sxi3_k$()}}else if(u<2048){UnsafeBufferOperations_getInstance();t:{var $=t.writableSegment_voqx71_k$(2),$=(get_SegmentWriteContextImpl().setUnchecked_3svw1y_k$($,0,toByte(u>>6|192),toByte(63&u|128)),$.set_limit_3yu7ea_k$($.get_limit_kzbf7q_k$()+2|0),t.get_sizeMut_lwlia2_k$().plus_r93sks_k$(toLong(2)));t.set_sizeMut_cp56bw_k$($)}i=i+1|0}else if(u<55296||57343<u){UnsafeBufferOperations_getInstance();t:{var k=t.writableSegment_voqx71_k$(3),k=(get_SegmentWriteContextImpl().setUnchecked_ofazem_k$(k,0,toByte(u>>12|224),toByte(u>>6&63|128),toByte(63&u|128)),k.set_limit_3yu7ea_k$(k.get_limit_kzbf7q_k$()+3|0),t.get_sizeMut_lwlia2_k$().plus_r93sks_k$(toLong(3)));t.set_sizeMut_cp56bw_k$(k)}i=i+1|0}else{o=(i+1|0)<_?(o=n(i+1|0).value_1,Char__toInt_impl_vasixd(o)):0;if(56319<u||!(56320<=o&&o<=57343)){var p=_Char___init__impl__6a9atx(63),p=Char__toInt_impl_vasixd(p);t.writeByte_9ih3z3_k$(toByte(p)),i=i+1|0}else{var g=65536+((1023&u)<<10|1023&o)|0;UnsafeBufferOperations_getInstance();t:{var h=t.writableSegment_voqx71_k$(4),h=(get_SegmentWriteContextImpl().setUnchecked_7scgvu_k$(h,0,toByte(g>>18|240),toByte(g>>12&63|128),toByte(g>>6&63|128),toByte(63&g|128)),h.set_limit_3yu7ea_k$(h.get_limit_kzbf7q_k$()+4|0),t.get_sizeMut_lwlia2_k$().plus_r93sks_k$(toLong(4)));t.set_sizeMut_cp56bw_k$(h)}i=i+2|0}}}}function FileSystem(){}function SystemFileSystemImpl(){}function FileMetadata(t,e,_){t=t!==VOID&&t,e=e!==VOID&&e,_=_===VOID?new Long(0,0):_,this.isRegularFile_1=t,this.isDirectory_1=e,this.size_1=_}function Path(t,e){return Path_0(t.toString(),e.slice())}function removeTrailingSeparators(t,e){return(e=e===VOID?get_isWindows():e)?(e=1<t.length?charSequenceGet(t,1)===_Char___init__impl__6a9atx(58)?3:isUnc(t)?2:1:1,removeTrailingSeparatorsWindows(e,t)):removeTrailingSeparatorsUnix(t)}function Path_0(t,e){for(var _=StringBuilder_init_$Create$_0(),n=(_.append_22ad7x_k$(t),0),i=e.length;n<i;){var o=e[n],n=n+1|0,r=0<charSequenceLength(_)&&!endsWith(_,get_SystemPathSeparator());r&&_.append_am5a4z_k$(get_SystemPathSeparator()),_.append_22ad7x_k$(o)}return Path_2(_.toString())}function isUnc(t){return!(t.length<2)&&(startsWith(t,"\\\\")||!!startsWith(t,"//"))}function removeTrailingSeparatorsWindows(t,e){if(!(1<=t))throw IllegalArgumentException_init_$Create$(toString("Failed requirement."));for(var _=e.length;t<_;){var n=charSequenceGet(e,_-1|0);if(n!==_Char___init__impl__6a9atx(92)&&n!==_Char___init__impl__6a9atx(47))break;_=_-1|0}var i=_;return e.substring(0,i)}function removeTrailingSeparatorsUnix(t){for(var e=t.length;1<e&&charSequenceGet(t,e-1|0)===_Char___init__impl__6a9atx(47);)e=e-1|0;var _=e;return t.substring(0,_)}function commonToUtf8String(t,e,_){if(_=_===VOID?t.length:_,(e=e===VOID?0:e)<0||_>t.length||_<e)throw IndexOutOfBoundsException_init_$Create$("size="+t.length+" beginIndex="+e+" endIndex="+_);for(var n=charArray(_-e|0),i=0,o=e;o<_;){var r,a,s,l,u,f,c,$,k,p,g,h,m,d,S,w,y,b,x,I,C,O,v,z,j=t[o];if(0<=j){var E=numberToChar(j),L=i;for(i=L+1|0,n[L]=E,o=o+1|0;o<_&&0<=t[o];){var B=o,o=B+1|0,B=numberToChar(t[B]),T=i,i=T+1|0;n[T]=B}}else o=j>>5==-2?(f=_<=((E=L=o)+1|0)?(a=numberToChar(65533),i=(r=i)+1|0,n[r]=a,1):(r=t[E],128!=(192&(a=t[E+1|0]))?(l=numberToChar(65533),i=(s=i)+1|0,n[s]=l,1):((s=3968^a^r<<6)<128?(l=numberToChar(65533),i=(u=i)+1|0,n[u]=l):(u=numberToChar(s),i=(f=i)+1|0,n[f]=u),2)),L+f|0):j>>4==-2?(m=_<=((d=S=o)+2|0)?($=numberToChar(65533),i=(c=i)+1|0,n[c]=$,_<=(d+1|0)||!(128==(192&t[d+1|0]))?1:2):(c=t[d],128!=(192&($=t[d+1|0]))?(p=numberToChar(65533),i=(k=i)+1|0,n[k]=p,1):128!=(192&(k=t[d+2|0]))?(p=numberToChar(65533),i=(d=i)+1|0,n[d]=p,2):((d=-123008^k^$<<6^c<<12)<2048?(h=numberToChar(65533),i=(g=i)+1|0,n[g]=h):55296<=d&&d<=57343?(g=numberToChar(65533),i=(h=i)+1|0,n[h]=g):(d=numberToChar(d),i=(m=i)+1|0,n[m]=d),3)),S+m|0):j>>3==-2?(j=_<=((S=d=o)+3|0)?(j=_Char___init__impl__6a9atx(65533),i=(w=i)+1|0,n[w]=j,_<=(S+1|0)||!(128==(192&t[S+1|0]))?1:_<=(S+2|0)||!(128==(192&t[S+2|0]))?2:3):(w=t[S],128!=(192&(j=t[S+1|0]))?(b=_Char___init__impl__6a9atx(65533),i=(y=i)+1|0,n[y]=b,1):128!=(192&(y=t[S+2|0]))?(b=_Char___init__impl__6a9atx(65533),i=(x=i)+1|0,n[x]=b,2):128!=(192&(x=t[S+3|0]))?(C=_Char___init__impl__6a9atx(65533),i=(I=i)+1|0,n[I]=C,3):(1114111<(I=3678080^x^y<<6^j<<12^w<<18)?(C=_Char___init__impl__6a9atx(65533),i=(j=i)+1|0,n[j]=C):55296<=I&&I<=57343?(j=_Char___init__impl__6a9atx(65533),i=(O=i)+1|0,n[O]=j):I<65536?(O=_Char___init__impl__6a9atx(65533),i=(j=i)+1|0,n[j]=O):65533!=I?(j=numberToChar(55232+(I>>>10|0)|0),i=(v=i)+1|0,n[v]=j,v=numberToChar(56320+(1023&I)|0),i=(j=i)+1|0,n[j]=v):(j=_Char___init__impl__6a9atx(65533),i=(v=i)+1|0,n[v]=j),4)),d+j|0):(j=_Char___init__impl__6a9atx(65533),i=(z=i)+1|0,n[z]=j,o+1|0)}return concatToString(n,0,i)}function processUtf16Chars(t,e,_,n){for(var i=e;i<_;){var o,r,a,s,l,u,f,c,$,k=t[i];if(0<=k)for(n(new Char(numberToChar(k))),i=i+1|0;i<_&&0<=t[i];){var p=i,i=p+1|0;n(new Char(numberToChar(t[p])))}else i=k>>5==-2?(o=_<=((r=a=i)+1|0)||(o=t[r],128!=(192&(r=t[r+1|0])))?(n(new Char(numberToChar(65533))),1):(n(new Char(numberToChar((r=3968^r^o<<6)<128?65533:r))),2),a+o|0):k>>4==-2?(s=_<=((a=r=i)+2|0)?(n(new Char(numberToChar(65533))),_<=(a+1|0)||!(128==(192&t[a+1|0]))?1:2):(l=t[a],128!=(192&(s=t[a+1|0]))?(n(new Char(numberToChar(65533))),1):128!=(192&(u=t[a+2|0]))?(n(new Char(numberToChar(65533))),2):(n(new Char(numberToChar((u=-123008^u^s<<6^l<<12)<2048||55296<=u&&u<=57343?65533:u))),3)),r+s|0):k>>3==-2?($=_<=((u=l=i)+3|0)?(n(new Char(_Char___init__impl__6a9atx(65533))),_<=(u+1|0)||!(128==(192&t[u+1|0]))?1:_<=(u+2|0)||!(128==(192&t[u+2|0]))?2:3):(k=t[u],128!=(192&(f=t[u+1|0]))?(n(new Char(_Char___init__impl__6a9atx(65533))),1):128!=(192&($=t[u+2|0]))?(n(new Char(_Char___init__impl__6a9atx(65533))),2):128!=(192&(c=t[u+3|0]))?(n(new Char(_Char___init__impl__6a9atx(65533))),3):(!(1114111<(c=3678080^c^$<<6^f<<12^k<<18)||55296<=c&&c<=57343||c<65536||65533==c)?(n(new Char(numberToChar(55232+(c>>>10|0)|0))),n(new Char(numberToChar(56320+(1023&c)|0)))):n(new Char(_Char___init__impl__6a9atx(65533))),4)),l+$|0):(n(new Char(_Char___init__impl__6a9atx(65533))),i+1|0)}}function process2Utf8Bytes(t,e,_,n){_<=(e+1|0)?n(65533):(_=t[e],n(128!=(192&(n=t[e+1|0]))||(t=3968^n^_<<6)<128?65533:t))}function process3Utf8Bytes(t,e,_,n){_<=(e+2|0)?(n(65533),_<=(e+1|0)||t[e+1|0]):(_=t[e],n(128!=(192&(n=t[e+1|0]))||128!=(192&(t=t[e+2|0]))||(e=-123008^t^n<<6^_<<12)<2048||55296<=e&&e<=57343?65533:e))}function process4Utf8Bytes(t,e,_,n){if(_<=(e+3|0))return n(65533),_<=(e+1|0)||!(128==(192&t[e+1|0]))?void 0:void(_<=(e+2|0)||t[e+2|0]);var _=t[e],i=t[e+1|0];n(128!=(192&i)||128!=(192&(n=t[e+2|0]))||128!=(192&(t=t[e+3|0]))||1114111<(e=3678080^t^n<<6^i<<12^_<<18)||55296<=e&&e<=57343||e<65536?65533:e)}function isUtf8Continuation(t){}function get_SegmentReadContextImpl(){return _init_properties_UnsafeBufferOperations_kt__xw75gy(),SegmentReadContextImpl}function get_SegmentWriteContextImpl(){return _init_properties_UnsafeBufferOperations_kt__xw75gy(),SegmentWriteContextImpl}function get_BufferIterationContextImpl(){return _init_properties_UnsafeBufferOperations_kt__xw75gy(),BufferIterationContextImpl}function SegmentReadContext(){}function SegmentWriteContext(){}function BufferIterationContext(){}function UnsafeBufferOperations(){UnsafeBufferOperations_instance=this}function UnsafeBufferOperations_getInstance(){null==UnsafeBufferOperations_instance&&new UnsafeBufferOperations}function withData(t,e,_){_init_properties_UnsafeBufferOperations_kt__xw75gy(),_(e.dataAsByteArray_g1m4im_k$(!0),e.get_pos_c7hn7x_k$(),e.get_limit_kzbf7q_k$())}function SegmentReadContextImpl$1(){}function SegmentWriteContextImpl$1(){}function BufferIterationContextImpl$1(){}function _init_properties_UnsafeBufferOperations_kt__xw75gy(){properties_initialized_UnsafeBufferOperations_kt_2xfgoc||(properties_initialized_UnsafeBufferOperations_kt_2xfgoc=!0,SegmentReadContextImpl=new SegmentReadContextImpl$1,SegmentWriteContextImpl=new SegmentWriteContextImpl$1,BufferIterationContextImpl=new BufferIterationContextImpl$1)}function withCaughtException(t){try{return t(),null}catch(t){if(t instanceof Error)return t;throw t}}function IOException_init_$Init$(t){return Exception_init_$Init$(t),IOException.call(t),t}function IOException_init_$Create$(){var t=IOException_init_$Init$(objectCreate(protoOf(IOException)));return captureStack(t,IOException_init_$Create$),t}function IOException_init_$Init$_0(t,e){return Exception_init_$Init$_0(t,e),IOException.call(e),e}function IOException_init_$Create$_0(t){t=IOException_init_$Init$_0(t,objectCreate(protoOf(IOException)));return captureStack(t,IOException_init_$Create$_0),t}function IOException_init_$Init$_1(t,e){return Exception_init_$Init$_1(t,e),IOException.call(e),e}function IOException_init_$Create$_1(t){t=IOException_init_$Init$_1(t,objectCreate(protoOf(IOException)));return captureStack(t,IOException_init_$Create$_1),t}function IOException_init_$Init$_2(t,e,_){return Exception_init_$Init$_2(t,e,_),IOException.call(_),_}function IOException_init_$Create$_2(t,e){t=IOException_init_$Init$_2(t,e,objectCreate(protoOf(IOException)));return captureStack(t,IOException_init_$Create$_2),t}function IOException(){captureStack(this,IOException)}function EOFException_init_$Init$(t){return IOException_init_$Init$(t),EOFException.call(t),t}function EOFException_init_$Create$(){var t=EOFException_init_$Init$(objectCreate(protoOf(EOFException)));return captureStack(t,EOFException_init_$Create$),t}function EOFException_init_$Init$_0(t,e){return IOException_init_$Init$_0(t,e),EOFException.call(e),e}function EOFException_init_$Create$_0(t){t=EOFException_init_$Init$_0(t,objectCreate(protoOf(EOFException)));return captureStack(t,EOFException_init_$Create$_0),t}function EOFException(){captureStack(this,EOFException)}function RawSink(){}function SegmentPool(){(SegmentPool_instance=this).MAX_SIZE_1=0,this.byteCount_1=0}function SegmentPool_getInstance(){return null==SegmentPool_instance&&new SegmentPool,SegmentPool_instance}function get_path(){_init_properties_nodeModulesJs_kt__ngjjzw();var t=path$delegate;return path$factory(),t.get_value_j01efc_k$()}function get_fs(){_init_properties_nodeModulesJs_kt__ngjjzw();var t=fs$delegate;return fs$factory(),t.get_value_j01efc_k$()}function get_os(){_init_properties_nodeModulesJs_kt__ngjjzw();var t=os$delegate;return os$factory(),t.get_value_j01efc_k$()}function get_buffer(){_init_properties_nodeModulesJs_kt__ngjjzw();var t=buffer$delegate;return buffer$factory(),t.get_value_j01efc_k$()}function path$delegate$lambda(){var tmp,tmp_0,e;_init_properties_nodeModulesJs_kt__ngjjzw();try{tmp=eval("require")("path")}catch($p){throw $p instanceof Error?(e=$p,UnsupportedOperationException_init_$Create$("Module 'path' could not be imported",e)):$p}return tmp}function fs$delegate$lambda(){var tmp,tmp_0,e;_init_properties_nodeModulesJs_kt__ngjjzw();try{tmp=eval("require")("fs")}catch($p){throw $p instanceof Error?(e=$p,UnsupportedOperationException_init_$Create$("Module 'fs' could not be imported",e)):$p}return tmp}function os$delegate$lambda(){var tmp,tmp_0,e;_init_properties_nodeModulesJs_kt__ngjjzw();try{tmp=eval("require")("os")}catch($p){throw $p instanceof Error?(e=$p,UnsupportedOperationException_init_$Create$("Module 'os' could not be imported",e)):$p}return tmp}function buffer$delegate$lambda(){var tmp,tmp_0,e;_init_properties_nodeModulesJs_kt__ngjjzw();try{tmp=eval("require")("buffer")}catch($p){throw $p instanceof Error?(e=$p,UnsupportedOperationException_init_$Create$("Module 'buffer' could not be imported",e)):$p}return tmp}function path$factory(){getPropertyCallableRef("path",0,KProperty0,function(){return get_path()},null)}function fs$factory(){getPropertyCallableRef("fs",0,KProperty0,function(){return get_fs()},null)}function os$factory(){getPropertyCallableRef("os",0,KProperty0,function(){return get_os()},null)}function buffer$factory(){getPropertyCallableRef("buffer",0,KProperty0,function(){return get_buffer()},null)}function _init_properties_nodeModulesJs_kt__ngjjzw(){properties_initialized_nodeModulesJs_kt_oooz8e||(properties_initialized_nodeModulesJs_kt_oooz8e=!0,path$delegate=lazy(path$delegate$lambda),fs$delegate=lazy(fs$delegate$lambda),os$delegate=lazy(os$delegate$lambda),buffer$delegate=lazy(buffer$delegate$lambda))}function get_SystemFileSystem(){_init_properties_FileSystemNodeJs_kt__m4c3u()}function get_isWindows(){return _init_properties_FileSystemNodeJs_kt__m4c3u(),isWindows}function FileNotFoundException(t){IOException_init_$Init$_0(t,this),captureStack(this,FileNotFoundException)}function SystemFileSystem$o$delete$lambda(e){return function(){var t=get_fs().statSync(e.get_path_j6ylwq_k$());if(null==t)throw new FileNotFoundException("File does not exist: "+e.toString());t.isDirectory()?get_fs().rmdirSync(e.get_path_j6ylwq_k$()):get_fs().rmSync(e.get_path_j6ylwq_k$()),Unit_getInstance();return Unit_getInstance()}}function SystemFileSystem$o$atomicMove$lambda(t,e){return function(){return get_fs().renameSync(t.get_path_j6ylwq_k$(),e.get_path_j6ylwq_k$()),Unit_getInstance()}}function SystemFileSystem$o$metadataOrNull$lambda(n,i){return function(){var t,e,_=get_fs().statSync(n.get_path_j6ylwq_k$());return null!=_&&(e=((t=(_=_).mode)&get_fs().constants.S_IFMT)===get_fs().constants.S_IFREG,i._v=new FileMetadata(e,(t&get_fs().constants.S_IFMT)===get_fs().constants.S_IFDIR,e?toLong(_.size):new Long(-1,-1))),Unit_getInstance()}}function SystemFileSystem$1(){SystemFileSystemImpl.call(this)}function _init_properties_FileSystemNodeJs_kt__m4c3u(){properties_initialized_FileSystemNodeJs_kt_vmmd20||(properties_initialized_FileSystemNodeJs_kt_vmmd20=!0,SystemFileSystem=new SystemFileSystem$1,isWindows="win32"===get_os().platform())}function get_SystemPathSeparator(){_init_properties_PathsNodeJs_kt__bvvvsp();var t=SystemPathSeparator$delegate;return SystemPathSeparator$factory(),t.get_value_j01efc_k$().value_1}function Path_1(t,e){this.path_1=removeTrailingSeparators(t)}function _get_path__dbvv7q(t){t.path_1}function _set_buffer__uxh4x5(t,e){t.buffer_1=e}function _get_buffer__tgqkad_0(t){t.buffer_1}function _set_closed__kdb0et_0(t,e){t.closed_1=e}function _get_closed__iwkfs1_0(t){t.closed_1}function _set_offset__aq0ezo(t,e){t.offset_1=e}function _get_offset__c6qzmg(t){t.offset_1}function _get_fd__ndc0wd(t){t.fd_1}function open(t,e){if(!get_fs().existsSync(e.path_1))throw new FileNotFoundException("File does not exist: "+e.path_1);var _={_v:-1},n=withCaughtException(FileSource$open$lambda(_,e));if(null!=n)throw IOException_init_$Create$_2("Failed to open a file "+e.path_1+".",n);if(_._v<0)throw IOException_init_$Create$_0("Failed to open a file "+e.path_1+".");return _._v}function FileSource$open$lambda(t,e){return function(){return t._v=get_fs().openSync(e.path_1,"r"),Unit_getInstance()}}function FileSource$readAtMostTo$lambda(t){return function(){return t.buffer_1=get_fs().readFileSync(t.fd_1,null),Unit_getInstance()}}function FileSource(t){this.path_1=t,this.buffer_1=null,this.closed_1=!1,this.offset_1=0,this.fd_1=open(this,this.path_1)}function _set_closed__kdb0et_1(t,e){t.closed_1=e}function _get_closed__iwkfs1_1(t){t.closed_1}function _get_fd__ndc0wd_0(t){t.fd_1}function open_0(t,e,_){var n={_v:-1},_=withCaughtException(FileSink$open$lambda(n,e,_?"a":"w"));if(null!=_)throw IOException_init_$Create$_2("Failed to open a file "+e.path_1+".",_);if(n._v<0)throw IOException_init_$Create$_0("Failed to open a file "+e.path_1+".");return n._v}function FileSink$open$lambda(t,e,_){return function(){return t._v=get_fs().openSync(e.path_1,_),Unit_getInstance()}}function FileSink$write$lambda(t,e){return function(){return get_fs().writeFileSync(t.fd_1,e),Unit_getInstance()}}function FileSink(t,e){this.closed_1=!1,this.fd_1=open_0(this,t,e)}function Path_2(t){return _init_properties_PathsNodeJs_kt__bvvvsp(),new Path_1(t,null)}function SystemPathSeparator$delegate$lambda(){_init_properties_PathsNodeJs_kt__bvvvsp();var t=get_path().sep;if(1!==t.length)throw IllegalStateException_init_$Create$("Check failed.");return new Char(charSequenceGet(t,0))}function SystemPathSeparator$factory(){getPropertyCallableRef("SystemPathSeparator",0,KProperty0,function(){return new Char(get_SystemPathSeparator())},null)}function _init_properties_PathsNodeJs_kt__bvvvsp(){properties_initialized_PathsNodeJs_kt_2u5gc7||(properties_initialized_PathsNodeJs_kt_2u5gc7=!0,SystemPathSeparator$delegate=lazy(SystemPathSeparator$delegate$lambda))}initMetadataForClass(UnsafeIoApi,"UnsafeIoApi",VOID,VOID,[Annotation]),initMetadataForClass(InternalIoApi,"InternalIoApi",VOID,VOID,[Annotation]),initMetadataForClass(DelicateIoApi,"DelicateIoApi",VOID,VOID,[Annotation]),initMetadataForInterface(RawSource,"RawSource",VOID,VOID,[AutoCloseable]),initMetadataForInterface(Source,"Source",VOID,VOID,[RawSource]),initMetadataForInterface(RawSink,"RawSink",VOID,VOID,[AutoCloseable]),initMetadataForInterface(Sink,"Sink",VOID,VOID,[RawSink]),initMetadataForClass(Buffer,"Buffer",Buffer,VOID,[Source,Sink]),initMetadataForClass(PeekSource,"PeekSource",VOID,VOID,[RawSource]),initMetadataForClass(RealSource,"RealSource",VOID,VOID,[Source]),initMetadataForCompanion(Companion),initMetadataForClass(Segment,"Segment"),initMetadataForClass(SegmentCopyTracker,"SegmentCopyTracker"),initMetadataForObject(AlwaysSharedCopyTracker,"AlwaysSharedCopyTracker",VOID,SegmentCopyTracker),initMetadataForInterface(FileSystem,"FileSystem"),initMetadataForClass(SystemFileSystemImpl,"SystemFileSystemImpl",VOID,VOID,[FileSystem]),initMetadataForClass(FileMetadata,"FileMetadata",FileMetadata),initMetadataForInterface(SegmentReadContext,"SegmentReadContext"),initMetadataForInterface(SegmentWriteContext,"SegmentWriteContext"),initMetadataForInterface(BufferIterationContext,"BufferIterationContext",VOID,VOID,[SegmentReadContext]),initMetadataForObject(UnsafeBufferOperations,"UnsafeBufferOperations"),initMetadataForClass(SegmentReadContextImpl$1,VOID,VOID,VOID,[SegmentReadContext]),initMetadataForClass(SegmentWriteContextImpl$1,VOID,VOID,VOID,[SegmentWriteContext]),initMetadataForClass(BufferIterationContextImpl$1,VOID,VOID,VOID,[BufferIterationContext]),initMetadataForClass(IOException,"IOException",IOException_init_$Create$,Exception),initMetadataForClass(EOFException,"EOFException",EOFException_init_$Create$,IOException),initMetadataForObject(SegmentPool,"SegmentPool"),initMetadataForClass(FileNotFoundException,"FileNotFoundException",VOID,IOException),initMetadataForClass(SystemFileSystem$1,VOID,VOID,SystemFileSystemImpl),initMetadataForClass(Path_1,"Path"),initMetadataForClass(FileSource,"FileSource",VOID,VOID,[RawSource]),initMetadataForClass(FileSink,"FileSink",VOID,VOID,[RawSink]),protoOf(UnsafeIoApi).equals=function(t){return t instanceof UnsafeIoApi&&(t instanceof UnsafeIoApi||THROW_CCE(),!0)},protoOf(UnsafeIoApi).hashCode=function(){return 0},protoOf(UnsafeIoApi).toString=function(){return"@kotlinx.io.UnsafeIoApi()"},protoOf(InternalIoApi).equals=function(t){return t instanceof InternalIoApi&&(t instanceof InternalIoApi||THROW_CCE(),!0)},protoOf(InternalIoApi).hashCode=function(){return 0},protoOf(InternalIoApi).toString=function(){return"@kotlinx.io.InternalIoApi()"},protoOf(DelicateIoApi).equals=function(t){return t instanceof DelicateIoApi&&(t instanceof DelicateIoApi||THROW_CCE(),!0)},protoOf(DelicateIoApi).hashCode=function(){return 0},protoOf(DelicateIoApi).toString=function(){return"@kotlinx.io.DelicateIoApi()"},protoOf(Buffer).set_head_gc442i_k$=function(t){this.head_1=t},protoOf(Buffer).get_head_1rxik1_k$=function(){return this.head_1},protoOf(Buffer).set_tail_w98yye_k$=function(t){this.tail_1=t},protoOf(Buffer).get_tail_yzvxr5_k$=function(){return this.tail_1},protoOf(Buffer).get_size_woubt6_k$=function(){return this.sizeMut_1},protoOf(Buffer).set_sizeMut_cp56bw_k$=function(t){this.sizeMut_1=t},protoOf(Buffer).get_sizeMut_lwlia2_k$=function(){return this.sizeMut_1},protoOf(Buffer).get_buffer_bmaafd_k$=function(){return this},protoOf(Buffer).exhausted_p1jt55_k$=function(){return this.get_size_woubt6_k$().equals(new Long(0,0))},protoOf(Buffer).require_28r0pl_k$=function(t){var e;if(!(0<=t.compareTo_9jj042_k$(new Long(0,0))))throw e="byteCount: "+t.toString(),IllegalArgumentException_init_$Create$(toString(e));if(this.get_size_woubt6_k$().compareTo_9jj042_k$(t)<0)throw EOFException_init_$Create$_0("Buffer doesn't contain required number of bytes (size: "+this.get_size_woubt6_k$().toString()+", required: "+t.toString()+")")},protoOf(Buffer).request_mpoy7z_k$=function(t){if(0<=t.compareTo_9jj042_k$(new Long(0,0)))return 0<=this.get_size_woubt6_k$().compareTo_9jj042_k$(t);throw t="byteCount: "+t.toString()+" < 0",IllegalArgumentException_init_$Create$(toString(t))},protoOf(Buffer).readByte_ectjk2_k$=function(){var t=this.head_1,t=(null==t?throwEof(this,new Long(1,0)):e=t,e),e=t.get_size_woubt6_k$();return 0===e?(this.recycleHead_e8xkbv_k$(),this.readByte_ectjk2_k$()):(t=t.readByte_newmca_k$(),this.sizeMut_1=this.sizeMut_1.minus_mfbszm_k$(new Long(1,0)),1===e&&this.recycleHead_e8xkbv_k$(),t)},protoOf(Buffer).readShort_ilpyey_k$=function(){var t,e,_=this.head_1,_=(null==_?throwEof(this,new Long(2,0)):n=_,n),n=_.get_size_woubt6_k$();return n<2?(this.require_28r0pl_k$(new Long(2,0)),0===n?(this.recycleHead_e8xkbv_k$(),this.readShort_ilpyey_k$()):(e=(255&this.readByte_ectjk2_k$())<<8,t=255&this.readByte_ectjk2_k$(),toShort(e|t))):(e=_.readShort_7b409e_k$(),this.sizeMut_1=this.sizeMut_1.minus_mfbszm_k$(new Long(2,0)),2===n&&this.recycleHead_e8xkbv_k$(),e)},protoOf(Buffer).readInt_hv8cxl_k$=function(){var t=this.head_1,t=(null==t?throwEof(this,new Long(4,0)):e=t,e),e=t.get_size_woubt6_k$();return e<4?(this.require_28r0pl_k$(new Long(4,0)),0===e?(this.recycleHead_e8xkbv_k$(),this.readInt_hv8cxl_k$()):this.readShort_ilpyey_k$()<<16|65535&this.readShort_ilpyey_k$()):(t=t.readInt_wxtzen_k$(),this.sizeMut_1=this.sizeMut_1.minus_mfbszm_k$(new Long(4,0)),4===e&&this.recycleHead_e8xkbv_k$(),t)},protoOf(Buffer).readLong_ecnd8u_k$=function(){var t=this.head_1,t=(null==t?throwEof(this,new Long(8,0)):e=t,e),e=t.get_size_woubt6_k$();return e<8?(this.require_28r0pl_k$(new Long(8,0)),0===e?(this.recycleHead_e8xkbv_k$(),this.readLong_ecnd8u_k$()):toLong(this.readInt_hv8cxl_k$()).shl_bg8if3_k$(32).or_v7fvkl_k$(toLong(this.readInt_hv8cxl_k$()).and_4spn93_k$(new Long(-1,0)))):(t=t.readLong_ud3obe_k$(),this.sizeMut_1=this.sizeMut_1.minus_mfbszm_k$(new Long(8,0)),8===e&&this.recycleHead_e8xkbv_k$(),t)},protoOf(Buffer).hintEmit_6b2e5m_k$=function(){return Unit_getInstance()},protoOf(Buffer).emit_jn20hp_k$=function(){return Unit_getInstance()},protoOf(Buffer).flush_shahbo_k$=function(){return Unit_getInstance()},protoOf(Buffer).copyTo_f80oje_k$=function(t,e,_){if(checkBounds(this.get_size_woubt6_k$(),e,_),e.equals(_))return Unit_getInstance();for(var n=e,i=_.minus_mfbszm_k$(e),o=(t.sizeMut_1=t.sizeMut_1.plus_r93sks_k$(i),this.head_1);0<=n.compareTo_9jj042_k$(toLong(ensureNotNull(o).get_limit_kzbf7q_k$()-o.get_pos_c7hn7x_k$()|0));)n=n.minus_mfbszm_k$(toLong(o.get_limit_kzbf7q_k$()-o.get_pos_c7hn7x_k$()|0)),o=o.get_next_dym7ms_k$();for(;0<i.compareTo_9jj042_k$(new Long(0,0));){var r=ensureNotNull(o).sharedCopy_efss0u_k$(),a=(r.set_pos_tbkcm1_k$(r.get_pos_c7hn7x_k$()+n.toInt_1tsl84_k$()|0),r.get_pos_c7hn7x_k$()+i.toInt_1tsl84_k$()|0),s=r.get_limit_kzbf7q_k$(),a=Math.min(a,s);r.set_limit_3yu7ea_k$(a),null==t.head_1?(t.head_1=r,t.tail_1=r):t.tail_1=ensureNotNull(t.tail_1).push_h69db4_k$(r),i=i.minus_mfbszm_k$(toLong(r.get_limit_kzbf7q_k$()-r.get_pos_c7hn7x_k$()|0)),n=new Long(0,0),o=o.get_next_dym7ms_k$()}},protoOf(Buffer).copyTo$default_txus2s_k$=function(t,e,_,n){return e=e===VOID?new Long(0,0):e,_=_===VOID?this.get_size_woubt6_k$():_,n===VOID?(this.copyTo_f80oje_k$(t,e,_),Unit_getInstance()):n.copyTo_f80oje_k$.call(this,t,e,_)},protoOf(Buffer).completeSegmentByteCount_46ltjp_k$=function(){var t,e=this.get_size_woubt6_k$();return e.equals(new Long(0,0))?new Long(0,0):(t=ensureNotNull(this.tail_1)).get_limit_kzbf7q_k$()<8192&&t.get_owner_cz9qry_k$()?e.minus_mfbszm_k$(toLong(t.get_limit_kzbf7q_k$()-t.get_pos_c7hn7x_k$()|0)):e},protoOf(Buffer).get_ugtq3c_k$=function(t){if(t.compareTo_9jj042_k$(new Long(0,0))<0||0<=t.compareTo_9jj042_k$(this.get_size_woubt6_k$()))throw IndexOutOfBoundsException_init_$Create$("position ("+t.toString()+") is not within the range [0..size("+this.get_size_woubt6_k$().toString()+"))");if(t.equals(new Long(0,0)))return ensureNotNull(this.head_1).getUnchecked_g7gmig_k$(0);if(null==this.head_1)return n=new Long(-1,-1),ensureNotNull(null).getUnchecked_g7gmig_k$(t.minus_mfbszm_k$(n).toInt_1tsl84_k$());if(this.get_size_woubt6_k$().minus_mfbszm_k$(t).compareTo_9jj042_k$(t)<0){for(var e=this.tail_1,_=this.get_size_woubt6_k$();null!=e&&0<_.compareTo_9jj042_k$(t)&&!((_=_.minus_mfbszm_k$(toLong(e.get_limit_kzbf7q_k$()-e.get_pos_c7hn7x_k$()|0))).compareTo_9jj042_k$(t)<=0);)e=e.get_prev_d7or6k_k$();var n=_;return ensureNotNull(e).getUnchecked_g7gmig_k$(t.minus_mfbszm_k$(n).toInt_1tsl84_k$())}for(var i=this.head_1,o=new Long(0,0);null!=i;){var r=o,a=i.get_limit_kzbf7q_k$()-i.get_pos_c7hn7x_k$()|0,r=r.plus_r93sks_k$(toLong(a));if(0<r.compareTo_9jj042_k$(t))break;i=i.get_next_dym7ms_k$(),o=r}n=o;return ensureNotNull(i).getUnchecked_g7gmig_k$(t.minus_mfbszm_k$(n).toInt_1tsl84_k$())},protoOf(Buffer).clear_j9egeb_k$=function(){return this.skip_bgd4sf_k$(this.get_size_woubt6_k$())},protoOf(Buffer).skip_bgd4sf_k$=function(t){var e;if(!(0<=t.compareTo_9jj042_k$(new Long(0,0))))throw e="byteCount ("+t.toString()+") < 0",IllegalArgumentException_init_$Create$(toString(e));for(var _=t;0<_.compareTo_9jj042_k$(new Long(0,0));){var n=this.head_1;if(null==n)throw EOFException_init_$Create$_0("Buffer exhausted before skipping "+t.toString()+" bytes.");var i=_,o=n.get_limit_kzbf7q_k$()-n.get_pos_c7hn7x_k$()|0,o=toLong(o),i=(i.compareTo_9jj042_k$(o)<=0?i:o).toInt_1tsl84_k$();this.sizeMut_1=this.sizeMut_1.minus_mfbszm_k$(toLong(i)),_=_.minus_mfbszm_k$(toLong(i)),n.set_pos_tbkcm1_k$(n.get_pos_c7hn7x_k$()+i|0),n.get_pos_c7hn7x_k$()===n.get_limit_kzbf7q_k$()&&this.recycleHead_e8xkbv_k$()}},protoOf(Buffer).readAtMostTo_kub29z_k$=function(t,e,_){var n,i=t.length,i=(checkBounds(toLong(i),toLong(e),toLong(_)),this.head_1);return null==i?-1:(_=_-e|0,n=(i=i).get_size_woubt6_k$(),_=Math.min(_,n),i.readTo_7avxxz_k$(t,e,e+_|0),this.sizeMut_1=this.sizeMut_1.minus_mfbszm_k$(toLong(_)),isEmpty(i)&&this.recycleHead_e8xkbv_k$(),_)},protoOf(Buffer).readAtMostTo_nyls31_k$=function(t,e){var _;if(0<=e.compareTo_9jj042_k$(new Long(0,0)))return this.get_size_woubt6_k$().equals(new Long(0,0))?new Long(-1,-1):(_=0<e.compareTo_9jj042_k$(this.get_size_woubt6_k$())?this.get_size_woubt6_k$():e,t.write_yvqjfp_k$(this,_),_);throw t="byteCount ("+e.toString()+") < 0",IllegalArgumentException_init_$Create$(toString(t))},protoOf(Buffer).readTo_rtq83_k$=function(t,e){var _;if(!(0<=e.compareTo_9jj042_k$(new Long(0,0))))throw _="byteCount ("+e.toString()+") < 0",IllegalArgumentException_init_$Create$(toString(_));if(this.get_size_woubt6_k$().compareTo_9jj042_k$(e)<0)throw t.write_yvqjfp_k$(this,this.get_size_woubt6_k$()),EOFException_init_$Create$_0("Buffer exhausted before writing "+e.toString()+" bytes. Only "+this.get_size_woubt6_k$().toString()+" bytes were written.");t.write_yvqjfp_k$(this,e)},protoOf(Buffer).transferTo_lu4ka2_k$=function(t){var e=this.get_size_woubt6_k$();return 0<e.compareTo_9jj042_k$(new Long(0,0))&&t.write_yvqjfp_k$(this,e),e},protoOf(Buffer).peek_21nx7_k$=function(){return buffered(new PeekSource(this))},protoOf(Buffer).writableSegment_voqx71_k$=function(t){var e,_;if(1<=t&&t<=8192)return null==this.tail_1?(e=SegmentPool_getInstance().take_2451j_k$(),this.head_1=e,this.tail_1=e):8192<((e=ensureNotNull(this.tail_1)).get_limit_kzbf7q_k$()+t|0)||!e.get_owner_cz9qry_k$()?(_=e.push_h69db4_k$(SegmentPool_getInstance().take_2451j_k$()),this.tail_1=_):e;throw IllegalArgumentException_init_$Create$(toString("unexpected capacity ("+t+"), should be in range [1, 8192]"))},protoOf(Buffer).write_ti570x_k$=function(t,e,_){for(var n=t.length,i=(checkBounds(toLong(n),toLong(e),toLong(_)),e);i<_;){var o=this.writableSegment_voqx71_k$(1),r=_-i|0,a=o.get_remainingCapacity_c94947_k$(),r=Math.min(r,a);o.write_j6nfmf_k$(t,i,i+r|0),i=i+r|0}n=this.sizeMut_1;this.sizeMut_1=n.plus_r93sks_k$(toLong(_-e|0))},protoOf(Buffer).write_nimze1_k$=function(t,e){var _;if(!(0<=e.compareTo_9jj042_k$(new Long(0,0))))throw _="byteCount ("+e.toString()+") < 0",IllegalArgumentException_init_$Create$(toString(_));for(var n=e;0<n.compareTo_9jj042_k$(new Long(0,0));){var i=t.readAtMostTo_nyls31_k$(this,n);if(i.equals(new Long(-1,-1)))throw EOFException_init_$Create$_0("Source exhausted before reading "+e.toString()+" bytes. Only "+e.minus_mfbszm_k$(n).toString()+" were read.");n=n.minus_mfbszm_k$(i)}},protoOf(Buffer).write_yvqjfp_k$=function(t,e){if(t===this)throw IllegalArgumentException_init_$Create$(toString("source == this"));checkOffsetAndCount(t.sizeMut_1,new Long(0,0),e);for(var _=e;0<_.compareTo_9jj042_k$(new Long(0,0));){if(_.compareTo_9jj042_k$(toLong(ensureNotNull(t.head_1).get_size_woubt6_k$()))<0){var n=this.tail_1;if(!(null==n||!n.get_owner_cz9qry_k$())&&(i=_,o=n.get_limit_kzbf7q_k$(),i=i.plus_r93sks_k$(toLong(o)),o=n.get_shared_lt0222_k$()?0:n.get_pos_c7hn7x_k$(),i.minus_mfbszm_k$(toLong(o)).compareTo_9jj042_k$(new Long(8192,0))<=0))return ensureNotNull(t.head_1).writeTo_vgyea0_k$(n,_.toInt_1tsl84_k$()),t.sizeMut_1=t.sizeMut_1.minus_mfbszm_k$(_),this.sizeMut_1=this.sizeMut_1.plus_r93sks_k$(_),Unit_getInstance();t.head_1=ensureNotNull(t.head_1).split_p6jwdi_k$(_.toInt_1tsl84_k$())}var i=ensureNotNull(t.head_1),o=toLong(i.get_size_woubt6_k$());t.head_1=i.pop_417547_k$(),null==t.head_1&&(t.tail_1=null),null==this.head_1?(this.head_1=i,this.tail_1=i):(this.tail_1=ensureNotNull(this.tail_1).push_h69db4_k$(i).compact_he236d_k$(),null==ensureNotNull(this.tail_1).get_prev_d7or6k_k$()&&(this.head_1=this.tail_1)),t.sizeMut_1=t.sizeMut_1.minus_mfbszm_k$(o),this.sizeMut_1=this.sizeMut_1.plus_r93sks_k$(o),_=_.minus_mfbszm_k$(o)}},protoOf(Buffer).transferFrom_v29myr_k$=function(t){for(var e=new Long(0,0);;){var _=t.readAtMostTo_nyls31_k$(this,new Long(8192,0));if(_.equals(new Long(-1,-1)))break;e=e.plus_r93sks_k$(_)}return e},protoOf(Buffer).writeByte_9ih3z3_k$=function(t){this.writableSegment_voqx71_k$(1).writeByte_naaedl_k$(t),this.sizeMut_1=this.sizeMut_1.plus_r93sks_k$(new Long(1,0))},protoOf(Buffer).writeShort_vn2jsb_k$=function(t){this.writableSegment_voqx71_k$(2).writeShort_n1l1d9_k$(t),this.sizeMut_1=this.sizeMut_1.plus_r93sks_k$(new Long(2,0))},protoOf(Buffer).writeInt_i8xgjs_k$=function(t){this.writableSegment_voqx71_k$(4).writeInt_6bnyio_k$(t),this.sizeMut_1=this.sizeMut_1.plus_r93sks_k$(new Long(4,0))},protoOf(Buffer).writeLong_2rx6yl_k$=function(t){this.writableSegment_voqx71_k$(8).writeLong_uftc01_k$(t),this.sizeMut_1=this.sizeMut_1.plus_r93sks_k$(new Long(8,0))},protoOf(Buffer).copy_1tks5_k$=function(){var t=new Buffer;if(!this.get_size_woubt6_k$().equals(new Long(0,0))){for(var e=ensureNotNull(this.head_1),_=e.sharedCopy_efss0u_k$(),n=(t.head_1=_,t.tail_1=_,e.get_next_dym7ms_k$());null!=n;)t.tail_1=ensureNotNull(t.tail_1).push_h69db4_k$(n.sharedCopy_efss0u_k$()),n=n.get_next_dym7ms_k$();t.sizeMut_1=this.get_size_woubt6_k$()}return t},protoOf(Buffer).close_yn9xrc_k$=function(){return Unit_getInstance()},protoOf(Buffer).toString=function(){if(this.get_size_woubt6_k$().equals(new Long(0,0)))return"Buffer(size=0)";for(var t=this.get_size_woubt6_k$(),e=toLong(64),_=(e.compareTo_9jj042_k$(t)<=0?e:t).toInt_1tsl84_k$(),n=StringBuilder_init_$Create$(imul(_,2)+(0<this.get_size_woubt6_k$().compareTo_9jj042_k$(toLong(64))?1:0)|0),i=0,o=(UnsafeBufferOperations_getInstance(),this.head_1);null!=o;){for(var r=get_SegmentReadContextImpl(),a=o,s=0;i<_&&s<a.get_size_woubt6_k$();){var l=s,s=l+1|0,l=r.getUnchecked_akrbjy_k$(a,l),i=i+1|0,u=get_HEX_DIGIT_CHARS(),u=n.append_am5a4z_k$(u[15&l>>4]),f=get_HEX_DIGIT_CHARS();u.append_am5a4z_k$(f[15&l])}o=o.get_next_dym7ms_k$()}return 0<this.get_size_woubt6_k$().compareTo_9jj042_k$(toLong(64))&&n.append_am5a4z_k$(_Char___init__impl__6a9atx(8230)),"Buffer(size="+this.get_size_woubt6_k$().toString()+" hex="+n.toString()+")"},protoOf(Buffer).recycleHead_e8xkbv_k$=function(){var t=ensureNotNull(this.head_1),e=t.get_next_dym7ms_k$();null==(this.head_1=e)?this.tail_1=null:e.set_prev_lowsh9_k$(null),t.set_next_szvhf1_k$(null),SegmentPool_getInstance().recycle_3mobff_k$(t)},protoOf(Buffer).recycleTail_61sxi3_k$=function(){var t=ensureNotNull(this.tail_1),e=t.get_prev_d7or6k_k$();null==(this.tail_1=e)?this.head_1=null:e.set_next_szvhf1_k$(null),t.set_prev_lowsh9_k$(null),SegmentPool_getInstance().recycle_3mobff_k$(t)},protoOf(PeekSource).readAtMostTo_nyls31_k$=function(t,e){if(this.closed_1)throw IllegalStateException_init_$Create$(toString("Source is closed."));if(!(0<=e.compareTo_9jj042_k$(new Long(0,0))))throw _="byteCount ("+e.toString()+") < 0",IllegalArgumentException_init_$Create$(toString(_));if(null!=this.expectedSegment_1&&(this.expectedSegment_1!==this.buffer_1.get_head_1rxik1_k$()||this.expectedPos_1!==ensureNotNull(this.buffer_1.get_head_1rxik1_k$()).get_pos_c7hn7x_k$()))throw IllegalStateException_init_$Create$(toString("Peek source is invalid because upstream source was used"));if(e.equals(new Long(0,0)))return new Long(0,0);var _=this.pos_1.plus_r93sks_k$(toLong(1));if(!this.upstream_1.request_mpoy7z_k$(_))return new Long(-1,-1);null==this.expectedSegment_1&&null!=this.buffer_1.get_head_1rxik1_k$()&&(this.expectedSegment_1=this.buffer_1.get_head_1rxik1_k$(),this.expectedPos_1=ensureNotNull(this.buffer_1.get_head_1rxik1_k$()).get_pos_c7hn7x_k$());_=this.buffer_1.get_size_woubt6_k$().minus_mfbszm_k$(this.pos_1),e=e.compareTo_9jj042_k$(_)<=0?e:_;return this.buffer_1.copyTo_f80oje_k$(t,this.pos_1,this.pos_1.plus_r93sks_k$(e)),this.pos_1=this.pos_1.plus_r93sks_k$(e),e},protoOf(PeekSource).close_yn9xrc_k$=function(){this.closed_1=!0},protoOf(RealSource).get_source_jl0x7o_k$=function(){return this.source_1},protoOf(RealSource).set_closed_z8zuoc_k$=function(t){this.closed_1=t},protoOf(RealSource).get_closed_byjrzp_k$=function(){return this.closed_1},protoOf(RealSource).get_buffer_bmaafd_k$=function(){return this.bufferField_1},protoOf(RealSource).readAtMostTo_nyls31_k$=function(t,e){if(this.closed_1)throw IllegalStateException_init_$Create$(toString("Source is closed."));if(!(0<=e.compareTo_9jj042_k$(new Long(0,0))))throw _="byteCount: "+e.toString(),IllegalArgumentException_init_$Create$(toString(