(()=>{"use strict";var e={d:(t,i)=>{for(var n in i)e.o(i,n)&&!e.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:i[n]})},o:(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r:e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})}},t={};e.r(t),e.d(t,{controls_type:()=>Ye,controls_typeLists:()=>Xe,lists_zip:()=>ye,lists_zip_container:()=>be,lists_zip_item:()=>xe,unpack_iterable_object:()=>Ve,variables_change:()=>Pe,variables_get:()=>fe,variables_global:()=>ve,variables_set:()=>Fe});var i={};e.r(i),e.d(i,{base_setup:()=>Ue,controls_delay:()=>we,controls_end_program:()=>ke,controls_except:()=>it,controls_finally:()=>nt,controls_flow_statements:()=>Qe,controls_for:()=>ze,controls_forEach:()=>Ke,controls_for_range:()=>je,controls_if:()=>He,controls_if_else:()=>et,controls_if_elseif:()=>Ze,controls_if_if:()=>$e,controls_lambda:()=>_t,controls_main:()=>Ge,controls_pass:()=>ot,controls_range:()=>We,controls_repeat_ext:()=>st,controls_thread:()=>pt,controls_try:()=>tt,controls_try_finally:()=>qe,controls_whileUntil:()=>Je,datetime_fromtimestamp:()=>It,do_while:()=>at,garbage_collection:()=>ut,gene_unique_identifier:()=>Tt,get_mem_alloc:()=>rt,get_mem_free:()=>lt,get_unique_identifier:()=>dt});var n={};e.r(n),e.d(n,{base_map:()=>yt,generate_cartesian_product:()=>xt,math_arithmetic:()=>Ot,math_bit:()=>ct,math_constant:()=>mt,math_constant_mp:()=>Et,math_constrain:()=>Dt,math_dec:()=>Ct,math_degree_to_radian:()=>Bt,math_indexer_number:()=>Ft,math_map:()=>ft,math_max_min:()=>At,math_number:()=>ht,math_number_base_conversion:()=>Lt,math_radian_to_degree:()=>Vt,math_random:()=>Nt,math_random_seed:()=>Pt,math_round:()=>vt,math_selfcalcu:()=>Rt,math_to_int:()=>St,math_trig:()=>gt,text_to_number:()=>Yt,text_to_number_skulpt:()=>Xt,turn_to_int:()=>bt});var s={};e.r(s),e.d(s,{ascii_to_char:()=>Kt,char_to_ascii:()=>Jt,number_to_text:()=>qt,os_system:()=>Oi,text:()=>Ut,text_bytes:()=>kt,text_capital:()=>ni,text_center:()=>si,text_char:()=>Ht,text_char_at:()=>jt,text_char_at2:()=>zt,text_char_at3:()=>Mi,text_compareTo:()=>Ti,text_compare_to:()=>ii,text_create_with_container:()=>li,text_create_with_item:()=>di,text_encode:()=>mi,text_equals_starts_ends:()=>ti,text_eval:()=>Ei,text_find:()=>_i,text_format:()=>ri,text_format_noreturn:()=>hi,text_join:()=>Wt,text_join_seq:()=>oi,text_length:()=>Qt,text_random_char:()=>$t,text_replace:()=>pi,text_split:()=>ai,text_strip:()=>ui,text_substring:()=>ei,text_substring2:()=>Zt,text_substring3:()=>Ii,text_textarea:()=>wt});var _={};e.r(_),e.d(_,{ENUMERATE:()=>tn,content_in_lists:()=>sn,enumerate:()=>nn,list_many_input:()=>wi,list_tolist:()=>Ki,list_tolist2:()=>en,list_trig:()=>Bi,lists_2d_get_col_row_data:()=>Si,lists_2d_get_data_with_col_row:()=>Ci,lists_append_extend:()=>Fi,lists_change_to:()=>Ui,lists_change_to_general:()=>Hi,lists_clear:()=>yi,lists_create_with:()=>Ai,lists_create_with2:()=>Ji,lists_create_with_container:()=>Ni,lists_create_with_item:()=>Di,lists_create_with_noreturn:()=>ki,lists_create_with_text:()=>Li,lists_create_with_text2:()=>qi,lists_del_general:()=>Wi,lists_find:()=>Vi,lists_getIndex3:()=>Qi,lists_getSublist3:()=>zi,lists_get_index:()=>ci,lists_get_random_item:()=>Pi,lists_get_random_sublist:()=>vi,lists_get_sublist:()=>gi,lists_insert_value:()=>Yi,lists_insert_value2:()=>$i,lists_pop:()=>xi,lists_remove_at:()=>bi,lists_remove_at2:()=>Zi,lists_reverse:()=>Xi,lists_setIndex3:()=>ji,lists_set_index:()=>fi,lists_sort:()=>Gi});var o={};e.r(o),e.d(o,{dicts_add_change_del:()=>Rn,dicts_add_or_change:()=>dn,dicts_clear:()=>Mn,dicts_create_with:()=>on,dicts_create_with_container:()=>pn,dicts_create_with_item:()=>an,dicts_create_with_noreturn:()=>Cn,dicts_deldict:()=>On,dicts_delete:()=>In,dicts_get:()=>rn,dicts_get_default:()=>ln,dicts_items:()=>hn,dicts_keys:()=>un,dicts_length:()=>En,dicts_pop:()=>cn,dicts_setdefault:()=>gn,dicts_to_json:()=>An,dicts_to_json2:()=>Dn,dicts_to_to:()=>Nn,dicts_todict:()=>Sn,dicts_update:()=>Tn,dicts_values:()=>mn,json_to_dicts:()=>Ln});var p={};e.r(p),e.d(p,{logic_boolean:()=>Xn,logic_compare:()=>Fn,logic_compare_continous:()=>Pn,logic_is:()=>Vn,logic_is_in:()=>xn,logic_negate:()=>Yn,logic_null:()=>yn,logic_operation:()=>vn,logic_tobool:()=>Bn,logic_true_or_false:()=>bn});var a={};e.r(a),e.d(a,{sdcard_mount:()=>as,sdcard_use_spi_init:()=>ps,storage_can_write_ornot:()=>qn,storage_change_dir:()=>_s,storage_close_file:()=>zn,storage_delete_file:()=>$n,storage_file_seek:()=>ts,storage_file_tell:()=>es,storage_file_write:()=>Hn,storage_fileopen:()=>Un,storage_fileopen_new:()=>wn,storage_fileopen_new_encoding:()=>kn,storage_get_a_line:()=>Jn,storage_get_contents:()=>Kn,storage_get_contents_without_para:()=>Wn,storage_get_current_dir:()=>is,storage_get_file_size:()=>Zn,storage_get_filename:()=>Qn,storage_is_file:()=>os,storage_list_all_files:()=>jn,storage_make_dir:()=>ns,storage_open_file_with_os:()=>Gn,storage_rename:()=>ss});var u={};e.r(u),e.d(u,{procedures_callnoreturn:()=>Is,procedures_callreturn:()=>Ts,procedures_defnoreturn:()=>us,procedures_defreturn:()=>rs,procedures_ifreturn:()=>Ms,procedures_mutatorarg:()=>ds,procedures_mutatorcontainer:()=>ls,procedures_return:()=>hs});var r={};e.r(r),e.d(r,{tuple_change_to:()=>Ds,tuple_create_llm_params:()=>xs,tuple_create_with:()=>Es,tuple_create_with_container:()=>Os,tuple_create_with_item:()=>Rs,tuple_create_with_noreturn:()=>vs,tuple_create_with_text2:()=>cs,tuple_create_with_text_return:()=>gs,tuple_del:()=>As,tuple_find:()=>fs,tuple_getIndex:()=>Cs,tuple_getSublist:()=>Ps,tuple_get_random_item:()=>Xs,tuple_get_sublist:()=>Ys,tuple_input:()=>bs,tuple_join:()=>Ls,tuple_length:()=>Ss,tuple_max:()=>Ns,tuple_totuple:()=>ys,tuple_trig:()=>Fs});var l={};e.r(l),e.d(l,{set_add_discard:()=>Js,set_clear:()=>Hs,set_create_with:()=>Bs,set_create_with_container:()=>Gs,set_create_with_item:()=>Us,set_create_with_text_return:()=>zs,set_length:()=>ws,set_operate:()=>Ws,set_operate_update:()=>Ks,set_pop:()=>ks,set_sub:()=>qs,set_toset:()=>js,set_update:()=>Qs});var d={};e.r(d),e.d(d,{html_content:()=>i_,html_content_more:()=>n_,html_document:()=>Zs,html_form:()=>__,html_head_body:()=>t_,html_style:()=>s_,html_style_color:()=>p_,html_style_content:()=>o_,html_text:()=>a_,html_title:()=>e_});var I={};e.r(I),e.d(I,{attribute_access:()=>g_,function_call:()=>O_,function_call_container:()=>R_,function_call_item:()=>c_,raw_block:()=>l_,raw_empty:()=>I_,raw_expression:()=>d_,raw_table:()=>r_,text_comment:()=>T_,text_print_multiple:()=>h_,text_print_multiple_container:()=>m_,text_print_multiple_item:()=>E_,type_check:()=>M_});var T={};e.r(T),e.d(T,{controls_type:()=>N_,controls_typeLists:()=>D_,lists_zip:()=>f_,unpack_iterable_object:()=>F_,variables_change:()=>A_,variables_get:()=>C_,variables_global:()=>L_,variables_set:()=>S_});var M={};e.r(M),e.d(M,{Panic_with_status_code:()=>G_,base_setup:()=>v_,controls_delay:()=>B_,controls_flow_statements:()=>V_,controls_for:()=>y_,controls_forEach:()=>W_,controls_for_range:()=>b_,controls_if:()=>Y_,controls_interrupts:()=>k_,controls_lambda:()=>J_,controls_main:()=>P_,controls_millis:()=>U_,controls_nointerrupts:()=>H_,controls_pass:()=>Q_,controls_range:()=>K_,controls_repeat:()=>no,controls_repeat_ext:()=>$_,controls_thread:()=>z_,controls_try_finally:()=>X_,controls_whileUntil:()=>x_,datetime_fromtimestamp:()=>so,do_while:()=>j_,garbage_collection:()=>Z_,gene_unique_identifier:()=>_o,get_mem_alloc:()=>eo,get_mem_free:()=>to,get_unique_identifier:()=>io,reset:()=>w_,time_sleep:()=>q_});var h={};e.r(h),e.d(h,{base_map:()=>No,generate_cartesian_product:()=>fo,math_arithmetic:()=>ro,math_bit:()=>uo,math_constant:()=>po,math_constant_mp:()=>ao,math_constrain:()=>Ro,math_dec:()=>Mo,math_degree_to_radian:()=>Po,math_indexer_number:()=>Co,math_map:()=>Oo,math_max_min:()=>mo,math_number:()=>oo,math_number_base_conversion:()=>co,math_radian_to_degree:()=>Fo,math_random:()=>Eo,math_random_seed:()=>go,math_round:()=>So,math_selfcalcu:()=>lo,math_single:()=>Io,math_to_int:()=>ho,math_trig:()=>To,text_to_number:()=>Ao,text_to_number_skulpt:()=>Lo,turn_to_int:()=>Do});var m={};e.r(m),e.d(m,{ascii_to_char:()=>xo,char_to_ascii:()=>Vo,number_to_text:()=>Bo,os_system:()=>ap,text:()=>vo,text_bytes:()=>Xo,text_capital:()=>qo,text_center:()=>Qo,text_char:()=>yo,text_char_at:()=>wo,text_char_at2:()=>Uo,text_char_at3:()=>_p,text_compareTo:()=>sp,text_compare_to:()=>Wo,text_encode:()=>op,text_equals_starts_ends:()=>Ho,text_eval:()=>pp,text_find:()=>zo,text_format:()=>tp,text_format_noreturn:()=>ip,text_join:()=>bo,text_join_seq:()=>jo,text_length:()=>Go,text_random_char:()=>ko,text_replace:()=>$o,text_split:()=>Zo,text_strip:()=>ep,text_substring:()=>Jo,text_substring2:()=>Ko,text_substring3:()=>np,text_textarea:()=>Yo});var E={};e.r(E),e.d(E,{content_in_lists:()=>wp,enumerate:()=>Up,list_many_input:()=>Dp,list_tolist:()=>Bp,list_tolist2:()=>Gp,list_trig:()=>Ap,lists_2d_get_col_row_data:()=>lp,lists_2d_get_data_with_col_row:()=>rp,lists_append_extend:()=>hp,lists_change_to:()=>Np,lists_change_to_general:()=>Fp,lists_clear:()=>cp,lists_create_with:()=>dp,lists_create_with2:()=>vp,lists_create_with_noreturn:()=>fp,lists_create_with_text:()=>Ip,lists_create_with_text2:()=>Yp,lists_del_general:()=>Pp,lists_find:()=>gp,lists_getIndex3:()=>Xp,lists_getSublist3:()=>yp,lists_get_index:()=>Tp,lists_get_random_item:()=>mp,lists_get_random_sublist:()=>Ep,lists_get_sublist:()=>up,lists_insert_value:()=>Op,lists_insert_value2:()=>xp,lists_pop:()=>Sp,lists_remove_at:()=>Cp,lists_remove_at2:()=>Vp,lists_reverse:()=>Rp,lists_setIndex3:()=>bp,lists_set_index:()=>Mp,lists_sort:()=>Lp});var O={};e.r(O),e.d(O,{dicts_add_change_del:()=>ta,dicts_add_or_change:()=>Jp,dicts_clear:()=>zp,dicts_create_with:()=>kp,dicts_create_with_noreturn:()=>sa,dicts_deldict:()=>ea,dicts_delete:()=>qp,dicts_get:()=>Wp,dicts_get_default:()=>Kp,dicts_items:()=>jp,dicts_keys:()=>Hp,dicts_length:()=>Zp,dicts_pop:()=>ia,dicts_setdefault:()=>na,dicts_to_json:()=>oa,dicts_to_json2:()=>ua,dicts_to_to:()=>aa,dicts_todict:()=>_a,dicts_update:()=>Qp,dicts_values:()=>$p,json_to_dicts:()=>pa});var R={};e.r(R),e.d(R,{logic_boolean:()=>Ta,logic_compare:()=>ra,logic_compare_continous:()=>la,logic_is:()=>Ea,logic_is_in:()=>ma,logic_negate:()=>Ia,logic_null:()=>Ma,logic_operation:()=>da,logic_tobool:()=>Oa,logic_true_or_false:()=>ha});var c={};e.r(c),e.d(c,{sdcard_mount:()=>wa,sdcard_use_spi_init:()=>Ua,storage_can_write_ornot:()=>Da,storage_change_dir:()=>ba,storage_close_file:()=>Fa,storage_delete_file:()=>va,storage_file_seek:()=>ya,storage_file_tell:()=>Xa,storage_file_write:()=>Sa,storage_fileopen:()=>ca,storage_fileopen_new:()=>ga,storage_fileopen_new_encoding:()=>Ca,storage_get_a_line:()=>Na,storage_get_contents:()=>La,storage_get_contents_without_para:()=>Aa,storage_get_current_dir:()=>xa,storage_get_file_size:()=>Ya,storage_get_filename:()=>fa,storage_is_file:()=>Ga,storage_list_all_files:()=>Pa,storage_make_dir:()=>Va,storage_open_file_with_os:()=>Ra,storage_rename:()=>Ba});var g={};e.r(g),e.d(g,{procedures_callnoreturn:()=>Ka,procedures_callreturn:()=>Wa,procedures_defnoreturn:()=>Ha,procedures_defreturn:()=>ka,procedures_ifreturn:()=>Ja,procedures_return:()=>qa});var C={};e.r(C),e.d(C,{tuple_change_to:()=>nu,tuple_create_llm_params:()=>du,tuple_create_with:()=>Qa,tuple_create_with_noreturn:()=>pu,tuple_create_with_text2:()=>za,tuple_create_with_text_return:()=>ja,tuple_del:()=>eu,tuple_find:()=>su,tuple_getIndex:()=>$a,tuple_getSublist:()=>ou,tuple_get_random_item:()=>uu,tuple_get_sublist:()=>au,tuple_input:()=>lu,tuple_join:()=>tu,tuple_length:()=>Za,tuple_max:()=>iu,tuple_totuple:()=>ru,tuple_trig:()=>_u});var S={};e.r(S),e.d(S,{set_add_discard:()=>Ou,set_clear:()=>hu,set_create_with:()=>Iu,set_create_with_text_return:()=>gu,set_length:()=>Tu,set_operate:()=>mu,set_operate_update:()=>Eu,set_pop:()=>Mu,set_sub:()=>Ru,set_toset:()=>Cu,set_update:()=>cu});var A={};e.r(A),e.d(A,{html_content:()=>Nu,html_content_more:()=>Du,html_document:()=>Su,html_form:()=>Fu,html_head_body:()=>Lu,html_style:()=>fu,html_style_content:()=>Pu,html_text:()=>vu,html_title:()=>Au});var L={};e.r(L),e.d(L,{attribute_access:()=>Bu,function_call:()=>Vu,raw_block:()=>Yu,raw_empty:()=>yu,raw_expression:()=>Xu,raw_table:()=>bu,type_check:()=>xu});var N={};e.r(N),e.d(N,{PIN_init:()=>Wr,actuator_extern_get_led_bright:()=>er,actuator_extern_get_led_state:()=>tr,actuator_extern_led_bright:()=>Zu,actuator_extern_led_brightness:()=>ir,actuator_ms32006_dcmotor:()=>lr,actuator_ms32006_init:()=>rr,actuator_ms32006_stepper:()=>dr,actuator_neopixel_init:()=>Ir,actuator_neopixel_rgb:()=>Tr,actuator_neopixel_rgb_all:()=>Mr,actuator_neopixel_rgb_show_all_chase:()=>Er,actuator_neopixel_rgb_show_all_rainbow:()=>mr,actuator_neopixel_write:()=>hr,actuator_use_uart_init:()=>Or,esp32_music_get_tempo_extern:()=>Qu,esp32_music_pitch:()=>Wu,esp32_music_pitch_init:()=>Hu,esp32_music_pitch_with_time:()=>Ku,esp32_music_play_list:()=>Ju,esp32_music_reset_extern:()=>zu,esp32_music_set_tempo_extern:()=>qu,esp32_music_stop:()=>ju,esp32_set_music_volume:()=>$u,mixbot_actuator_extern_get_addr:()=>kr,mixbot_actuator_extern_set_addr:()=>Hr,mixbot_addr_extern:()=>Fr,parrot_PIN_init:()=>Qr,parrot_move_speed:()=>zr,pin_led_bright:()=>Kr,player_insert_music:()=>Ar,player_play_music:()=>Sr,player_set_mode:()=>Cr,player_set_play:()=>cr,player_set_volume:()=>gr,player_whether_stop:()=>Rr,robot_led_extern:()=>Xr,robot_led_extern_get_value:()=>yr,robot_motor_extern:()=>Pr,robot_motor_extern_get_speed:()=>vr,robot_servo_extern_absolute_run:()=>Br,robot_servo_extern_get_status:()=>br,robot_servo_extern_relative_continue:()=>wr,robot_servo_extern_relative_origin:()=>Gr,robot_servo_extern_relative_run:()=>Ur,robot_servo_extern_stop:()=>Vr,robot_servo_extern_stop_mode:()=>xr,robot_traffic_light_extern:()=>Yr,servo_PIN_init:()=>Jr,servo_get_angle:()=>ar,servo_get_speed:()=>ur,servo_init:()=>nr,servo_move:()=>sr,servo_move_angle:()=>qr,servo_set_angle:()=>or,servo_set_speed:()=>pr,servo_speed_360:()=>_r,syn6288_builtin_voice:()=>Dr,syn6288_get_voice:()=>Nr,syn6288_set_voice:()=>Lr,syn6288_tts_play:()=>fr});var D={};e.r(D),e.d(D,{actuator_dc_motor:()=>fl,actuator_dc_motor_stop:()=>Fl,actuator_get_led_bright:()=>tl,actuator_get_led_state:()=>il,actuator_led_bright:()=>el,actuator_led_brightness:()=>nl,actuator_mixbot_buzzer_on_off:()=>yl,actuator_mixgo_nova_mic_get:()=>Gl,actuator_mixgo_nova_mic_set:()=>Bl,actuator_mixgo_nova_onboard_music_pitch:()=>Kl,actuator_mixgo_nova_onboard_music_stop:()=>Jl,actuator_mixgo_nova_play_audio:()=>Hl,actuator_mixgo_nova_play_online_audio:()=>Wl,actuator_mixgo_nova_record_audio:()=>kl,actuator_mixgo_nova_voice_get:()=>wl,actuator_mixgo_nova_voice_set:()=>Ul,actuator_mixgo_zero_led_color:()=>sl,actuator_onboard_neopixel_rgb:()=>rl,actuator_onboard_neopixel_rgb_all:()=>ll,actuator_onboard_neopixel_rgb_show_all_chase:()=>Il,actuator_onboard_neopixel_rgb_show_all_rainbow:()=>dl,actuator_onboard_neopixel_write:()=>Tl,actuator_rm_onboard_neopixel_rgb:()=>Ml,actuator_rm_onboard_neopixel_rgb_all:()=>hl,actuator_rm_onboard_neopixel_rgb_show_all_chase:()=>ml,actuator_stepper_keep:()=>Nl,actuator_stepper_stop:()=>Dl,analog_ble_keyboard_init:()=>od,analog_ble_keyboard_input:()=>ud,analog_ble_keyboard_mouse_init:()=>md,analog_ble_keyboard_mouse_input:()=>cd,analog_ble_keyboard_mouse_send_battery:()=>Rd,analog_ble_keyboard_mouse_str:()=>gd,analog_ble_keyboard_send_battery:()=>ld,analog_ble_keyboard_str:()=>rd,analog_ble_mouse_init:()=>dd,analog_ble_mouse_input:()=>Md,analog_ble_mouse_keyboard_input:()=>Cd,analog_ble_mouse_send_battery:()=>hd,analog_keyboard_input:()=>jl,analog_keyboard_str:()=>_d,analog_mouse_input:()=>nd,backstage_onboard_music_play_list:()=>Al,bitbot_motor:()=>Vl,bitbot_move:()=>bl,bitbot_stop:()=>xl,ble_keyboard_connect:()=>ad,ble_keyboard_get_mac:()=>pd,ble_keyboard_mouse_connect:()=>Od,ble_keyboard_mouse_get_mac:()=>Ed,ble_mouse_connect:()=>Td,ble_mouse_get_mac:()=>Id,cc_number:()=>ul,educore_ble_keyboard_input:()=>Yd,educore_ble_sensor_connected:()=>vd,educore_ble_sensor_init:()=>Pd,educore_buzzer:()=>Sd,educore_buzzer_play_tone:()=>Ad,educore_buzzer_play_tone_time:()=>Ld,educore_buzzer_stop:()=>Nd,educore_neopixel_clear:()=>Fd,educore_neopixel_rgb:()=>fd,educore_rgb_light:()=>Dd,esp32_music_get_tempo:()=>Ol,esp32_music_reset:()=>Rl,esp32_music_set_tempo:()=>El,esp32_onboard_music_pitch:()=>cl,esp32_onboard_music_pitch_with_time:()=>gl,esp32_onboard_music_play_list:()=>Sl,esp32_onboard_music_stop:()=>Cl,general_key:()=>Zl,general_key_tuple:()=>ed,generalkey_container:()=>td,generalkey_create_with_item:()=>id,get_keyboard_light:()=>Xd,get_power_output:()=>Ql,ledswitch:()=>Zr,mixbot_motor:()=>Xl,mixbot_motor_status:()=>Pl,mixbot_move:()=>vl,mixbot_stop:()=>Yl,mouse_key:()=>sd,number:()=>$r,record_audio:()=>bd,rm_actuator_get_led_bright:()=>ol,rm_actuator_get_led_state:()=>pl,rm_actuator_led_bright:()=>_l,rm_actuator_led_brightness:()=>al,rm_motor:()=>Ll,set_all_power_output:()=>zl,set_microphone_amplification:()=>yd,set_music_volume:()=>xd,set_power_output:()=>ql,special_key:()=>$l});var f={};e.r(f),e.d(f,{ai_sensor_20object:()=>mI,ai_sensor_ailocal_class:()=>oI,ai_sensor_ailocal_class_result:()=>pI,ai_sensor_ailocal_train:()=>_I,ai_sensor_asr_recognize:()=>dI,ai_sensor_audio_play:()=>uI,ai_sensor_audio_record:()=>aI,ai_sensor_barcode:()=>Wd,ai_sensor_circle:()=>jd,ai_sensor_classifier_faces:()=>hI,ai_sensor_color:()=>tI,ai_sensor_color_chases:()=>sI,ai_sensor_color_chases_result:()=>nI,ai_sensor_config:()=>kd,ai_sensor_face:()=>MI,ai_sensor_find_20objects:()=>EI,ai_sensor_find_barcodes:()=>Kd,ai_sensor_find_circles:()=>$d,ai_sensor_find_colors:()=>iI,ai_sensor_find_licenseplates:()=>TI,ai_sensor_find_lines:()=>zd,ai_sensor_find_qrcodes:()=>wd,ai_sensor_find_rects:()=>eI,ai_sensor_find_tags:()=>qd,ai_sensor_licenseplate:()=>II,ai_sensor_line:()=>Qd,ai_sensor_qrcode:()=>Gd,ai_sensor_qrcode_lite:()=>Ud,ai_sensor_rect:()=>Zd,ai_sensor_rgb:()=>Hd,ai_sensor_tag:()=>Jd,ai_sensor_use_uart_init:()=>Bd,ai_sensor_yolo_recognize:()=>rI,ai_sensor_yolo_recognize_result:()=>lI});var F={};e.r(F),e.d(F,{MICROPYTHON_AI_Speech_asr:()=>cI,MICROPYTHON_AI_Speech_unit:()=>RI,MICROPYTHON_AI_client:()=>OI});var P={};e.r(P),e.d(P,{mpython_blynk_app_data:()=>bI,mpython_blynk_app_notify:()=>fI,mpython_blynk_email:()=>vI,mpython_blynk_get_timers:()=>YI,mpython_blynk_on_connected:()=>LI,mpython_blynk_on_disconnected:()=>AI,mpython_blynk_run:()=>DI,mpython_blynk_sensor_data_to_app:()=>yI,mpython_blynk_set_property:()=>PI,mpython_blynk_setup:()=>xI,mpython_blynk_stop_timers:()=>FI,mpython_blynk_sync_virtual:()=>SI,mpython_blynk_terminal_widget_vpin:()=>CI,mpython_blynktimer:()=>XI,mpython_blynktimer_run:()=>NI});var v={};e.r(v),e.d(v,{cc_g1_init:()=>VI,cc_g1_read_bat:()=>BI,cc_g1_read_joystick:()=>GI,cc_g1_read_key:()=>UI,cc_g1_turnoff:()=>wI});var Y={};e.r(Y),e.d(Y,{ce_go_dc_motor:()=>jI,ce_go_get_led_bright:()=>KI,ce_go_get_led_state:()=>JI,ce_go_hall_attachInterrupt:()=>$I,ce_go_hall_data:()=>eT,ce_go_hall_initialize:()=>ZI,ce_go_led_bright:()=>WI,ce_go_led_brightness:()=>qI,ce_go_light_number:()=>HI,ce_go_pin_light:()=>_T,ce_go_pin_near:()=>iT,ce_go_pin_near_line:()=>tT,ce_go_pin_near_state_change:()=>nT,ce_go_stepper_keep:()=>QI,ce_go_stepper_stop:()=>zI,educore_car:()=>oT,educore_car_pin_near:()=>rT,educore_car_pin_near_line:()=>uT,educore_car_stepper_keep:()=>pT,educore_car_stepper_stop:()=>aT,sensor_mixgome_eulerangles:()=>sT});var X={};e.r(X),e.d(X,{communicate_bluetooth_central_init:()=>KT,communicate_bluetooth_connect:()=>zT,communicate_bluetooth_disconnect:()=>jT,communicate_bluetooth_handle:()=>iM,communicate_bluetooth_is_connected:()=>ZT,communicate_bluetooth_mac:()=>QT,communicate_bluetooth_peripheral_init:()=>JT,communicate_bluetooth_recv:()=>eM,communicate_bluetooth_recv_only:()=>tM,communicate_bluetooth_scan:()=>qT,communicate_bluetooth_send:()=>$T,communicate_espnow_init:()=>nM,communicate_espnow_init_new:()=>sM,communicate_i2c_available:()=>DT,communicate_i2c_init:()=>TT,communicate_i2c_master_read:()=>NT,communicate_i2c_onboard:()=>dT,communicate_i2c_read:()=>MT,communicate_i2c_scan:()=>mT,communicate_i2c_write:()=>hT,communicate_ir_recv_init:()=>bT,communicate_ir_send_init:()=>UT,communicate_ow_init:()=>FT,communicate_ow_read:()=>vT,communicate_ow_reset:()=>yT,communicate_ow_scan:()=>PT,communicate_ow_select:()=>XT,communicate_ow_write:()=>YT,communicate_spi_buffer:()=>RT,communicate_spi_init:()=>ET,communicate_spi_onboard:()=>IT,communicate_spi_read:()=>cT,communicate_spi_read_output:()=>gT,communicate_spi_readinto:()=>CT,communicate_spi_readinto_output:()=>ST,communicate_spi_set:()=>OT,communicate_spi_write:()=>AT,communicate_spi_write_readinto:()=>LT,espnow_radio_channel:()=>rM,espnow_radio_channel_new:()=>dM,espnow_radio_on_off:()=>IM,espnow_radio_rec:()=>MM,espnow_radio_recv:()=>mM,espnow_radio_recv_certain_msg:()=>EM,espnow_radio_recv_certain_msg_new:()=>RM,espnow_radio_recv_msg:()=>hM,espnow_radio_recv_new:()=>OM,espnow_radio_send:()=>TM,espnow_radio_txpower:()=>lM,i2c_available:()=>wM,i2c_init:()=>DM,i2c_master_reader2:()=>UM,i2c_read:()=>fM,i2c_scan:()=>PM,i2c_slave_onreceive:()=>fT,i2c_write:()=>FM,internal_variable:()=>xT,ir_recv_timeout:()=>GT,ir_transmit_busy:()=>WT,ir_transmit_conventional_data:()=>wT,ir_transmit_raw_code:()=>HT,ir_transmit_study_code:()=>kT,ir_whether_recv:()=>BT,lora_init:()=>cM,lora_packet:()=>gM,lora_recv:()=>SM,lora_send:()=>CM,network_espnow_info:()=>oM,network_espnow_mac:()=>_M,network_espnow_recv:()=>pM,network_espnow_recv_handle:()=>uM,network_espnow_send:()=>aM,recv_fun:()=>VT,spi_buffer:()=>XM,spi_init:()=>vM,spi_read:()=>yM,spi_read_output:()=>bM,spi_readinto:()=>xM,spi_readinto_output:()=>VM,spi_set:()=>YM,spi_write:()=>BM,spi_write_readinto:()=>GM,urequests_attribute:()=>LM,urequests_get:()=>AM,urequests_method:()=>NM});var y={};e.r(y),e.d(y,{display_animate:()=>Rh,display_blink_rate:()=>hh,display_circle:()=>ch,display_color_seclet:()=>Yh,display_draw_4strings:()=>rh,display_fill:()=>Oh,display_get_screen_image:()=>Mh,display_help:()=>Ch,display_image_size:()=>lh,display_lcd_use_i2c_init:()=>Bh,display_line:()=>Ih,display_line_arbitrarily:()=>Th,display_matrix_extern_bright_point:()=>ih,display_matrix_extern_bright_screen:()=>sh,display_matrix_extern_clear:()=>_h,display_matrix_extern_get_pixel:()=>th,display_matrix_extern_get_screen_pixel:()=>nh,display_matrix_extern_image_builtins:()=>oh,display_matrix_extern_scroll_string:()=>zM,display_matrix_extern_scroll_string_delay:()=>jM,display_matrix_extern_shift:()=>eh,display_matrix_extern_show_frame_string:()=>$M,display_matrix_extern_show_frame_string_delay:()=>ZM,display_matrix_extern_show_image:()=>qM,display_matrix_extern_show_image_or_string_delay:()=>QM,display_matrix_use_i2c_init:()=>JM,display_oled_drawPixel:()=>Ah,display_oled_showBitmap:()=>Sh,display_oled_use_i2c_init:()=>Hh,display_onoff:()=>Eh,display_rect:()=>dh,display_rgb_color:()=>mh,display_tm1650_power:()=>Nh,display_tm1650_set_brightness:()=>Fh,display_tm1650_show_dot:()=>fh,display_tm1650_show_num:()=>Dh,display_tm_use_i2c_init:()=>Lh,display_triangle:()=>gh,display_use_i2c_init:()=>uh,extern_oled_bright_point:()=>tm,extern_oled_clear:()=>im,extern_oled_get_pixel:()=>em,extern_oled_hvline:()=>sm,extern_oled_line:()=>_m,extern_oled_scroll_string:()=>Qh,extern_oled_scroll_string_delay:()=>zh,extern_oled_shape_rect:()=>nm,extern_oled_shift:()=>Zh,extern_oled_show_frame_string:()=>jh,extern_oled_show_frame_string_delay:()=>$h,extern_oled_show_image:()=>Wh,extern_oled_show_image_or_string_delay:()=>qh,extern_oled_show_image_xy:()=>Kh,extern_oled_show_string:()=>Jh,lcd_backlight:()=>wh,lcd_clear:()=>kh,lcd_print_string:()=>Uh,lcd_show_image_or_string_delay:()=>Gh,matrix_extern_image_arithmetic:()=>ph,matrix_extern_image_invert:()=>ah,tft_fill:()=>xh,tft_line_arbitrarily:()=>Vh,tft_scroll_string_delay:()=>yh,tft_show_frame_string_delay:()=>bh,tft_show_image_or_string_delay:()=>Xh,tft_show_image_xy:()=>vh,tft_use_spi_init:()=>Ph});var b={};e.r(b),e.d(b,{bitbot_display_bitmap_create:()=>Zm,bitbot_display_image_create:()=>$m,display_available:()=>Nm,display_bitmap_create:()=>hm,display_bright_point:()=>Cm,display_bright_screen:()=>Am,display_clear:()=>Lm,display_get_pixel:()=>gm,display_get_screen_pixel:()=>Sm,display_image_builtins:()=>mm,display_image_builtins_all:()=>Em,display_image_create:()=>Mm,display_scroll_string:()=>um,display_scroll_string_delay:()=>rm,display_scroll_way:()=>lm,display_shift:()=>cm,display_show_frame_string:()=>Im,display_show_frame_string_delay:()=>Tm,display_show_image:()=>pm,display_show_image_or_string_delay:()=>am,draw_pointer:()=>hE,image_arithmetic:()=>Om,image_invert:()=>Rm,mixbot_display_bitmap_create:()=>Jm,mixbot_display_bright_screen:()=>zm,mixbot_display_get_ambientbright:()=>Qm,mixbot_display_get_screen_pixel:()=>qm,mixbot_display_image_create:()=>Km,mixbot_display_rotate:()=>jm,mixgo_display_bitmap_create:()=>Ym,mixgo_display_image_create_new:()=>vm,mixgome_display_bitmap_create:()=>fm,mixgome_display_font:()=>Xm,mixgome_display_image_create:()=>Dm,mixgomini_display_bitmap_create:()=>Pm,mixgomini_display_image_create:()=>Fm,mpython_display_hvline:()=>km,mpython_display_line:()=>Hm,mpython_display_shape_rect:()=>wm,mpython_pbm_image:()=>Wm,nova_draw_pointer:()=>mE,onboard_oled_bright_point:()=>Um,onboard_oled_scroll_string_delay:()=>Bm,onboard_oled_show_frame_string_delay:()=>Gm,onboard_oled_show_image:()=>ym,onboard_oled_show_image_or_string_delay:()=>Vm,onboard_oled_show_image_xy:()=>bm,onboard_oled_show_string:()=>xm,onboard_tft_bright_point:()=>aE,onboard_tft_bright_screen:()=>SE,onboard_tft_clear:()=>AE,onboard_tft_clock_clear:()=>TE,onboard_tft_clock_draw:()=>IE,onboard_tft_clock_get_rtctime:()=>lE,onboard_tft_clock_init:()=>rE,onboard_tft_clock_set_time:()=>dE,onboard_tft_display_hvline:()=>_E,onboard_tft_display_line:()=>oE,onboard_tft_display_shape_circle:()=>ME,onboard_tft_display_shape_rect:()=>sE,onboard_tft_fill:()=>uE,onboard_tft_get_pixel:()=>pE,onboard_tft_get_screen_pixel:()=>CE,onboard_tft_scroll_string:()=>RE,onboard_tft_scroll_string_delay:()=>dm,onboard_tft_shift:()=>gE,onboard_tft_show_frame_string:()=>cE,onboard_tft_show_frame_string_delay:()=>nE,onboard_tft_show_image:()=>OE,onboard_tft_show_image_or_string_delay:()=>iE,onboard_tft_show_image_xy:()=>eE,onboard_tft_show_image_xy_direct:()=>tE,onboard_tft_show_texts:()=>EE});var x={};e.r(x),e.d(x,{factory_block:()=>kE,factory_block_return:()=>HE,factory_block_return_with_textarea:()=>KE,factory_block_with_textarea:()=>WE,factory_callMethod_noreturn:()=>UE,factory_callMethod_return:()=>wE,factory_create_with_container:()=>xE,factory_create_with_item:()=>VE,factory_declare:()=>GE,factory_from_import:()=>XE,factory_function_noreturn:()=>bE,factory_function_return:()=>BE,factory_import:()=>yE,folding_block:()=>JE});var V={};e.r(V),e.d(V,{controls_pin_attachInterrupt:()=>MO,inout_analog_atten:()=>nO,inout_analog_read:()=>iO,inout_analog_read_init:()=>uO,inout_analog_write:()=>ZE,inout_analog_write_init:()=>aO,inout_analog_write_set:()=>eO,inout_analog_write_set_freq:()=>dO,inout_digital_init:()=>oO,inout_digital_read:()=>jE,inout_digital_write:()=>zE,inout_highlow:()=>QE,inout_pinMode:()=>lO,inout_pin_attachInterrupt:()=>_O,inout_pin_pressed:()=>sO,inout_pin_pressed_init:()=>rO,inout_pwm_analog_write:()=>$E,inout_pwm_analog_write_init:()=>pO,inout_pwm_analog_write_set_freq:()=>tO,pin_pressed:()=>TO,pin_pressed_init:()=>IO});var B={};e.r(B),e.d(B,{IOT_CONNECT_OLLAMA:()=>ZO,IOT_EMQX_INIT_AND_CONNECT_BY_MIXLY_CODE:()=>GO,IOT_EMQX_INIT_AND_CONNECT_BY_SHARE_CODE:()=>BO,IOT_EMQX_PING:()=>xO,IOT_FORMATTING:()=>yO,IOT_FORMAT_STRING:()=>bO,IOT_MIXIO_NTP:()=>VO,IOT_MIXIO_PUBLISH:()=>NO,IOT_MIXIO_PUBLISHEX:()=>DO,IOT_MIXIO_SUBSCRIBE:()=>fO,iot_checkonenet:()=>zO,iot_client_onboard:()=>wO,iot_connect_ollama:()=>$O,iot_connect_openai:()=>eR,iot_create_with_item:()=>AO,iot_http_client:()=>kO,iot_http_data:()=>HO,iot_mixio_check:()=>vO,iot_mixio_connect:()=>LO,iot_mixio_connect_only:()=>PO,iot_mixio_disconnect:()=>FO,iot_mixio_format_msg:()=>XO,iot_mixio_format_topic:()=>YO,iot_mixly_key:()=>UO,iot_mqtt_client:()=>WO,iot_mqtt_data:()=>KO,iot_onenet_check:()=>RO,iot_onenet_connect:()=>EO,iot_onenet_disconnect:()=>OO,iot_onenet_publish:()=>gO,iot_onenet_publish_dict:()=>cO,iot_onenetconnect:()=>qO,iot_onenetdisconnect:()=>QO,iot_publish:()=>jO,iot_publish_container:()=>CO,iot_publish_item:()=>SO,iot_tiny_web_db_count:()=>aR,iot_tiny_web_db_delete:()=>rR,iot_tiny_web_db_get:()=>pR,iot_tiny_web_db_init:()=>sR,iot_tiny_web_db_init_with_mqtt:()=>_R,iot_tiny_web_db_search:()=>uR,iot_tiny_web_db_update:()=>oR,iot_wifi_connect:()=>mO,iot_wificonnect:()=>JO,ollama_empty_history:()=>nR,use_ollama_llm_to_chat:()=>tR,use_ollama_llm_to_chat_return:()=>iR});var G={};e.r(G),e.d(G,{educore_mqtt_connect:()=>HR,educore_mqtt_connect_success:()=>qR,educore_mqtt_subscribe_message:()=>WR,educore_mqtt_topic_publish:()=>JR,educore_mqtt_topic_subscribe:()=>KR,educore_wifi_connect:()=>kR,network_ap_connect:()=>cR,network_connect:()=>hR,network_get_connect:()=>ER,network_get_wifi:()=>RR,network_init:()=>dR,network_is_active:()=>TR,network_open:()=>IR,network_scan:()=>MR,network_server:()=>gR,network_socket_accept:()=>NR,network_socket_bind:()=>SR,network_socket_close:()=>YR,network_socket_connect:()=>AR,network_socket_init:()=>CR,network_socket_listen:()=>LR,network_socket_readline:()=>DR,network_socket_receive:()=>fR,network_socket_receive_from:()=>PR,network_socket_send:()=>FR,network_socket_send_to:()=>vR,network_stop:()=>OR,network_wifi_connect:()=>mR,ntptime_address:()=>VR,ntptime_time:()=>xR,requests_attribute:()=>yR,requests_attribute2:()=>wR,requests_get:()=>XR,requests_get2:()=>GR,requests_method:()=>bR,requests_post:()=>UR});var U={};e.r(U),e.d(U,{CI130X_BROADCAST:()=>Oc,CI130X_GET_THE_RECOGNIZED_CMD:()=>Ec,CI130X_GET_WHETHER_IDENTIFY:()=>mc,CI130X_IDENTIFY_AND_SAVE:()=>hc,CI130X_SET_SYSTEM_CMD:()=>Rc,HCSR04:()=>ag,PS2_Button:()=>dg,PS2_Buttons:()=>Tg,PS2_Buttons_new:()=>Eg,PS2_State:()=>Ig,PS2_init:()=>ug,PS2_init_new:()=>hg,PS2_stk:()=>Mg,PS2_stk_new:()=>Og,PS2_vibration:()=>lg,PS2_vibration_new:()=>mg,camera_sensor_init:()=>Qg,camera_sensor_result:()=>zg,column_tube_foot:()=>tC,define_keyboards:()=>iC,educore_body_sensor:()=>Bg,educore_button_sensor_extern:()=>kg,educore_camera_sensor:()=>qg,educore_infrared_sensor:()=>wg,educore_soilhum_sensor:()=>Gg,educore_temp_sensor:()=>Jg,educore_temphum_sensor:()=>Ug,educore_ultrasonic_sensor:()=>Wg,esp32_s2_weather_init:()=>sg,esp32_s2_weather_rain:()=>og,esp32_s2_weather_wd:()=>_g,esp32_s2_weather_ws:()=>pg,extern_rfid_read:()=>Hc,extern_rfid_readcontent:()=>Kc,extern_rfid_readid:()=>Wc,extern_rfid_status:()=>Qc,extern_rfid_write:()=>Jc,extern_rfid_write_return:()=>qc,get_keboards_value:()=>nC,gnss_get_data:()=>Cg,gnss_have_data:()=>gg,init_init_rotary_encoder:()=>sC,init_matrix_keyboard:()=>Zg,interaction_whether_to_interaction:()=>Tc,interaction_whether_to_interaction_SANT:()=>Mc,line_tube_foot:()=>eC,mixbot_sensor_extern_get_addr:()=>Pg,mixbot_sensor_extern_set_addr:()=>vg,pm25_get_data:()=>cg,radar_set_DETECTION_THRESHOLD:()=>dc,radar_set_DETECTION_THRESHOLD_SANT:()=>Ic,robot_button_extern_get_value:()=>Ag,robot_color_extern_get_value:()=>Fg,robot_infrared_extern_get_value:()=>Ng,robot_infrared_extern_grey_get_value:()=>Dg,robot_potentiometer_extern_get_value:()=>fg,robot_sonar_extern_get_value:()=>Yg,robot_sonar_extern_led:()=>Xg,robot_touch_extern_get_value:()=>Lg,rotary_key:()=>_C,sensor_APDS9960_extern:()=>gc,sensor_DS18X20:()=>uc,sensor_LTR308_extern:()=>Cc,sensor_LTR390UV_extern:()=>Lc,sensor_MAX30102_extern:()=>cc,sensor_QMC5883L_extern:()=>Xc,sensor_VL530LX_extern:()=>Nc,sensor_adxl345_get_acceleration:()=>tc,sensor_aht11_extern:()=>fc,sensor_bmp:()=>pc,sensor_compass_reset:()=>wc,sensor_dht11:()=>nc,sensor_hp203_extern:()=>Fc,sensor_light_level:()=>ic,sensor_lm35:()=>rc,sensor_ltr381_extern:()=>Sc,sensor_mixgo_extern_button_attachInterrupt:()=>ZR,sensor_mixgo_extern_button_get_presses:()=>$R,sensor_mixgo_extern_button_is_pressed:()=>zR,sensor_mixgo_extern_button_was_pressed:()=>jR,sensor_mixgo_extern_light:()=>sc,sensor_mixgo_extern_pin_near:()=>oc,sensor_mixgo_extern_sound:()=>_c,sensor_mixgoce_hot_wheel_degrees:()=>ng,sensor_mixgoce_hot_wheel_is_touched:()=>ig,sensor_mpu9250_attachGestureInterrupt:()=>ec,sensor_mpu9250_calibrate_compass:()=>Bc,sensor_mpu9250_field_strength:()=>Uc,sensor_mpu9250_gesture:()=>yc,sensor_mpu9250_get_acceleration:()=>bc,sensor_mpu9250_get_gyro:()=>Vc,sensor_mpu9250_get_magnetic:()=>xc,sensor_mpu9250_temperature:()=>Gc,sensor_ms5611_extern:()=>vc,sensor_ms5611_extern_altitude:()=>Yc,sensor_read_humiture:()=>Hg,sensor_sht:()=>ac,sensor_shtc3_extern:()=>Dc,sensor_spl06_001_extern:()=>Pc,sensor_ucs12071_extern:()=>Ac,sensor_use_i2c_init:()=>lc,sensor_use_spi_init:()=>kc,sensor_use_uart_init:()=>Rg,sensor_weather_solo_init:()=>yg,sensor_weather_solo_rain:()=>Vg,sensor_weather_solo_wd:()=>bg,sensor_weather_solo_ws:()=>xg,sensor_weigh_init:()=>jg,tvoc_get_data:()=>Sg,ultrasonic_sensor_read_distance:()=>Kg,weather_data:()=>zc,weather_have_data:()=>jc,weather_set_label:()=>Zc,weather_set_label_container:()=>eg,weather_set_label_item:()=>tg,weather_uart_mixio:()=>$c,weigh_sensor_get_weight:()=>$g});var w={};e.r(w),e.d(w,{HCSR04:()=>gC,RTC_set_date:()=>cC,RTC_set_time:()=>RC,bitbot_als_num:()=>PS,dht11:()=>VS,educore_button_sensor:()=>JS,educore_button_was_pressed:()=>qS,educore_gyroscope_sensor:()=>HS,educore_gyroscope_sensor_read:()=>WS,educore_gyroscope_sensor_shake:()=>KS,educore_light_sensor:()=>kS,educore_rfid_sensor:()=>QS,educore_rfid_sensor_scan:()=>zS,educore_rfid_sensor_scan_data:()=>jS,educore_voice_sensor:()=>US,number1:()=>SC,number2:()=>AC,number3:()=>LC,number4:()=>NC,number5:()=>DC,number6:()=>fC,number7:()=>FC,onboard_RTC_get_time:()=>VC,onboard_RTC_get_time_str:()=>HC,onboard_RTC_get_timestamp:()=>BC,onboard_RTC_get_timetuple_to_str:()=>WC,onboard_RTC_set_datetime:()=>wC,onboard_RTC_settime_string:()=>UC,onboard_RTC_timestamp_totuple:()=>GC,rfid_readcontent:()=>$C,rfid_readid:()=>jC,rfid_status:()=>tS,rfid_write:()=>ZC,rfid_write_return:()=>eS,sensor_LTR308:()=>KC,sensor_aht11:()=>qC,sensor_bitbot_ALS:()=>FS,sensor_button_get_presses:()=>XS,sensor_button_is_pressed:()=>vS,sensor_button_was_pressed:()=>YS,sensor_distance_hrsc04:()=>OC,sensor_eulerangles:()=>nS,sensor_field_strength:()=>BS,sensor_get_acceleration:()=>iS,sensor_get_temperature:()=>QC,sensor_get_the_coprocessor_version:()=>$S,sensor_hp203:()=>zC,sensor_light:()=>xS,sensor_mixbot_get_gyro:()=>fS,sensor_mixbot_patrol_calibrate:()=>LS,sensor_mixbot_patrol_value:()=>NS,sensor_mixbot_temperature:()=>DS,sensor_mixgo_LTR308:()=>bC,sensor_mixgo_button_attachInterrupt:()=>rC,sensor_mixgo_button_get_presses:()=>uC,sensor_mixgo_button_is_pressed:()=>pC,sensor_mixgo_button_was_pressed:()=>aC,sensor_mixgo_cc_mmc5603_calibrate_compass:()=>TS,sensor_mixgo_cc_mmc5603_get_angle:()=>IS,sensor_mixgo_cc_mmc5603_get_magnetic:()=>dS,sensor_mixgo_light:()=>CC,sensor_mixgo_nova_LTR308:()=>yC,sensor_mixgo_nova_pin_near:()=>XC,sensor_mixgo_pin_near:()=>YC,sensor_mixgo_pin_near_double:()=>vC,sensor_mixgo_pin_near_single:()=>PC,sensor_mixgo_pin_pressed:()=>MC,sensor_mixgo_sant_color:()=>xC,sensor_mixgo_touch_slide:()=>EC,sensor_mixgocar42_button_attachInterrupt:()=>TC,sensor_mixgocar42_button_get_presses:()=>IC,sensor_mixgocar42_button_is_pressed:()=>lC,sensor_mixgocar42_button_was_pressed:()=>dC,sensor_mixgocar_battery_left:()=>AS,sensor_mixgocar_pin_near:()=>CS,sensor_mixgocar_pin_near_line:()=>gS,sensor_mixgocar_pin_near_state_change:()=>SS,sensor_mixgoce_pin_pressed:()=>hC,sensor_mixgoce_temperature:()=>hS,sensor_mixgome_temperature:()=>MS,sensor_mpython_pin_pressed:()=>mC,sensor_mpython_qmi8658_get_gyro:()=>mS,sensor_mpython_qmi8658_temperature:()=>ES,sensor_onboard_compass_reset:()=>lS,sensor_onboard_mpu9250_calibrate_compass:()=>aS,sensor_onboard_mpu9250_field_strength:()=>rS,sensor_onboard_mpu9250_gesture:()=>sS,sensor_onboard_mpu9250_get_acceleration:()=>_S,sensor_onboard_mpu9250_get_gyro:()=>pS,sensor_onboard_mpu9250_get_magnetic:()=>oS,sensor_onboard_mpu9250_temperature:()=>uS,sensor_pin_near:()=>bS,sensor_pin_pressed:()=>yS,sensor_read:()=>wS,sensor_rm_acc:()=>cS,sensor_rm_battery_left:()=>RS,sensor_rm_pin_near_double:()=>OS,sensor_rtc_init:()=>kC,sensor_sound:()=>JC,sensor_temperature:()=>GS,simulated_light_sensor:()=>ZS});var k={};e.r(k),e.d(k,{serial_any:()=>uA,serial_begin:()=>TA,serial_print:()=>sA,serial_print_byte:()=>nA,serial_print_hex:()=>oA,serial_println:()=>_A,serial_read_from_ai:()=>CA,serial_readline:()=>rA,serial_readstr:()=>aA,serial_readstr_until:()=>lA,serial_receive_data_event:()=>pA,serial_send_to_ai:()=>gA,serial_softserial:()=>IA,serial_softserial_new:()=>dA,system_input:()=>MA,system_print:()=>hA,system_print_container:()=>RA,system_print_end:()=>EA,system_print_inline:()=>mA,system_print_item:()=>cA,system_print_many:()=>OA});var H={};e.r(H),e.d(H,{Panic_with_status_code:()=>NA,Timer_init:()=>UA,base_delay:()=>HA,controls_delay:()=>LA,controls_delay_new:()=>AA,controls_millis:()=>fA,controls_uname:()=>PA,raw_block:()=>FA,reset:()=>DA,set_system_timer:()=>bA,system_bitbot_shutdown:()=>GA,system_machine_reset:()=>BA,system_ticks_diff:()=>XA,system_timer:()=>YA,system_timer_init:()=>yA,system_wdt_feed:()=>VA,system_wdt_init:()=>xA,time_ticks_diff:()=>kA,timer:()=>vA,timer2:()=>wA});var W={};e.r(W),e.d(W,{Air_daily_content:()=>sL,Air_now_content:()=>jA,Geo_moon_content:()=>oL,Geo_sun_content:()=>_L,Life_suggestion_content:()=>ZA,Location_search_content:()=>tL,Tide_daily_content:()=>eL,WEATHER_DAILY:()=>JA,WEATHER_HOUR:()=>qA,WEATHER_NOW:()=>KA,Weather_alarm_content:()=>$A,Weather_daily:()=>iL,Weather_daily_content:()=>nL,Weather_now:()=>QA,Weather_now_content:()=>zA});var K={};e.r(K),e.d(K,{PIN_init:()=>pN,actuator_extern_get_led_bright:()=>NL,actuator_extern_get_led_state:()=>DL,actuator_extern_led_bright:()=>LL,actuator_extern_led_brightness:()=>fL,actuator_ms32006_dcmotor:()=>TL,actuator_ms32006_init:()=>IL,actuator_ms32006_stepper:()=>ML,actuator_neopixel_init:()=>FL,actuator_neopixel_rgb:()=>YL,actuator_neopixel_rgb_all:()=>PL,actuator_neopixel_rgb_show_all_chase:()=>XL,actuator_neopixel_rgb_show_all_rainbow:()=>yL,actuator_neopixel_write:()=>vL,actuator_use_uart_init:()=>bL,esp32_music_get_tempo_extern:()=>gL,esp32_music_pitch:()=>mL,esp32_music_pitch_init:()=>hL,esp32_music_pitch_with_time:()=>EL,esp32_music_play_list:()=>CL,esp32_music_reset_extern:()=>SL,esp32_music_set_tempo_extern:()=>cL,esp32_music_stop:()=>OL,esp32_set_music_volume:()=>RL,mixbot_actuator_extern_get_addr:()=>_N,mixbot_actuator_extern_set_addr:()=>oN,mixbot_addr_extern:()=>KL,parrot_PIN_init:()=>lN,parrot_move_speed:()=>dN,pin_led_bright:()=>aN,player_play_music:()=>UL,player_set_mode:()=>GL,player_set_play:()=>VL,player_set_volume:()=>BL,player_whether_stop:()=>xL,robot_led_extern:()=>zL,robot_led_extern_get_value:()=>jL,robot_motor_extern:()=>JL,robot_motor_extern_get_speed:()=>qL,robot_servo_extern_absolute_run:()=>tN,robot_servo_extern_get_status:()=>$L,robot_servo_extern_relative_continue:()=>sN,robot_servo_extern_relative_origin:()=>iN,robot_servo_extern_relative_run:()=>nN,robot_servo_extern_stop:()=>eN,robot_servo_extern_stop_mode:()=>ZL,robot_traffic_light_extern:()=>QL,servo_PIN_init:()=>uN,servo_get_angle:()=>lL,servo_get_speed:()=>dL,servo_init:()=>pL,servo_move:()=>AL,servo_move_angle:()=>rN,servo_set_angle:()=>uL,servo_set_speed:()=>rL,servo_speed_360:()=>aL,syn6288_builtin_voice:()=>HL,syn6288_get_voice:()=>kL,syn6288_set_voice:()=>wL,syn6288_tts_play:()=>WL});var J={};e.r(J),e.d(J,{actuator_dc_motor:()=>UN,actuator_dc_motor_stop:()=>wN,actuator_get_led_bright:()=>SN,actuator_get_led_state:()=>AN,actuator_led_bright:()=>CN,actuator_led_brightness:()=>LN,actuator_mixbot_buzzer_on_off:()=>JN,actuator_mixgo_nova_mic_get:()=>$N,actuator_mixgo_nova_mic_set:()=>jN,actuator_mixgo_nova_onboard_music_pitch:()=>sD,actuator_mixgo_nova_onboard_music_stop:()=>_D,actuator_mixgo_nova_play_audio:()=>iD,actuator_mixgo_nova_play_online_audio:()=>nD,actuator_mixgo_nova_record_audio:()=>tD,actuator_mixgo_nova_voice_get:()=>eD,actuator_mixgo_nova_voice_set:()=>ZN,actuator_mixgo_zero_led_color:()=>NN,actuator_onboard_neopixel_rgb:()=>XN,actuator_onboard_neopixel_rgb_all:()=>yN,actuator_onboard_neopixel_rgb_show_all_chase:()=>bN,actuator_onboard_neopixel_rgb_show_all_rainbow:()=>xN,actuator_onboard_neopixel_write:()=>YN,actuator_stepper_keep:()=>BN,actuator_stepper_stop:()=>GN,analog_ble_keyboard_init:()=>hD,analog_ble_keyboard_input:()=>OD,analog_ble_keyboard_mouse_init:()=>ND,analog_ble_keyboard_mouse_input:()=>PD,analog_ble_keyboard_mouse_send_battery:()=>FD,analog_ble_keyboard_mouse_str:()=>vD,analog_ble_keyboard_send_battery:()=>cD,analog_ble_keyboard_str:()=>RD,analog_ble_mouse_init:()=>gD,analog_ble_mouse_input:()=>AD,analog_ble_mouse_keyboard_input:()=>YD,analog_ble_mouse_send_battery:()=>LD,analog_keyboard_input:()=>uD,analog_keyboard_str:()=>TD,analog_mouse_input:()=>dD,backstage_onboard_music_play_list:()=>ON,bitbot_motor:()=>zN,bitbot_move:()=>qN,bitbot_stop:()=>QN,ble_keyboard_connect:()=>ED,ble_keyboard_get_mac:()=>mD,ble_keyboard_mouse_connect:()=>fD,ble_keyboard_mouse_get_mac:()=>DD,ble_mouse_connect:()=>SD,ble_mouse_get_mac:()=>CD,cc_number:()=>DN,educore_ble_keyboard_input:()=>kD,educore_ble_sensor_connected:()=>wD,educore_ble_sensor_init:()=>UD,educore_buzzer:()=>XD,educore_buzzer_play_tone:()=>yD,educore_buzzer_play_tone_time:()=>bD,educore_buzzer_stop:()=>xD,educore_neopixel_clear:()=>GD,educore_neopixel_rgb:()=>BD,educore_rgb_light:()=>VD,esp32_music_get_tempo:()=>TN,esp32_music_reset:()=>RN,esp32_music_set_tempo:()=>IN,esp32_onboard_music_pitch:()=>MN,esp32_onboard_music_pitch_with_time:()=>hN,esp32_onboard_music_play_list:()=>EN,esp32_onboard_music_stop:()=>mN,general_key:()=>lD,general_key_tuple:()=>MD,get_keyboard_light:()=>HD,get_power_output:()=>pD,ledswitch:()=>gN,mixbot_motor:()=>KN,mixbot_motor_status:()=>kN,mixbot_move:()=>HN,mixbot_stop:()=>WN,mouse_key:()=>ID,number:()=>cN,record_audio:()=>KD,rm_actuator_get_led_bright:()=>FN,rm_actuator_get_led_state:()=>PN,rm_actuator_led_bright:()=>fN,rm_actuator_led_brightness:()=>vN,rm_motor:()=>VN,set_all_power_output:()=>aD,set_microphone_amplification:()=>WD,set_music_volume:()=>JD,set_power_output:()=>oD,special_key:()=>rD});var q={};e.r(q),e.d(q,{ai_sensor_20object:()=>Nf,ai_sensor_ailocal_class:()=>hf,ai_sensor_ailocal_class_result:()=>mf,ai_sensor_ailocal_train:()=>Mf,ai_sensor_asr_recognize:()=>gf,ai_sensor_audio_play:()=>Of,ai_sensor_audio_record:()=>Ef,ai_sensor_barcode:()=>ef,ai_sensor_circle:()=>pf,ai_sensor_classifier_faces:()=>Lf,ai_sensor_color:()=>lf,ai_sensor_color_chases:()=>Tf,ai_sensor_color_chases_result:()=>If,ai_sensor_config:()=>zD,ai_sensor_face:()=>Af,ai_sensor_find_20objects:()=>Df,ai_sensor_find_barcodes:()=>tf,ai_sensor_find_circles:()=>af,ai_sensor_find_colors:()=>df,ai_sensor_find_licenseplates:()=>Sf,ai_sensor_find_lines:()=>of,ai_sensor_find_qrcodes:()=>ZD,ai_sensor_find_rects:()=>rf,ai_sensor_find_tags:()=>sf,ai_sensor_licenseplate:()=>Cf,ai_sensor_line:()=>_f,ai_sensor_qrcode:()=>$D,ai_sensor_qrcode_lite:()=>QD,ai_sensor_rect:()=>uf,ai_sensor_rgb:()=>jD,ai_sensor_tag:()=>nf,ai_sensor_use_uart_init:()=>qD,ai_sensor_yolo_recognize:()=>Rf,ai_sensor_yolo_recognize_result:()=>cf});var Q={};e.r(Q),e.d(Q,{MICROPYTHON_AI_Speech_asr:()=>Pf,MICROPYTHON_AI_Speech_unit:()=>Ff,MICROPYTHON_AI_client:()=>ff});var z={};e.r(z),e.d(z,{mpython_blynk_app_data:()=>kf,mpython_blynk_app_notify:()=>Vf,mpython_blynk_email:()=>Hf,mpython_blynk_get_timers:()=>Gf,mpython_blynk_on_connected:()=>yf,mpython_blynk_on_disconnected:()=>Xf,mpython_blynk_run:()=>xf,mpython_blynk_sensor_data_to_app:()=>wf,mpython_blynk_set_property:()=>Wf,mpython_blynk_setup:()=>Kf,mpython_blynk_stop_timers:()=>Bf,mpython_blynk_sync_virtual:()=>Yf,mpython_blynk_terminal_widget_vpin:()=>vf,mpython_blynktimer:()=>Uf,mpython_blynktimer_run:()=>bf});var j={};e.r(j),e.d(j,{cc_g1_read_bat:()=>Jf,cc_g1_read_joystick:()=>qf,cc_g1_read_key:()=>Qf,cc_g1_turnoff:()=>zf});var $={};e.r($),e.d($,{ce_go_dc_motor:()=>sF,ce_go_get_led_bright:()=>Zf,ce_go_get_led_state:()=>eF,ce_go_hall_attachInterrupt:()=>_F,ce_go_hall_data:()=>pF,ce_go_hall_initialize:()=>oF,ce_go_led_bright:()=>$f,ce_go_led_brightness:()=>tF,ce_go_light_number:()=>jf,ce_go_pin_light:()=>dF,ce_go_pin_near:()=>uF,ce_go_pin_near_line:()=>aF,ce_go_pin_near_state_change:()=>rF,ce_go_stepper_keep:()=>iF,ce_go_stepper_stop:()=>nF,educore_car:()=>IF,educore_car_pin_near:()=>mF,educore_car_pin_near_line:()=>hF,educore_car_stepper_keep:()=>TF,educore_car_stepper_stop:()=>MF,sensor_mixgome_eulerangles:()=>lF});var Z={};e.r(Z),e.d(Z,{communicate_bluetooth_central_init:()=>$F,communicate_bluetooth_connect:()=>tP,communicate_bluetooth_disconnect:()=>iP,communicate_bluetooth_handle:()=>aP,communicate_bluetooth_is_connected:()=>sP,communicate_bluetooth_mac:()=>nP,communicate_bluetooth_peripheral_init:()=>ZF,communicate_bluetooth_recv:()=>pP,communicate_bluetooth_recv_only:()=>oP,communicate_bluetooth_scan:()=>eP,communicate_bluetooth_send:()=>_P,communicate_espnow_init:()=>uP,communicate_espnow_init_new:()=>rP,communicate_i2c_available:()=>AF,communicate_i2c_init:()=>RF,communicate_i2c_master_read:()=>SF,communicate_i2c_onboard:()=>EF,communicate_i2c_read:()=>cF,communicate_i2c_scan:()=>CF,communicate_i2c_write:()=>gF,communicate_ir_recv_init:()=>wF,communicate_ir_send_init:()=>JF,communicate_ow_init:()=>bF,communicate_ow_read:()=>BF,communicate_ow_reset:()=>VF,communicate_ow_scan:()=>xF,communicate_ow_select:()=>UF,communicate_ow_write:()=>GF,communicate_spi_buffer:()=>fF,communicate_spi_init:()=>NF,communicate_spi_onboard:()=>OF,communicate_spi_read:()=>FF,communicate_spi_read_output:()=>PF,communicate_spi_readinto:()=>vF,communicate_spi_readinto_output:()=>YF,communicate_spi_set:()=>DF,communicate_spi_write:()=>XF,communicate_spi_write_readinto:()=>yF,espnow_radio_channel:()=>hP,espnow_radio_channel_new:()=>EP,espnow_radio_on_off:()=>OP,espnow_radio_rec:()=>cP,espnow_radio_recv:()=>CP,espnow_radio_recv_certain_msg:()=>SP,espnow_radio_recv_certain_msg_new:()=>LP,espnow_radio_recv_msg:()=>gP,espnow_radio_recv_new:()=>AP,espnow_radio_send:()=>RP,espnow_radio_txpower:()=>mP,i2c_slave_onreceive:()=>LF,internal_variable:()=>kF,ir_recv_timeout:()=>KF,ir_transmit_busy:()=>jF,ir_transmit_conventional_data:()=>qF,ir_transmit_raw_code:()=>zF,ir_transmit_study_code:()=>QF,ir_whether_recv:()=>WF,lora_init:()=>NP,lora_packet:()=>DP,lora_recv:()=>FP,lora_send:()=>fP,network_espnow_info:()=>dP,network_espnow_mac:()=>lP,network_espnow_recv:()=>IP,network_espnow_recv_handle:()=>MP,network_espnow_send:()=>TP,recv_fun:()=>HF,urequests_attribute:()=>vP,urequests_get:()=>PP,urequests_method:()=>YP});var ee={};e.r(ee),e.d(ee,{display_animate:()=>sv,display_circle:()=>_v,display_color_seclet:()=>hv,display_draw_4strings:()=>jP,display_fill:()=>nv,display_lcd_use_i2c_init:()=>gv,display_line:()=>ev,display_line_arbitrarily:()=>$P,display_matrix_extern_bright_point:()=>HP,display_matrix_extern_bright_screen:()=>KP,display_matrix_extern_clear:()=>UP,display_matrix_extern_get_pixel:()=>kP,display_matrix_extern_get_screen_pixel:()=>WP,display_matrix_extern_image_builtins:()=>JP,display_matrix_extern_scroll_string:()=>BP,display_matrix_extern_scroll_string_delay:()=>GP,display_matrix_extern_shift:()=>wP,display_matrix_extern_show_frame_string:()=>xP,display_matrix_extern_show_frame_string_delay:()=>VP,display_matrix_extern_show_image:()=>yP,display_matrix_extern_show_image_or_string_delay:()=>bP,display_matrix_use_i2c_init:()=>XP,display_oled_drawPixel:()=>av,display_oled_showBitmap:()=>pv,display_oled_use_i2c_init:()=>Nv,display_onoff:()=>tv,display_rect:()=>ZP,display_tm1650_power:()=>rv,display_tm1650_set_brightness:()=>Iv,display_tm1650_show_dot:()=>dv,display_tm1650_show_num:()=>lv,display_tm_use_i2c_init:()=>uv,display_triangle:()=>ov,display_use_i2c_init:()=>zP,extern_oled_bright_point:()=>Bv,extern_oled_clear:()=>bv,extern_oled_get_pixel:()=>Vv,extern_oled_hvline:()=>Uv,extern_oled_line:()=>wv,extern_oled_scroll_string:()=>Xv,extern_oled_scroll_string_delay:()=>yv,extern_oled_shape_rect:()=>Gv,extern_oled_shift:()=>xv,extern_oled_show_frame_string:()=>vv,extern_oled_show_frame_string_delay:()=>Yv,extern_oled_show_image:()=>Dv,extern_oled_show_image_or_string_delay:()=>Pv,extern_oled_show_image_xy:()=>fv,extern_oled_show_string:()=>Fv,image_shift:()=>iv,lcd_backlight:()=>Av,lcd_clear:()=>Lv,lcd_print_string:()=>Sv,lcd_show_image_or_string_delay:()=>Cv,matrix_extern_image_arithmetic:()=>qP,matrix_extern_image_invert:()=>QP,tft_fill:()=>Rv,tft_line_arbitrarily:()=>cv,tft_scroll_string_delay:()=>Ov,tft_show_frame_string_delay:()=>Ev,tft_show_image_or_string_delay:()=>mv,tft_show_image_xy:()=>Mv,tft_use_spi_init:()=>Tv});var te={};e.r(te),e.d(te,{bitbot_display_bitmap_create:()=>yY,bitbot_display_image_create:()=>XY,display_available:()=>iY,display_bitmap_create:()=>eY,display_bright_point:()=>pY,display_bright_screen:()=>uY,display_clear:()=>tY,display_get_pixel:()=>oY,display_get_screen_pixel:()=>aY,display_image_builtins:()=>jv,display_image_builtins_all:()=>$v,display_image_create:()=>Zv,display_scroll_string:()=>Jv,display_scroll_string_delay:()=>qv,display_scroll_way:()=>Qv,display_shift:()=>_Y,display_show_frame_string:()=>Wv,display_show_frame_string_delay:()=>Kv,display_show_image:()=>kv,display_show_image_or_string_delay:()=>Hv,draw_pointer:()=>$Y,image_arithmetic:()=>nY,image_invert:()=>sY,mixbot_display_bitmap_create:()=>fY,mixbot_display_bright_screen:()=>vY,mixbot_display_get_ambientbright:()=>PY,mixbot_display_get_screen_pixel:()=>FY,mixbot_display_image_create:()=>DY,mixbot_display_rotate:()=>YY,mixgo_display_bitmap_create:()=>hY,mixgo_display_image_create_new:()=>MY,mixgome_display_bitmap_create:()=>lY,mixgome_display_font:()=>TY,mixgome_display_image_create:()=>rY,mixgomini_display_bitmap_create:()=>IY,mixgomini_display_image_create:()=>dY,mpython_display_hvline:()=>LY,mpython_display_line:()=>NY,mpython_display_shape_rect:()=>AY,mpython_pbm_image:()=>mY,nova_draw_pointer:()=>ZY,onboard_oled_bright_point:()=>SY,onboard_oled_scroll_string_delay:()=>CY,onboard_oled_show_frame_string_delay:()=>gY,onboard_oled_show_image:()=>EY,onboard_oled_show_image_or_string_delay:()=>cY,onboard_oled_show_image_xy:()=>OY,onboard_oled_show_string:()=>RY,onboard_tft_bright_point:()=>HY,onboard_tft_bright_screen:()=>_X,onboard_tft_clear:()=>oX,onboard_tft_clock_clear:()=>zY,onboard_tft_clock_draw:()=>QY,onboard_tft_clock_get_rtctime:()=>JY,onboard_tft_clock_init:()=>KY,onboard_tft_clock_set_time:()=>qY,onboard_tft_display_hvline:()=>UY,onboard_tft_display_line:()=>wY,onboard_tft_display_shape_circle:()=>jY,onboard_tft_display_shape_rect:()=>GY,onboard_tft_fill:()=>WY,onboard_tft_get_pixel:()=>kY,onboard_tft_get_screen_pixel:()=>sX,onboard_tft_scroll_string_delay:()=>zv,onboard_tft_shift:()=>nX,onboard_tft_show_frame_string:()=>iX,onboard_tft_show_frame_string_delay:()=>BY,onboard_tft_show_image:()=>tX,onboard_tft_show_image_or_string_delay:()=>VY,onboard_tft_show_image_xy:()=>bY,onboard_tft_show_image_xy_direct:()=>xY,onboard_tft_show_texts:()=>eX});var ie={};e.r(ie),e.d(ie,{factory_block:()=>TX,factory_block_return:()=>MX,factory_block_return_with_textarea:()=>mX,factory_block_with_textarea:()=>hX,factory_callMethod_noreturn:()=>dX,factory_callMethod_return:()=>IX,factory_declare:()=>lX,factory_from_import:()=>pX,factory_function_noreturn:()=>uX,factory_function_return:()=>rX,factory_import:()=>aX,folding_block:()=>EX});var ne={};e.r(ne),e.d(ne,{inout_analog_atten:()=>YX,inout_analog_read:()=>LX,inout_analog_read_init:()=>vX,inout_analog_write:()=>CX,inout_analog_write_init:()=>PX,inout_analog_write_set:()=>SX,inout_digital_init:()=>fX,inout_digital_read:()=>cX,inout_digital_write:()=>RX,inout_highlow:()=>OX,inout_pin_attachInterrupt:()=>DX,inout_pin_pressed:()=>NX,inout_pin_pressed_init:()=>XX,inout_pwm_analog_write:()=>gX,inout_pwm_analog_write_init:()=>FX,inout_pwm_analog_write_set_freq:()=>AX});var se={};e.r(se),e.d(se,{IOT_CONNECT_OLLAMA:()=>uy,IOT_EMQX_INIT_AND_CONNECT_BY_MIXLY_CODE:()=>ey,IOT_EMQX_INIT_AND_CONNECT_BY_SHARE_CODE:()=>$X,IOT_EMQX_PING:()=>ty,IOT_FORMATTING:()=>zX,IOT_FORMAT_STRING:()=>jX,IOT_MIXIO_NTP:()=>iy,IOT_MIXIO_PUBLISH:()=>wX,IOT_MIXIO_PUBLISHEX:()=>kX,IOT_MIXIO_SUBSCRIBE:()=>HX,iot_client_onboard:()=>ny,iot_connect_ollama:()=>ay,iot_connect_openai:()=>ry,iot_http_client:()=>sy,iot_http_data:()=>_y,iot_mixio_check:()=>JX,iot_mixio_connect:()=>UX,iot_mixio_connect_only:()=>KX,iot_mixio_disconnect:()=>WX,iot_mixio_format_msg:()=>QX,iot_mixio_format_topic:()=>qX,iot_mixly_key:()=>ZX,iot_mqtt_client:()=>oy,iot_mqtt_data:()=>py,iot_onenet_check:()=>BX,iot_onenet_connect:()=>bX,iot_onenet_disconnect:()=>xX,iot_onenet_publish:()=>GX,iot_onenet_publish_dict:()=>VX,iot_tiny_web_db_count:()=>Ey,iot_tiny_web_db_delete:()=>Ry,iot_tiny_web_db_get:()=>my,iot_tiny_web_db_init:()=>Ty,iot_tiny_web_db_init_with_mqtt:()=>My,iot_tiny_web_db_search:()=>Oy,iot_tiny_web_db_update:()=>hy,iot_wifi_connect:()=>yX,ollama_empty_history:()=>Iy,use_ollama_llm_to_chat:()=>ly,use_ollama_llm_to_chat_return:()=>dy});var _e={};e.r(_e),e.d(_e,{educore_mqtt_connect:()=>$y,educore_mqtt_connect_success:()=>ib,educore_mqtt_subscribe_message:()=>Zy,educore_mqtt_topic_publish:()=>tb,educore_mqtt_topic_subscribe:()=>eb,educore_wifi_connect:()=>jy,network_ap_connect:()=>fy,network_connect:()=>gy,network_get_connect:()=>Sy,network_get_wifi:()=>Dy,network_init:()=>cy,network_is_active:()=>Ny,network_open:()=>Ly,network_scan:()=>Fy,network_server:()=>Py,network_socket_accept:()=>by,network_socket_bind:()=>Yy,network_socket_close:()=>wy,network_socket_connect:()=>Xy,network_socket_init:()=>vy,network_socket_listen:()=>yy,network_socket_readline:()=>xy,network_socket_receive:()=>Vy,network_socket_receive_from:()=>Gy,network_socket_send:()=>By,network_socket_send_to:()=>Uy,network_stop:()=>Ay,network_wifi_connect:()=>Cy,ntptime_address:()=>Jy,ntptime_time:()=>Ky,requests_attribute:()=>Hy,requests_attribute2:()=>Qy,requests_get:()=>ky,requests_get2:()=>qy,requests_method:()=>Wy,requests_post:()=>zy});var oe={};e.r(oe),e.d(oe,{CI130X_BROADCAST:()=>Ab,CI130X_GET_THE_RECOGNIZED_CMD:()=>Sb,CI130X_GET_WHETHER_IDENTIFY:()=>Cb,CI130X_IDENTIFY_AND_SAVE:()=>gb,CI130X_SET_SYSTEM_CMD:()=>Lb,HCSR04:()=>sx,PS2_Button:()=>px,PS2_Buttons:()=>ax,PS2_Buttons_new:()=>hx,PS2_State:()=>ux,PS2_init:()=>_x,PS2_init_new:()=>Tx,PS2_stk:()=>rx,PS2_stk_new:()=>mx,PS2_vibration:()=>ox,PS2_vibration_new:()=>Mx,RTC_get_time:()=>dx,RTC_set_date:()=>rb,RTC_set_datetime:()=>lx,RTC_set_time:()=>ub,camera_sensor_init:()=>qx,camera_sensor_result:()=>Qx,column_tube_foot:()=>Zx,define_keyboards:()=>eV,educore_body_sensor:()=>Vx,educore_button_sensor_extern:()=>wx,educore_camera_sensor:()=>Jx,educore_infrared_sensor:()=>Ux,educore_soilhum_sensor:()=>Bx,educore_temp_sensor:()=>Kx,educore_temphum_sensor:()=>Gx,educore_ultrasonic_sensor:()=>Hx,esp32_s2_weather_init:()=>ex,esp32_s2_weather_rain:()=>ix,esp32_s2_weather_wd:()=>tx,esp32_s2_weather_ws:()=>nx,extern_rfid_read:()=>wb,extern_rfid_readcontent:()=>Hb,extern_rfid_readid:()=>kb,extern_rfid_status:()=>Jb,extern_rfid_write:()=>Wb,extern_rfid_write_return:()=>Kb,get_keboards_value:()=>iV,gnss_get_data:()=>Rx,gnss_have_data:()=>cx,init_init_rotary_encoder:()=>nV,init_matrix_keyboard:()=>tV,interaction_whether_to_interaction:()=>Rb,interaction_whether_to_interaction_SANT:()=>cb,line_tube_foot:()=>$x,mixbot_sensor_extern_get_addr:()=>Px,mixbot_sensor_extern_set_addr:()=>vx,pm25_get_data:()=>Ox,radar_set_DETECTION_THRESHOLD:()=>Eb,radar_set_DETECTION_THRESHOLD_SANT:()=>Ob,robot_button_extern_get_value:()=>Cx,robot_color_extern_get_value:()=>Dx,robot_infrared_extern_get_value:()=>Ax,robot_infrared_extern_grey_get_value:()=>Lx,robot_potentiometer_extern_get_value:()=>Nx,robot_sonar_extern_get_value:()=>fx,robot_sonar_extern_led:()=>Fx,robot_touch_extern_get_value:()=>Sx,rotary_key:()=>sV,sensor_APDS9960_extern:()=>Db,sensor_DS18X20:()=>xx,sensor_LTR308_extern:()=>fb,sensor_LTR390UV_extern:()=>bb,sensor_MAX30102_extern:()=>Nb,sensor_QMC5883L_extern:()=>xb,sensor_VL530LX_extern:()=>Gb,sensor_aht11_extern:()=>Bb,sensor_bmp:()=>Mb,sensor_dht11:()=>Ix,sensor_distance_hrsc04:()=>ab,sensor_hp203_extern:()=>Fb,sensor_ltr381_extern:()=>Xb,sensor_mixgo_extern_button_attachInterrupt:()=>ob,sensor_mixgo_extern_button_get_presses:()=>_b,sensor_mixgo_extern_button_is_pressed:()=>nb,sensor_mixgo_extern_button_was_pressed:()=>sb,sensor_mixgo_extern_light:()=>lb,sensor_mixgo_extern_pin_near:()=>Ib,sensor_mixgo_extern_sound:()=>db,sensor_mixgoce_hot_wheel_degrees:()=>Zb,sensor_mixgoce_hot_wheel_is_touched:()=>$b,sensor_mpu9250_attachGestureInterrupt:()=>pb,sensor_ms5611_extern:()=>vb,sensor_ms5611_extern_altitude:()=>Yb,sensor_read_humiture:()=>kx,sensor_rtc_init:()=>Tb,sensor_sht:()=>hb,sensor_shtc3_extern:()=>Vb,sensor_spl06_001_extern:()=>Pb,sensor_ucs12071_extern:()=>yb,sensor_use_i2c_init:()=>mb,sensor_use_spi_init:()=>Ub,sensor_use_uart_init:()=>Ex,sensor_weather_solo_init:()=>Yx,sensor_weather_solo_rain:()=>bx,sensor_weather_solo_wd:()=>Xx,sensor_weather_solo_ws:()=>yx,sensor_weigh_init:()=>zx,tvoc_get_data:()=>gx,ultrasonic_sensor_read_distance:()=>Wx,weather_data:()=>qb,weather_have_data:()=>Qb,weather_set_label:()=>jb,weather_uart_mixio:()=>zb,weigh_sensor_get_weight:()=>jx});var pe={};e.r(pe),e.d(pe,{HCSR04:()=>IV,bitbot_als_num:()=>yB,dht11:()=>kB,educore_button_sensor:()=>zB,educore_button_was_pressed:()=>jB,educore_gyroscope_sensor:()=>JB,educore_gyroscope_sensor_read:()=>qB,educore_gyroscope_sensor_shake:()=>QB,educore_light_sensor:()=>KB,educore_rfid_sensor:()=>$B,educore_rfid_sensor_scan:()=>ZB,educore_rfid_sensor_scan_data:()=>eG,educore_voice_sensor:()=>HB,number1:()=>TV,number2:()=>MV,number3:()=>hV,number4:()=>mV,number5:()=>EV,number6:()=>OV,number7:()=>RV,onboard_RTC_get_time:()=>lB,onboard_RTC_get_time_str:()=>TB,onboard_RTC_get_timestamp:()=>dB,onboard_RTC_get_timetuple_to_str:()=>MB,onboard_RTC_set_datetime:()=>uB,onboard_RTC_settime_string:()=>rB,onboard_RTC_timestamp_totuple:()=>IB,rfid_readcontent:()=>bV,rfid_readid:()=>yV,rfid_status:()=>BV,rfid_write:()=>xV,rfid_write_return:()=>VV,sensor_LTR308:()=>FV,sensor_adxl345_get_acceleration:()=>qV,sensor_aht11:()=>YV,sensor_bitbot_ALS:()=>XB,sensor_button_get_presses:()=>VB,sensor_button_is_pressed:()=>bB,sensor_button_was_pressed:()=>xB,sensor_compass_reset:()=>eB,sensor_ds18x20:()=>DV,sensor_eulerangles:()=>UV,sensor_get_acceleration:()=>GV,sensor_get_temperature:()=>XV,sensor_get_the_coprocessor_version:()=>tG,sensor_hp203:()=>vV,sensor_light:()=>wB,sensor_lm35:()=>fV,sensor_mixbot_get_gyro:()=>YB,sensor_mixbot_patrol_calibrate:()=>FB,sensor_mixbot_patrol_value:()=>PB,sensor_mixbot_temperature:()=>vB,sensor_mixgo_LTR308:()=>AV,sensor_mixgo_button_attachInterrupt:()=>aV,sensor_mixgo_button_get_presses:()=>pV,sensor_mixgo_button_is_pressed:()=>_V,sensor_mixgo_button_was_pressed:()=>oV,sensor_mixgo_cc_mmc5603_calibrate_compass:()=>EB,sensor_mixgo_cc_mmc5603_get_angle:()=>mB,sensor_mixgo_cc_mmc5603_get_magnetic:()=>hB,sensor_mixgo_light:()=>UB,sensor_mixgo_nova_LTR308:()=>NV,sensor_mixgo_nova_pin_near:()=>SV,sensor_mixgo_pin_near:()=>CV,sensor_mixgo_pin_near_double:()=>gV,sensor_mixgo_pin_near_single:()=>cV,sensor_mixgo_pin_pressed:()=>KV,sensor_mixgo_sant_color:()=>LV,sensor_mixgo_touch_slide:()=>WV,sensor_mixgocar42_button_attachInterrupt:()=>dV,sensor_mixgocar42_button_get_presses:()=>lV,sensor_mixgocar42_button_is_pressed:()=>uV,sensor_mixgocar42_button_was_pressed:()=>rV,sensor_mixgocar_battery_left:()=>fB,sensor_mixgocar_pin_near:()=>NB,sensor_mixgocar_pin_near_line:()=>LB,sensor_mixgocar_pin_near_state_change:()=>DB,sensor_mixgoce_pin_pressed:()=>HV,sensor_mixgoce_temperature:()=>RB,sensor_mixgome_temperature:()=>OB,sensor_mpu9250_calibrate_compass:()=>jV,sensor_mpu9250_field_strength:()=>ZV,sensor_mpu9250_gesture:()=>wV,sensor_mpu9250_get_acceleration:()=>kV,sensor_mpu9250_get_gyro:()=>zV,sensor_mpu9250_get_magnetic:()=>QV,sensor_mpu9250_temperature:()=>$V,sensor_mpython_pin_pressed:()=>JV,sensor_mpython_qmi8658_get_gyro:()=>cB,sensor_mpython_qmi8658_temperature:()=>gB,sensor_onboard_compass_reset:()=>aB,sensor_onboard_mpu9250_calibrate_compass:()=>_B,sensor_onboard_mpu9250_field_strength:()=>pB,sensor_onboard_mpu9250_gesture:()=>tB,sensor_onboard_mpu9250_get_acceleration:()=>iB,sensor_onboard_mpu9250_get_gyro:()=>sB,sensor_onboard_mpu9250_get_magnetic:()=>nB,sensor_onboard_mpu9250_temperature:()=>oB,sensor_pin_near:()=>GB,sensor_pin_pressed:()=>BB,sensor_read:()=>WB,sensor_rm_acc:()=>AB,sensor_rm_battery_left:()=>SB,sensor_rm_pin_near_double:()=>CB,sensor_sound:()=>PV,simulated_light_sensor:()=>iG});var ae={};e.r(ae),e.d(ae,{serial_any:()=>pG,serial_print:()=>nG,serial_print_byte:()=>sG,serial_print_hex:()=>oG,serial_println:()=>_G,serial_read_from_ai:()=>EG,serial_readline:()=>uG,serial_readstr:()=>aG,serial_send_to_ai:()=>mG,serial_softserial:()=>rG,serial_softserial_new:()=>lG,system_input:()=>dG,system_print:()=>IG,system_print_end:()=>MG,system_print_inline:()=>TG,system_print_many:()=>hG});var ue={};e.r(ue),e.d(ue,{Panic_with_status_code:()=>FG,Timer_init:()=>KG,base_delay:()=>QG,controls_delay:()=>yG,controls_delay_new:()=>bG,controls_end_program:()=>vG,controls_millis:()=>PG,controls_uname:()=>XG,reset:()=>YG,set_system_timer:()=>VG,system_bitbot_shutdown:()=>WG,system_device_name:()=>DG,system_device_serial_number:()=>fG,system_event_bus_source:()=>LG,system_event_bus_value:()=>NG,system_machine_reset:()=>HG,system_on_event:()=>CG,system_raise_event:()=>gG,system_reset:()=>RG,system_run_in_background:()=>OG,system_ticks_diff:()=>BG,system_timer:()=>UG,system_timer_init:()=>GG,system_timestamp:()=>SG,system_value:()=>AG,system_wait:()=>cG,system_wdt_feed:()=>kG,system_wdt_init:()=>wG,time_ticks_diff:()=>qG,timer:()=>xG,timer2:()=>JG});var re={};e.r(re),e.d(re,{Air_daily_content:()=>aU,Air_now_content:()=>tU,Geo_moon_content:()=>rU,Geo_sun_content:()=>uU,Life_suggestion_content:()=>nU,Location_search_content:()=>_U,Tide_daily_content:()=>sU,WEATHER_DAILY:()=>jG,WEATHER_HOUR:()=>$G,WEATHER_NOW:()=>zG,Weather_alarm_content:()=>iU,Weather_daily:()=>oU,Weather_daily_content:()=>pU,Weather_now:()=>ZG,Weather_now_content:()=>eU});var le={};e.r(le),e.d(le,{MICROPYTHON_CONFIG_MESSAGE_BURN_SPEED:()=>IU});var de={};e.r(de),e.d(de,{MICROPYTHON_CONFIG_MESSAGE_BURN_SPEED:()=>MU});var Ie={};e.r(Ie),e.d(Ie,{MICROPYTHON_CONFIG_MESSAGE_BURN_SPEED:()=>mU});var Te={};e.r(Te),e.d(Te,{controls_pin_attachInterrupt:()=>xU,inout_analog_atten:()=>NU,inout_analog_write:()=>AU,inout_analog_write_init:()=>PU,inout_analog_write_set:()=>LU,inout_analog_write_set_freq:()=>YU,inout_digital_init:()=>FU,inout_digital_read:()=>SU,inout_digital_write:()=>CU,inout_highlow:()=>gU,inout_pinMode:()=>XU,inout_pin_attachInterrupt:()=>fU,inout_pin_pressed:()=>DU,inout_pin_pressed_init:()=>vU,pin_pressed:()=>bU,pin_pressed_init:()=>yU});var Me={};e.r(Me),e.d(Me,{mini_g2_aht11:()=>BU,mini_g2_hp203:()=>GU,mini_g2_rfid_readcontent:()=>kU,mini_g2_rfid_readid:()=>wU,mini_g2_rfid_status:()=>KU,mini_g2_rfid_write:()=>HU,mini_g2_rfid_write_outcome:()=>WU,mini_g2_varistor:()=>UU});var he={};e.r(he),e.d(he,{me_go_dc_motor:()=>tw,me_go_get_led_bright:()=>zU,me_go_get_led_state:()=>jU,me_go_hall_attachInterrupt:()=>iw,me_go_hall_data:()=>sw,me_go_hall_initialize:()=>nw,me_go_led_bright:()=>QU,me_go_led_brightness:()=>$U,me_go_light_number:()=>qU,me_go_pin_light:()=>uw,me_go_pin_near:()=>ow,me_go_pin_near_line:()=>_w,me_go_pin_near_state_change:()=>pw,me_go_stepper_keep:()=>ZU,me_go_stepper_stop:()=>ew,sensor_mixgome_eulerangles:()=>aw});var me={};e.r(me),e.d(me,{analog_input:()=>Ew,analog_output:()=>Rw,espnow_channel:()=>Mw,haskylens_model:()=>hw,i2c_A_pin:()=>cw,i2c_B_pin:()=>gw,pins_analog:()=>Nw,pins_analog_pin:()=>Dw,pins_axis:()=>Ww,pins_brightness:()=>Kw,pins_builtinimg:()=>Vw,pins_builtinimg_extern:()=>Bw,pins_button:()=>Pw,pins_buttonB:()=>vw,pins_dac:()=>fw,pins_dac_pin:()=>Fw,pins_digital:()=>lw,pins_digital_dot:()=>ek,pins_digital_pin:()=>dw,pins_exlcdh:()=>kw,pins_exlcdv:()=>Hw,pins_imglist:()=>Gw,pins_input_pin:()=>Iw,pins_one_more:()=>Zw,pins_output_pin:()=>Tw,pins_playlist:()=>Uw,pins_playlist_extern:()=>ww,pins_pwm:()=>Yw,pins_pwm_pin:()=>Xw,pins_radio_datarate:()=>$w,pins_radio_power:()=>jw,pins_serial:()=>xw,pins_tone_notes:()=>zw,pins_touch:()=>bw,pins_touch_pin:()=>yw,pins_tts_bgmusic:()=>Qw,pins_tts_builtin_music:()=>qw,pins_tts_voice:()=>Jw,pwm_input:()=>mw,pwm_output:()=>Ow,spi_A_pin:()=>Cw,spi_B_pin:()=>Sw,spi_C_pin:()=>Aw,spi_D_pin:()=>Lw});var Ee={};e.r(Ee),e.d(Ee,{inout_analog_atten:()=>rk,inout_analog_write:()=>sk,inout_analog_write_init:()=>uk,inout_analog_write_set:()=>_k,inout_digital_init:()=>ak,inout_digital_read:()=>nk,inout_digital_write:()=>ik,inout_highlow:()=>tk,inout_pin_attachInterrupt:()=>pk,inout_pin_pressed:()=>ok,inout_pin_pressed_init:()=>lk});var Oe={};e.r(Oe),e.d(Oe,{mini_g2_aht11:()=>dk,mini_g2_hp203:()=>Ik,mini_g2_rfid_readcontent:()=>hk,mini_g2_rfid_readid:()=>Mk,mini_g2_rfid_status:()=>Ok,mini_g2_rfid_write:()=>mk,mini_g2_rfid_write_outcome:()=>Ek,mini_g2_varistor:()=>Tk});var Re={};e.r(Re),e.d(Re,{me_go_dc_motor:()=>Nk,me_go_get_led_bright:()=>gk,me_go_get_led_state:()=>Ck,me_go_hall_attachInterrupt:()=>Dk,me_go_hall_data:()=>Fk,me_go_hall_initialize:()=>fk,me_go_led_bright:()=>ck,me_go_led_brightness:()=>Sk,me_go_light_number:()=>Rk,me_go_pin_light:()=>yk,me_go_pin_near:()=>vk,me_go_pin_near_line:()=>Pk,me_go_pin_near_state_change:()=>Yk,me_go_stepper_keep:()=>Ak,me_go_stepper_stop:()=>Lk,sensor_mixgome_eulerangles:()=>Xk});var ce={};e.r(ce),e.d(ce,{analog_input:()=>Wk,analog_output:()=>Jk,espnow_channel:()=>kk,haskylens_model:()=>Hk,i2c_A_pin:()=>qk,i2c_B_pin:()=>Qk,pins_analog:()=>tH,pins_analog_pin:()=>eH,pins_axis:()=>MH,pins_brightness:()=>EH,pins_builtinimg:()=>rH,pins_builtinimg_extern:()=>lH,pins_button:()=>xk,pins_buttonB:()=>Vk,pins_dac:()=>_H,pins_dac_pin:()=>sH,pins_digital:()=>bk,pins_digital_dot:()=>LH,pins_digital_pin:()=>Bk,pins_exlcdh:()=>hH,pins_exlcdv:()=>mH,pins_imglist:()=>dH,pins_input_pin:()=>Gk,pins_interrupt:()=>aH,pins_one_more:()=>AH,pins_output_pin:()=>Uk,pins_playlist:()=>IH,pins_playlist_extern:()=>TH,pins_pwm:()=>nH,pins_pwm_input:()=>wk,pins_pwm_pin:()=>iH,pins_radio_datarate:()=>SH,pins_radio_power:()=>CH,pins_serial:()=>uH,pins_tone_notes:()=>gH,pins_touch:()=>pH,pins_touch_pin:()=>oH,pins_tts_bgmusic:()=>cH,pins_tts_builtin_music:()=>RH,pins_tts_voice:()=>OH,pwm_output:()=>Kk,spi_A_pin:()=>zk,spi_B_pin:()=>jk,spi_C_pin:()=>$k,spi_D_pin:()=>Zk});const ge=Blockly,Ce=Mixly,Se={NAME_TYPE:"VARIABLE",allVariables:function(e){var t;if(e.getDescendants)t=e.getDescendants();else{if(!e.getAllBlocks)throw"Not Block or Workspace: "+e;t=e.getAllBlocks()}for(var i=Object.create(null),n=0;n1&&(o+=n)):i=o}else i="i";return i}},Ae=Se; /** * @license * Visual Blocks Editor * * Copyright 2012 Google Inc. * https://developers.google.com/blockly/ * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ class Le{constructor(e,t){if(this.variablePrefix_=t||"",this.reservedDict_=Object.create(null),e)for(var i=e.split(","),n=0;n0;s--)t.getInputTargetBlock("IF"+s)&&t.getInputTargetBlock("IF"+s).previousConnection?i[s]=t.getInputTargetBlock("IF"+s).previousConnection:i[s]=null,this.removeInput("IF"+s),t.getInputTargetBlock("DO"+s)&&t.getInputTargetBlock("DO"+s).previousConnection?n[s]=t.getInputTargetBlock("DO"+s).previousConnection:n[s]=null,this.removeInput("DO"+s);this.elseifCount_=parseInt(e.getAttribute("elseif"),10),this.elseCount_=parseInt(e.getAttribute("else"),10);for(s=1;s<=this.elseifCount_;s++)this.appendValueInput("IF"+s).setCheck([Boolean,Number]).appendField(ge.Msg.CONTROLS_IF_MSG_ELSEIF),this.appendStatementInput("DO"+s).appendField(ge.Msg.CONTROLS_IF_MSG_THEN);this.elseCount_&&this.appendStatementInput("ELSE").appendField(ge.Msg.CONTROLS_IF_MSG_ELSE);for(s=i.length-2;s>0;s--)i[s]&&i[s].reconnect(this,"IF"+s);for(s=n.length-2;s>0;s--)n[s]&&n[s].reconnect(this,"DO"+s)},decompose:function(e){var t=e.newBlock("controls_if_if");t.initSvg();for(var i=t.getInput("STACK").connection,n=1;n<=this.elseifCount_;n++){var s=e.newBlock("controls_if_elseif");s.initSvg(),i.connect(s.previousConnection),i=s.nextConnection}if(this.elseCount_){var _=e.newBlock("controls_if_else");_.initSvg(),i.connect(_.previousConnection)}return t},compose:function(e){this.elseCount_&&this.removeInput("ELSE"),this.elseCount_=0;for(var t=this.elseifCount_;t>0;t--)this.removeInput("IF"+t),this.removeInput("DO"+t);this.elseifCount_=0;for(var i=e.getInputTargetBlock("STACK"),n=[null],s=[null],_=null;i;){switch(i.type){case"controls_if_elseif":this.elseifCount_++,n.push(i.valueConnection_),s.push(i.statementConnection_);break;case"controls_if_else":this.elseCount_++,_=i.statementConnection_;break;default:throw Error("Unknown block type: "+i.type)}i=i.nextConnection&&i.nextConnection.targetBlock()}this.updateShape_(),this.reconnectChildBlocks_(n,s,_)},saveConnections:function(e){for(var t=e.getInputTargetBlock("STACK"),i=1;t;){switch(t.type){case"controls_if_elseif":var n=this.getInput("IF"+i),s=this.getInput("DO"+i);t.valueConnection_=n&&n.connection.targetConnection,t.statementConnection_=s&&s.connection.targetConnection,i++;break;case"controls_if_else":s=this.getInput("ELSE");t.statementConnection_=s&&s.connection.targetConnection;break;default:throw"Unknown block type."}t=t.nextConnection&&t.nextConnection.targetBlock()}},rebuildShape_:function(){var e=[null],t=[null],i=null;this.getInput("ELSE")&&(i=this.getInput("ELSE").connection.targetConnection);for(var n=1;this.getInput("IF"+n);){var s=this.getInput("IF"+n),_=this.getInput("DO"+n);console.log(s.connection.targetConnection),e.push(s.connection.targetConnection),t.push(_.connection.targetConnection),n++}this.updateShape_(),this.reconnectChildBlocks_(e,t,i)},updateShape_:function(){this.getInput("ELSE")&&this.removeInput("ELSE");for(var e=1;this.getInput("IF"+e);)this.removeInput("IF"+e),this.removeInput("DO"+e),e++;for(e=1;e<=this.elseifCount_;e++)this.appendValueInput("IF"+e).setCheck([Number,Boolean]).appendField(ge.Msg.CONTROLS_IF_MSG_ELSEIF),this.appendStatementInput("DO"+e).appendField(ge.Msg.CONTROLS_IF_MSG_THEN);this.elseCount_&&this.appendStatementInput("ELSE").appendField(ge.Msg.CONTROLS_IF_MSG_ELSE)},reconnectChildBlocks_:function(e,t,i){for(var n=1;n<=this.elseifCount_;n++)e[n]&&e[n].reconnect(this,"IF"+n),t[n]&&t[n].reconnect(this,"DO"+n);i&&i.reconnect(this,"ELSE")}},We={init:function(){this.setColour(Be),this.appendValueInput("FROM").setCheck(Number).setAlign(ge.inputs.Align.RIGHT).appendField(ge.Msg.PYTHON_RANGE).appendField(ge.Msg.LANG_CONTROLS_FOR_INPUT_FROM),this.appendValueInput("TO").setCheck(Number).setAlign(ge.inputs.Align.RIGHT).appendField(ge.Msg.LANG_CONTROLS_FOR_INPUT_TO),this.appendValueInput("STEP").setCheck(Number).setAlign(ge.inputs.Align.RIGHT).appendField(ge.Msg.PYTHON_RANGE_STEP),this.setInputsInline(!0),this.setOutput(!0),this.setTooltip(ge.Msg.MIXLY_PYTHON_CONTROLS_RANGE_TOOLTIP)}},Ke={init:function(){this.setColour(Be),this.appendValueInput("LIST").setAlign(ge.inputs.Align.RIGHT).appendField(ge.Msg.CONTROLS_FOREACH_INPUT),this.appendValueInput("VAR").appendField(ge.Msg.CONTROLS_FOREACH_INPUT_ITEM),this.appendStatementInput("DO").appendField(ge.Msg.MIXLY_DO),this.setPreviousStatement(!0),this.setNextStatement(!0),this.setInputsInline(!0),this.setTooltip((function(){return ge.Msg.CONTROLS_FOR_TOOLTIP.replace("“%1”","")}))},getVars:function(){return[this.getFieldValue("VAR")]},renameVar:function(e,t){ge.Names.equals(e,this.getFieldValue("VAR"))&&this.setTitleValue(t,"VAR")}},Je={init:function(){this.setColour(Be),this.appendValueInput("BOOL").setCheck([Boolean,Number]).appendField(ge.Msg.MIXLY_MICROBIT_JS_CURRENT).appendField(new ge.FieldDropdown(this.OPERATORS),"MODE"),this.appendStatementInput("DO").appendField(ge.Msg.LANG_CONTROLS_WHILEUNTIL_TITLE_REPEAT+ge.Msg.MIXLY_DO),this.setPreviousStatement(!0),this.setNextStatement(!0);var e=this;this.setTooltip((function(){var t=e.getFieldValue("MODE");return{WHILE:ge.Msg.CONTROLS_WHILEUNTIL_TOOLTIP_WHILE,UNTIL:ge.Msg.CONTROLS_WHILEUNTIL_TOOLTIP_UNTIL}[t]}))}},qe={init:function(){this.setColour(Be),this.appendDummyInput().appendField(ge.Msg.MIXLY_PYTHON_TRY),this.appendStatementInput("try"),this.appendValueInput("IF1").appendField(ge.Msg.MIXLY_PYTHON_EXCEPT),this.appendStatementInput("DO1").appendField(""),this.setPreviousStatement(!0),this.setNextStatement(!0),this.setMutator(new ge.icons.MutatorIcon(["controls_except","controls_finally"],this)),this.setTooltip(ge.Msg.MIXLY_MIXPY_CONTROL_TRY_TOOLTIP),this.elseifCount_=1,this.elseCount_=0},mutationToDom:function(){if(!this.elseifCount_&&!this.elseCount_)return null;var e=document.createElement("mutation");return this.elseifCount_&&e.setAttribute("elseif",this.elseifCount_),this.elseCount_&&e.setAttribute("else",1),e},domToMutation:function(e){var t=this,i=[],n=[];this.elseCount_&&this.removeInput("ELSE");for(var s=this.elseifCount_;s>0;s--)t.getInputTargetBlock("IF"+s)&&t.getInputTargetBlock("IF"+s).previousConnection?i[s]=t.getInputTargetBlock("IF"+s).previousConnection:i[s]=null,this.removeInput("IF"+s),t.getInputTargetBlock("DO"+s)&&t.getInputTargetBlock("DO"+s).previousConnection?n[s]=t.getInputTargetBlock("DO"+s).previousConnection:n[s]=null,this.removeInput("DO"+s);this.elseifCount_=parseInt(e.getAttribute("elseif"),10),this.elseCount_=parseInt(e.getAttribute("else"),10);for(s=1;s<=this.elseifCount_;s++)this.appendValueInput("IF"+s).setCheck([Boolean,Number]).appendField(ge.Msg.MIXLY_PYTHON_EXCEPT),this.appendStatementInput("DO"+s).appendField("");this.elseCount_&&this.appendStatementInput("ELSE").appendField(ge.Msg.MIXLY_PYTHON_FINALLY);for(s=i.length-2;s>0;s--)i[s]&&i[s].reconnect(this,"IF"+s);for(s=n.length-2;s>0;s--)n[s]&&n[s].reconnect(this,"DO"+s)},decompose:function(e){var t=e.newBlock("controls_try");t.initSvg();for(var i=t.getInput("STACK").connection,n=1;n<=this.elseifCount_;n++){var s=e.newBlock("controls_except");s.initSvg(),i.connect(s.previousConnection),i=s.nextConnection}if(this.elseCount_){var _=e.newBlock("controls_finally");_.initSvg(),i.connect(_.previousConnection)}return t},compose:function(e){this.elseCount_&&this.removeInput("ELSE"),this.elseCount_=0;for(var t=this.elseifCount_;t>0;t--)this.removeInput("IF"+t),this.removeInput("DO"+t);this.elseifCount_=0;for(var i=e.getInputTargetBlock("STACK"),n=[null],s=[null],_=null;i;){switch(i.type){case"controls_except":this.elseifCount_++,n.push(i.valueConnection_),s.push(i.statementConnection_);break;case"controls_finally":this.elseCount_++,_=i.statementConnection_;break;default:throw Error("Unknown block type: "+i.type)}i=i.nextConnection&&i.nextConnection.targetBlock()}this.updateShape_(),this.reconnectChildBlocks_(n,s,_)},saveConnections:function(e){for(var t=e.getInputTargetBlock("STACK"),i=1;t;){switch(t.type){case"controls_except":var n=this.getInput("IF"+i),s=this.getInput("DO"+i);t.valueConnection_=n&&n.connection.targetConnection,t.statementConnection_=s&&s.connection.targetConnection,i++;break;case"controls_finally":s=this.getInput("ELSE");t.statementConnection_=s&&s.connection.targetConnection;break;default:throw"Unknown block type."}t=t.nextConnection&&t.nextConnection.targetBlock()}},rebuildShape_:function(){var e=[null],t=[null],i=null;this.getInput("ELSE")&&(i=this.getInput("ELSE").connection.targetConnection);for(var n=1;this.getInput("IF"+n);){var s=this.getInput("IF"+n),_=this.getInput("DO"+n);console.log(s.connection.targetConnection),e.push(s.connection.targetConnection),t.push(_.connection.targetConnection),n++}this.updateShape_(),this.reconnectChildBlocks_(e,t,i)},updateShape_:function(){this.getInput("ELSE")&&this.removeInput("ELSE");for(var e=1;this.getInput("IF"+e);)this.removeInput("IF"+e),this.removeInput("DO"+e),e++;for(e=1;e<=this.elseifCount_;e++)this.appendValueInput("IF"+e).setCheck([Number,Boolean]).appendField(ge.Msg.MIXLY_PYTHON_EXCEPT),this.appendStatementInput("DO"+e).appendField("");this.elseCount_&&this.appendStatementInput("ELSE").appendField(ge.Msg.MIXLY_PYTHON_FINALLY)},reconnectChildBlocks_:function(e,t,i){for(var n=1;n<=this.elseifCount_;n++)e[n]&&e[n].reconnect(this,"IF"+n),t[n]&&t[n].reconnect(this,"DO"+n);i&&i.reconnect(this,"ELSE")}},Qe={init:function(){this.setColour(Be);var e=new ge.FieldDropdown(this.OPERATORS);this.appendDummyInput().appendField(e,"FLOW").appendField(ge.Msg.LANG_CONTROLS_FLOW_STATEMENTS_INPUT_OFLOOP),this.setPreviousStatement(!0),this.setTooltip(ge.Msg.MIXLY_PYTHON_CONTROLS_FLOW_STATEMENTS_TOOLTIP);var t=this;this.setTooltip((function(){var e=t.getFieldValue("FLOW");return{BREAK:ge.Msg.CONTROLS_FLOW_STATEMENTS_TOOLTIP_BREAK,CONTINUE:ge.Msg.CONTROLS_FLOW_STATEMENTS_TOOLTIP_CONTINUE}[e]}))},onchange:function(){if(this.workspace){var e=!1,t=this;do{if("controls_repeat"==t.type||"controls_for"==t.type||"controls_forEach"==t.type||"controls_repeat_ext"==t.type||"controls_whileUntil"==t.type||"do_while"==t.type){e=!0;break}t=t.getSurroundParent()}while(t);e?this.setWarningText(null):this.setWarningText(ge.Msg.LANG_CONTROLS_FLOW_STATEMENTS_WARNING)}}},ze={init:function(){this.setColour(Be),this.appendDummyInput().appendField(ge.Msg.LANG_CONTROLS_FOR_INPUT_WITH).appendField(new ge.FieldTextInput("i"),"VAR"),this.appendValueInput("FROM").setCheck(Number).setAlign(ge.inputs.Align.RIGHT).appendField(ge.Msg.LANG_CONTROLS_FOR_INPUT_FROM),this.appendValueInput("TO").setCheck(Number).setAlign(ge.inputs.Align.RIGHT).appendField(ge.Msg.LANG_CONTROLS_FOR_INPUT_TO),this.appendValueInput("STEP").setCheck(Number).setAlign(ge.inputs.Align.RIGHT).appendField(ge.Msg.MIXLY_STEP),this.appendStatementInput("DO").appendField(ge.Msg.MIXLY_DO),this.setPreviousStatement(!0),this.setNextStatement(!0),this.setInputsInline(!0);var e=this;this.setTooltip((function(){return ge.Msg.CONTROLS_FOR_TOOLTIP.replace("%1",e.getFieldValue("VAR"))}))},getVars:function(){return[this.getFieldValue("VAR")]},renameVar:function(e,t){ge.Names.equals(e,this.getFieldValue("VAR"))&&this.setTitleValue(t,"VAR")}},je={init:function(){this.setColour(Be),this.appendDummyInput().appendField(ge.Msg.LANG_CONTROLS_FOR_INPUT_WITH).appendField(new ge.FieldTextInput("i"),"VAR"),this.appendValueInput("FROM").setCheck(Number).setAlign(ge.inputs.Align.RIGHT).appendField(ge.Msg.LANG_CONTROLS_FOR_INPUT_FROM),this.appendValueInput("TO").setCheck(Number).setAlign(ge.inputs.Align.RIGHT).appendField(ge.Msg.LANG_CONTROLS_FOR_INPUT_TO),this.appendValueInput("STEP").setCheck(Number).setAlign(ge.inputs.Align.RIGHT).appendField(ge.Msg.MIXLY_STEP),this.appendStatementInput("DO").appendField(ge.Msg.MIXLY_DO),this.setPreviousStatement(!0),this.setNextStatement(!0),this.setInputsInline(!0);var e=this;this.setTooltip((function(){return ge.Msg.MIXLY_PYTHON_CONTROLS_FOR_RANGE_TOOLTIP.replace("%1",e.getFieldValue("VAR"))}))},getVars:function(){return[this.getFieldValue("VAR")]},renameVar:function(e,t){ge.Names.equals(e,this.getFieldValue("VAR"))&&this.setTitleValue(t,"VAR")}};Je.OPERATORS=[[ge.Msg.LANG_CONTROLS_WHILEUNTIL_OPERATOR_WHILE,"WHILE"],[ge.Msg.LANG_CONTROLS_WHILEUNTIL_OPERATOR_UNTIL,"UNTIL"]],Qe.OPERATORS=[[ge.Msg.LANG_CONTROLS_FLOW_STATEMENTS_OPERATOR_BREAK,"BREAK"],[ge.Msg.LANG_CONTROLS_FLOW_STATEMENTS_OPERATOR_CONTINUE,"CONTINUE"]];const $e={init:function(){this.setColour(Be),this.appendDummyInput().appendField(ge.Msg.CONTROLS_IF_IF_TITLE_IF),this.appendStatementInput("STACK"),this.setTooltip(ge.Msg.CONTROLS_IF_IF_TOOLTIP),this.contextMenu=!1}},Ze={init:function(){this.setColour(Be),this.appendDummyInput().appendField(ge.Msg.CONTROLS_IF_ELSEIF_TITLE_ELSEIF),this.setPreviousStatement(!0),this.setNextStatement(!0),this.setTooltip(ge.Msg.CONTROLS_IF_ELSEIF_TOOLTIP),this.contextMenu=!1}},et={init:function(){this.setColour(Be),this.appendDummyInput().appendField(ge.Msg.CONTROLS_IF_ELSE_TITLE_ELSE),this.setPreviousStatement(!0),this.setTooltip(ge.Msg.CONTROLS_IF_ELSE_TOOLTIP),this.contextMenu=!1}},tt={init:function(){this.setColour(Be),this.appendDummyInput().appendField("try"),this.appendStatementInput("STACK"),this.setPreviousStatement(!1),this.setNextStatement(!1),this.contextMenu=!1}},it={init:function(){this.setColour(Be),this.appendDummyInput().appendField(ge.Msg.MIXLY_PYTHON_EXCEPT),this.setPreviousStatement(!0),this.setNextStatement(!0),this.contextMenu=!1,this.setTooltip(ge.Msg.MIXLY_MIXPY_CONTROL_EXCEPT_TOOLTIP)}},nt={init:function(){this.setColour(Be),this.appendDummyInput().appendField(ge.Msg.MIXLY_PYTHON_FINALLY),this.setPreviousStatement(!0),this.contextMenu=!1,this.setTooltip(ge.Msg.MIXLY_MIXPY_CONTROL_FINALLY_TOOLTIP)}},st={init:function(){this.jsonInit({message0:ge.Msg.CONTROLS_REPEAT_TITLE,args0:[{type:"input_value",name:"TIMES"}],previousStatement:null,nextStatement:null,colour:Be,tooltip:ge.Msg.CONTROLS_REPEAT_TOOLTIP,helpUrl:ge.Msg.CONTROLS_REPEAT_HELPURL}),this.appendStatementInput("DO")}},_t={init:function(){this.setColour(Be),this.appendValueInput("BOOL").appendField("lambda"),this.appendStatementInput("DO").appendField(ge.Msg.MIXLY_STAT),this.setOutput(!0)}},ot={init:function(){this.setColour(Be),this.appendDummyInput().appendField(ge.Msg.MIXLY_PYTHON_PASS),this.setPreviousStatement(!0),this.setNextStatement(!0),this.setTooltip(ge.Msg.MIXLY_PYTHON_CONTROLS_PASS_TOOLTIP)}},pt={init:function(){this.setColour(Be),this.appendDummyInput().appendField(ge.Msg.MIXLY_PYTHON_CONTROLS_THREAD_START),this.appendValueInput("callback").appendField(ge.Msg.MIXLY_PYTHON_CONTROLS_THREAD_USE),this.appendValueInput("VAR").appendField(ge.Msg.MIXLY_PARAMS),this.setPreviousStatement(!0),this.setNextStatement(!0),this.setInputsInline(!0),this.setTooltip(ge.Msg.MIXLY_PYTHON_CONTROLS_THREAD_TOOLTIP)}},at={init:function(){this.appendDummyInput().appendField(ge.Msg.CONTROLS_REPEAT_TITLE_REPEAT+ge.Msg.MIXLY_DO),this.appendStatementInput("input_data").setCheck(null),this.appendValueInput("select_data").setCheck(null).appendField(ge.Msg.CONTROLS_OPERATOR_UNTIL).appendField(new ge.FieldDropdown([[ge.Msg.LANG_CONTROLS_WHILEUNTIL_OPERATOR_WHILE,"true"],[ge.Msg.LANG_CONTROLS_WHILEUNTIL_OPERATOR_UNTIL,"false"]]),"type"),this.setPreviousStatement(!0,null),this.setNextStatement(!0,null),this.setColour(Be),this.setTooltip("do-while loop"),this.setHelpUrl("")}},ut={init:function(){this.setColour(Be),this.appendDummyInput().appendField(ge.Msg.MIXLY_OP_GARBAGE_COLLECT),this.setPreviousStatement(!0),this.setNextStatement(!0)}},rt={init:function(){this.setColour(Be),this.appendDummyInput().appendField(ge.Msg.MIXLY_GET_MEM_ALLOC),this.setOutput(!0)}},lt={init:function(){this.setColour(Be),this.appendDummyInput().appendField(ge.Msg.MIXLY_GET_MEM_FREE),this.setOutput(!0)}},dt={init:function(){this.setColour(Be),this.appendDummyInput().appendField(ge.Msg.MIXLY_GET+ge.Msg.MIXLY_DEVICE+"ID"),this.setInputsInline(!0),this.setOutput(!0),this.setTooltip(ge.Msg.PROCEDURES_DEFRETURN_RETURN+ge.Msg.MIXLY_GET_UNIQUE_IDEN)}},It={init:function(){this.setColour(Be),this.appendValueInput("VAR").appendField(ge.Msg.MIXLY_RTC_TIMESTAMP),this.appendDummyInput().appendField(ge.Msg.MIXLY_TIMESTAMP_TO_DATA),this.setInputsInline(!0),this.setOutput(!0,Number)}},Tt={init:function(){this.setColour(Be),this.appendDummyInput().appendField(ge.Msg.MIXLY_GET_UNIQUE_IDEN),this.setOutput(!0)}},Mt=230;ge.FieldTextInput.math_number_validator=function(e){return String(e)},ge.FieldTextInput.math_number_validator_include_blank=function(e){if(""===e)return"";return/^-?(0X|0x|0O|0o|0B|0b)?[a-fA-F0-9]{1,}(\.[a-fA-F0-9]+)?$/.test(e)?String(e):null};const ht={init:function(){this.setColour(Mt),this.appendDummyInput().appendField(new ge.FieldTextInput("0",ge.FieldTextInput.math_number_validator),"NUM"),this.setOutput(!0,Number),this.setTooltip(ge.Msg.MATH_NUMBER_TOOLTIP)}},mt={init:function(){this.setColour(Mt);this.appendDummyInput("").appendField(ge.Msg.MIXLY_PYTHON_MATH_CONSTANT).appendField(new ge.FieldDropdown([["π","pi"],["e","e"]]),"CONSTANT"),this.setOutput(!0,Number);var e=this;this.setTooltip((function(){var t=e.getFieldValue("CONSTANT");return{pi:ge.Msg.MIXLY_PYTHON_MATH_CONSTANT_PI_TOOLTIP,e:ge.Msg.MIXLY_PYTHON_MATH_CONSTANT_E_TOOLTIP}[t]}))}},Et={init:function(){this.setColour(Mt);this.appendDummyInput("").appendField(ge.Msg.MIXLY_PYTHON_MATH_CONSTANT).appendField(new ge.FieldDropdown([["π","pi"],["e","e"]]),"CONSTANT"),this.setOutput(!0,Number);var e=this;this.setTooltip((function(){var t=e.getFieldValue("CONSTANT");return{pi:ge.Msg.MIXLY_PYTHON_MATH_CONSTANT_PI_MP_TOOLTIP,e:ge.Msg.MIXLY_PYTHON_MATH_CONSTANT_E_MP_TOOLTIP}[t]}))}},Ot={init:function(){this.setColour(Mt),this.setOutput(!0),this.appendValueInput("A"),this.appendValueInput("B").appendField(new ge.FieldDropdown([["+","ADD"],["-","MINUS"],["×","MULTIPLY"],["÷","DIVIDE"],["%","QUYU"],["//","ZHENGCHU"],["**","POWER"]]),"OP"),this.setInputsInline(!0);var e=this;this.setTooltip((function(){var t=e.getFieldValue("OP");return{ADD:ge.Msg.MATH_ARITHMETIC_TOOLTIP_ADD,MINUS:ge.Msg.MATH_ARITHMETIC_TOOLTIP_MINUS,MULTIPLY:ge.Msg.MATH_ARITHMETIC_TOOLTIP_MULTIPLY,DIVIDE:ge.Msg.MATH_ARITHMETIC_TOOLTIP_DIVIDE,QUYU:ge.Msg.MATH_MODULO_TOOLTIP,ZHENGCHU:ge.Msg.MATH_ARITHMETIC_TOOLTIP_DIVIDE,POWER:ge.Msg.MATH_ARITHMETIC_TOOLTIP_POWER}[t]}))}},Rt={init:function(){this.setColour(Mt),this.setPreviousStatement(!0),this.setNextStatement(!0),this.appendValueInput("A"),this.appendValueInput("B").appendField(new ge.FieldDropdown([["+=","ADD"],["-=","MINUS"],["×=","MULTIPLY"],["÷=","DIVIDE"],["%=","QUYU"],["//=","ZHENGCHU"],["**=","POWER"]]),"OP"),this.setInputsInline(!0);var e=this;this.setTooltip((function(){var t=e.getFieldValue("OP");return{ADD:ge.Msg.MATH_ARITHMETIC_TOOLTIP_ADD,MINUS:ge.Msg.MATH_ARITHMETIC_TOOLTIP_MINUS,MULTIPLY:ge.Msg.MATH_ARITHMETIC_TOOLTIP_MULTIPLY,DIVIDE:ge.Msg.MATH_ARITHMETIC_TOOLTIP_DIVIDE,QUYU:ge.Msg.MATH_MODULO_TOOLTIP,ZHENGCHU:ge.Msg.MATH_ARITHMETIC_TOOLTIP_DIVIDE,POWER:ge.Msg.MATH_ARITHMETIC_TOOLTIP_POWER}[t]}))}},ct={init:function(){this.setColour(Mt),this.setOutput(!0,Number),this.appendValueInput("A").setCheck(Number),this.appendValueInput("B").setCheck(Number).appendField(new ge.FieldDropdown([["&","&"],["|","|"],[">>",">>"],["<<","<<"]]),"OP"),this.setInputsInline(!0),this.setTooltip("位运算")}},gt={init:function(){this.setColour(Mt),this.setOutput(!0,Number),this.appendValueInput("NUM").setCheck(Number).appendField(new ge.FieldDropdown([["sin","SIN"],["cos","COS"],["tan","TAN"],["asin","ASIN"],["acos","ACOS"],["atan","ATAN"],["-","-"],["ln","LN"],["log10","LOG10"],["e^","EXP"],["10^","POW10"]]),"OP");var e=this;this.setTooltip((function(){var t=e.getFieldValue("OP");return{SIN:ge.Msg.MATH_TRIG_TOOLTIP_SIN,COS:ge.Msg.MATH_TRIG_TOOLTIP_COS,TAN:ge.Msg.MATH_TRIG_TOOLTIP_TAN,ASIN:ge.Msg.MATH_TRIG_TOOLTIP_ASIN,ACOS:ge.Msg.MATH_TRIG_TOOLTIP_ACOS,ATAN:ge.Msg.MATH_TRIG_TOOLTIP_ATAN,LN:ge.Msg.MATH_SINGLE_TOOLTIP_LN}[t]}))}},Ct={init:function(){var e=[[ge.Msg.MATH_BIN,"bin"],[ge.Msg.MATH_OCT,"oct"],[ge.Msg.MATH_HEX,"hex"]];this.setColour(Mt),this.setOutput(!0,String),this.appendValueInput("NUM").setCheck(Number).appendField(new ge.FieldDropdown(e),"OP");var t=this;this.setTooltip((function(){var e=t.getFieldValue("OP");return{bin:ge.Msg.MATH_DEC_TOOLTIP_BIN,oct:ge.Msg.MATH_DEC_TOOLTIP_OCT,hex:ge.Msg.MATH_DEC_TOOLTIP_HEX}[e]}))}},St={init:function(){var e=[[ge.Msg.LANG_MATH_TO_ROUND,"round"],[ge.Msg.LANG_MATH_TO_CEIL,"ceil"],[ge.Msg.LANG_MATH_TO_FLOOR,"floor"],[ge.Msg.MATH_ABS,"fabs"],[ge.Msg.MATH_SQRT,"sqrt"]];this.setColour(Mt),this.appendValueInput("A").setCheck(Number).appendField(new ge.FieldDropdown(e),"OP"),this.setOutput(!0,Number);var t=this;this.setTooltip((function(){var e=t.getFieldValue("OP");return{sqrt:ge.Msg.MATH_SINGLE_TOOLTIP_ROOT,fabs:ge.Msg.MATH_SINGLE_TOOLTIP_ABS,sq:ge.Msg.MATH_SINGLE_TOOLTIP_SQ,round:ge.Msg.MATH_SINGLE_TOOLTIP_ROUND,ceil:ge.Msg.MATH_SINGLE_TOOLTIP_CEIL,floor:ge.Msg.MATH_SINGLE_TOOLTIP_FLOOR}[e]}))}},At={init:function(){var e=[[ge.Msg.MIXLY_MAX,"max"],[ge.Msg.MIXLY_MIN,"min"]];this.setColour(Mt),this.appendValueInput("A").setCheck(Number).setAlign(ge.inputs.Align.RIGHT).appendField(new ge.FieldDropdown(e),"OP").appendField("("),this.appendValueInput("B").setCheck(Number).setAlign(ge.inputs.Align.RIGHT).appendField(","),this.appendDummyInput("").setAlign(ge.inputs.Align.RIGHT).appendField(")"),this.setInputsInline(!0),this.setOutput(!0,Number);var t=this;this.setTooltip((function(){var e=t.getFieldValue("OP");return{max:ge.Msg.MIXLY_TOOLTIP_MATH_MAX,min:ge.Msg.MIXLY_TOOLTIP_MATH_MIN}[e]}))}},Lt={init:function(){var e=[[ge.Msg.MATH_TWO,"two"],[ge.Msg.MATH_EIGHT,"eight"],[ge.Msg.MATH_TEN,"ten"],[ge.Msg.MATH_SIXTEEN,"sixteen"]];this.setColour(Mt),this.appendDummyInput("").appendField(ge.Msg.MATH_BA),this.appendValueInput("NUM").appendField(new ge.FieldDropdown(e),"OP").appendField(ge.Msg.MATH_JinZhi).setCheck(Number),this.appendDummyInput("").appendField(ge.Msg.MATH_ZHW).appendField(new ge.FieldDropdown(e),"OP2").appendField(ge.Msg.MATH_JinZhi),this.setFieldValue("ten","OP2"),this.setOutput(!0),this.setInputsInline(!0);var t=this;this.setTooltip((function(){var e=t.getFieldValue("OP"),i={two:ge.Msg.MATH_Before_two,eight:ge.Msg.MATH_Before_eight,ten:ge.Msg.MATH_Before_ten,sixteen:ge.Msg.MATH_Before_sixteen},n=t.getFieldValue("OP2"),s={two:ge.Msg.MATH_Behind_two,eight:ge.Msg.MATH_Behind_eight,ten:ge.Msg.MATH_Behind_ten,sixteen:ge.Msg.MATH_Behind_sixteen};return i[e]+s[n]}))}},Nt={init:function(){var e=[[ge.Msg.LANG_MATH_INT,"int"],[ge.Msg.LANG_MATH_FLOAT,"float"]];this.setColour(Mt),this.setOutput(!0,Number),this.appendDummyInput().appendField(ge.Msg.MIXLY_MICROBIT_RANDOM).appendField(new ge.FieldDropdown(e),"TYPE"),this.appendValueInput("FROM").setCheck(Number).appendField(ge.Msg.LANG_CONTROLS_FOR_INPUT_FROM),this.appendValueInput("TO").setCheck(Number).setAlign(ge.inputs.Align.RIGHT).appendField(ge.Msg.LANG_MATH_RANDOM_INT_INPUT_TO),this.setInputsInline(!0);var t=this;this.setTooltip((function(){var e=t.getFieldValue("TYPE"),i={int:ge.Msg.LANG_MATH_INT,float:ge.Msg.LANG_MATH_FLOAT_RANDOM};return ge.Msg.MATH_RANDOM_INT_TOOLTIP+i[e]}))}},Dt={init:function(){this.setColour(Mt),this.setOutput(!0,Number),this.appendValueInput("VALUE").setCheck(Number).appendField(ge.Msg.LANG_MATH_CONSTRAIN_INPUT_CONSTRAIN),this.appendValueInput("LOW").setCheck(Number).appendField(ge.Msg.LANG_MATH_CONSTRAIN_INPUT_LOW),this.appendValueInput("HIGH").setCheck(Number).appendField(ge.Msg.LANG_MATH_CONSTRAIN_INPUT_HIGH),this.setInputsInline(!0),this.setTooltip(ge.Msg.MATH_CONSTRAIN_TOOLTIP)}},ft={init:function(){this.setColour(Mt),this.appendValueInput("NUM",Number).appendField(ge.Msg.MIXLY_MAP).setCheck(Number),this.appendValueInput("fromLow",Number).appendField(ge.Msg.MIXLY_MAP_FROM).setCheck(Number),this.appendValueInput("fromHigh",Number).appendField(",").setCheck(Number),this.appendValueInput("toLow",Number).appendField(ge.Msg.MIXLY_MAP_TO).setCheck(Number),this.appendValueInput("toHigh",Number).appendField(",").setCheck(Number),this.appendDummyInput("").appendField("]"),this.setInputsInline(!0),this.setOutput(!0),this.setTooltip(ge.Msg.MIXLY_TOOLTIP_MATH_MAP)}},Ft={init:function(){this.setColour(Mt),this.appendDummyInput().appendField(new ge.FieldTextInput("0",ge.FieldTextInput.math_number_validator_include_blank),"NUM"),this.setOutput(!0),this.setTooltip(ge.Msg.MATH_NUMBER_TOOLTIP)}},Pt={init:function(){this.setColour(Mt),this.appendValueInput("NUM").setCheck(Number).appendField(ge.Msg.LANG_MATH_RANDOM_SEED),this.setPreviousStatement(!0),this.setNextStatement(!0),this.setTooltip(ge.Msg.MIXLY_TOOLTIP_MATH_RANDOM_SEED)}},vt={init:function(){this.setColour(Mt),this.setOutput(!0,Number),this.appendValueInput("VALUE").setCheck(Number),this.appendValueInput("VAR").setCheck(Number).appendField(ge.Msg.MATH_ROUND).appendField(ge.Msg.TEXT_KEEP),this.appendDummyInput().appendField(ge.Msg.TEXT_DECIMAL),this.setInputsInline(!0),this.setTooltip(ge.Msg.MATH_ROUND_NEW_TOOLTIP)}},Yt={init:function(){var e=[[ge.Msg.MIXLY_TO_INT,"int"],[ge.Msg.MIXLY_TO_FLOAT,"float"],[ge.Msg.MIXLY_TO_BITES,"b"],[ge.Msg.LANG_MATH_BYTE+ge.Msg.MIXLY_TO_INT,"bti"]];this.setColour(Mt),this.appendValueInput("VAR").appendField(new ge.FieldDropdown(e),"TOWHAT"),this.setOutput(!0,Number);var t=this;this.setTooltip((function(){var e=t.getFieldValue("TOWHAT");return{int:ge.Msg.MIXLY_PYTHON_TOOLTIP_TOINT,float:ge.Msg.MIXLY_PYTHON_TOOLTIP_TOFLOAT,b:ge.Msg.MIXLY_TOOLTIP_TEXT_TOBYTE}[e]}))}},Xt={init:function(){var e=[[ge.Msg.MIXLY_TO_INT,"int"],[ge.Msg.MIXLY_TO_FLOAT,"float"]];this.setColour(Mt),this.appendValueInput("VAR").appendField(new ge.FieldDropdown(e),"TOWHAT"),this.setOutput(!0,Number);var t=this;this.setTooltip((function(){var e=t.getFieldValue("TOWHAT");return{int:ge.Msg.MIXLY_TOOLTIP_TEXT_TOINT,float:ge.Msg.MIXLY_TOOLTIP_TEXT_TOFLOAT}[e]}))}},yt=ft,bt={init:function(){this.setColour(Mt),this.appendValueInput("VAR").appendField(ge.Msg.LANG_MATH_BYTE+ge.Msg.MIXLY_TO_HEX),this.setOutput(!0,Number),this.setTooltip(ge.Msg.MIXLY_PYTHON_TOOLTIP_TOHEX)}},xt={init:function(){this.setColour(Mt),this.itemCount_=1,this.setMutator(new ge.icons.MutatorIcon(["lists_create_with_item"],this)),this.appendDummyInput("DUMMY").appendField(ge.Msg.MIXLY_PRODUCT+ge.Msg.MIXLY_GENERATE_CARTESIAN_PRODUCT),this.appendValueInput("REPEAT").appendField(ge.Msg.MIXLY_EVERY_PER_ELEPER_ELEMENT),this.appendDummyInput().appendField(ge.Msg.CONTROLS_REPEAT_TITLE_TIMES),this.setPreviousStatement(!1),this.setNextStatement(!1),this.setOutput(!0),this.setTooltip(ge.Msg.LISTS_CREATE_WITH_PYTHON_TOOLTIP),this.updateShape_()},mutationToDom:function(){var e=document.createElement("mutation");return e.setAttribute("items",this.itemCount_),e},domToMutation:function(e){this.itemCount_=parseInt(e.getAttribute("items"),10),this.updateShape_()},decompose:function(e){var t=e.newBlock("lists_create_with_container");t.initSvg();for(var i=t.getInput("STACK").connection,n=0;n1&&"\\"===e.charAt(0)){var t=e.charAt(1);if("0"===t||"b"===t||"f"===t||"n"===t||"r"===t||"t"===t||"\\"===t||"'"===t)return String(e).substring(0,2);if("x"===t&&"0"===e.charAt(2)&&"B"===e.charAt(3))return String(e).substring(0,4)}return String(e).substring(0,1)};const Ht={init:function(){this.setColour(Gt),this.appendDummyInput().appendField(this.newQuote_(!0)).appendField(new ge.FieldTextInput("",ge.FieldTextInput.char_validator),"TEXT").appendField(this.newQuote_(!1)),this.setOutput(!0,Number),this.setTooltip(ge.Msg.TEXT_CHAR_TOOLTIP)},newQuote_:function(e){if(1==e)var t="../../media/quote2.png";else t="../../media/quote3.png";return new ge.FieldImage(t,7,12,'"')}},Wt={init:function(){this.setColour(Gt),this.appendValueInput("A").setCheck([String,Number]),this.appendValueInput("B").setCheck([String,Number]).appendField(ge.Msg.MIXLY_TEXT_JOIN),this.setInputsInline(!0),this.setOutput(!0,String),this.setTooltip(ge.Msg.MIXLY_TOOLTIP_TEXT_JOIN)}},Kt={init:function(){this.setColour(Gt),this.appendValueInput("VAR").setCheck(Number).appendField(ge.Msg.MIXLY_TOCHAR),this.setOutput(!0,String),this.setTooltip(ge.Msg.MIXLY_TOOLTIP_TEXT_TOCHAR)}},Jt={init:function(){this.setColour(Gt),this.appendValueInput("VAR").setCheck(String).appendField(ge.Msg.MIXLY_TOASCII),this.setOutput(!0,Number),this.setTooltip(ge.Msg.MIXLY_TOOLTIP_TEXT_TOASCII)}},qt={init:function(){this.setColour(Gt),this.appendValueInput("VAR").appendField(ge.Msg.MIXLY_TOSTRING),this.setOutput(!0,String),this.setTooltip(ge.Msg.MIXLY_PYTHON_TOOLTIP_TOTEXT)}},Qt={init:function(){this.setColour(Gt),this.appendValueInput("VAR").appendField(ge.Msg.MIXLY_LENGTH),this.setOutput(!0,Number),this.setTooltip(ge.Msg.MIXLY_TOOLTIP_TEXT_LENGTH)}},zt={init:function(){this.WHERE_OPTIONS=[[ge.Msg.LISTS_GET_INDEX_FROM_START,"FROM_START"],[ge.Msg.LISTS_GET_INDEX_FROM_END,"FROM_END"],[ge.Msg.TEXT_GET_INDEX_RANDOM+1+ge.Msg.TEXT_CHARAT2,"RANDOM"]],this.setHelpUrl(ge.Msg.LISTS_GET_INDEX_HELPURL),this.setColour(Gt),this.appendValueInput("VAR").setCheck(String),this.appendValueInput("AT").setCheck(Number),this.appendDummyInput().appendField(ge.Msg.LISTS_GET_INDEX_GET,"MODE"),ge.Msg.LISTS_GET_INDEX_TAIL&&this.appendDummyInput("TAIL").appendField(ge.Msg.LISTS_GET_INDEX_TAIL),this.setInputsInline(!0),this.setOutput(!0),this.updateAt_(!0);var e=this;this.setTooltip((function(){var t=e.getFieldValue("MODE"),i=e.getFieldValue("WHERE"),n="";switch(t+" "+i){case"GET FROM_START":case"GET FROM_END":n=ge.Msg.LISTS_GET_INDEX_TOOLTIP_GET_FROM;break;case"GET RANDOM":n=ge.Msg.LISTS_GET_INDEX_TOOLTIP_GET_RANDOM;break;case"GET_REMOVE FROM_START":case"GET_REMOVE FROM_END":n=ge.Msg.LISTS_GET_INDEX_TOOLTIP_GET_REMOVE_FROM;break;case"GET_REMOVE RANDOM":n=ge.Msg.LISTS_GET_INDEX_TOOLTIP_GET_REMOVE_RANDOM}return"FROM_START"!=i&&"FROM_END"!=i||(n+=" "+ge.Msg.LISTS_INDEX_FROM_START_TOOLTIP.replace("%1",ge.Msg.ONE_BASED_INDEXING?"#1":"#0")),n}));var t=this;this.setTooltip((function(){var e=t.getFieldValue("WHERE"),i={FROM_START:ge.Msg.LISTS_GET_INDEX_FROM_START,FROM_END:ge.Msg.LISTS_GET_INDEX_FROM_END,RANDOM:ge.Msg.TEXT_GET_INDEX_RANDOM};return ge.Msg.PROCEDURES_DEFRETURN_RETURN+ge.Msg.MIXLY_MICROBIT_TYPE_STRING+i[e]+"n"+ge.Msg.TEXT_CHARAT2}))},mutationToDom:function(){var e=document.createElement("mutation");e.setAttribute("statement",!this.outputConnection);var t=this.getInput("AT").type==ge.INPUT_VALUE;return e.setAttribute("at",t),e},domToMutation:function(e){var t="true"==e.getAttribute("statement");this.updateStatement_(t),e="false"!=e.getAttribute("at"),this.updateAt_(e)},updateStatement_:function(e){e!=!this.outputConnection&&(this.unplug(!0,!0),e?(this.setOutput(!1),this.setPreviousStatement(!0),this.setNextStatement(!0)):(this.setPreviousStatement(!1),this.setNextStatement(!1),this.setOutput(!0)))},updateAt_:function(e){this.removeInput("AT"),this.removeInput("ORDINAL",!0),e?(this.appendValueInput("AT").setCheck(Number),ge.Msg.TEXT_CHARAT2&&this.appendDummyInput("ORDINAL").appendField(ge.Msg.TEXT_CHARAT2)):this.appendDummyInput("AT");var t=new ge.FieldDropdown(this.WHERE_OPTIONS,(function(t){var i="FROM_START"==t||"FROM_END"==t;if(i!=e){var n=this.sourceBlock_;return n.updateAt_(i),n.setFieldValue(t,"WHERE"),null}}));this.getInput("AT").appendField(t,"WHERE"),ge.Msg.LISTS_GET_INDEX_TAIL&&this.moveInputBefore("TAIL",null)}},jt={init:function(){this.setHelpUrl(ge.Msg.LISTS_GET_INDEX_HELPURL),this.setColour(Gt),this.appendValueInput("VAR").setCheck(String),this.appendValueInput("AT").setCheck(Number).appendField(ge.Msg.LISTS_GET_INDEX_GET+" "+ge.Msg.LISTS_GET_INDEX_FROM_START),this.appendDummyInput().appendField(ge.Msg.TEXT_CHARAT2),this.setOutput(!0),this.setTooltip(ge.Msg.PROCEDURES_DEFRETURN_RETURN+ge.Msg.MIXLY_MICROBIT_TYPE_STRING+ge.Msg.LISTS_GET_INDEX_FROM_START+"n"+ge.Msg.TEXT_CHARAT2)}},$t={init:function(){this.setHelpUrl(ge.Msg.LISTS_GET_INDEX_HELPURL),this.setColour(Gt),this.appendValueInput("VAR").setCheck(String),this.appendDummyInput().appendField(ge.Msg.TEXT_RANDOM_CHAR),this.setOutput(!0),this.setTooltip(ge.Msg.TEXT_RANDOM_CHAR_TOOLTIP)}},Zt={init:function(){this.WHERE_OPTIONS_1=[[ge.Msg.LISTS_GET_INDEX_FROM_START,"FROM_START"],[ge.Msg.LISTS_GET_INDEX_FROM_END,"FROM_END"],[ge.Msg.LISTS_GET_SUBLIST_START_FIRST,"FIRST"]],this.WHERE_OPTIONS_2=[[ge.Msg.LISTS_GET_SUBLIST_END_FROM_START,"FROM_START"],[ge.Msg.LISTS_GET_SUBLIST_END_FROM_END,"FROM_END"],[ge.Msg.LISTS_GET_SUBLIST_END_LAST,"LAST"]],this.setHelpUrl(ge.Msg.LISTS_GET_SUBLIST_HELPURL),this.setColour(Gt),this.appendValueInput("VAR").setCheck(String),this.appendDummyInput("").appendField(ge.Msg.MIXLY_MICROBIT_PY_STORAGE_GET),this.appendDummyInput("AT1"),this.appendDummyInput("AT2"),this.setInputsInline(!0),this.setOutput(!0,"List"),this.updateAt_(1,!0),this.updateAt_(2,!0),this.setTooltip(ge.Msg._GET_TEXT_SUBLIST_TOOLTIP)},mutationToDom:function(){var e=document.createElement("mutation"),t=this.getInput("AT1").type==ge.INPUT_VALUE;e.setAttribute("at1",t);var i=this.getInput("AT2").type==ge.INPUT_VALUE;return e.setAttribute("at2",i),e},domToMutation:function(e){var t="true"==e.getAttribute("at1"),i="true"==e.getAttribute("at2");this.updateAt_(1,t),this.updateAt_(2,i)},updateAt_:function(e,t){this.removeInput("AT"+e),this.removeInput("ORDINAL"+e,!0),t?(this.appendValueInput("AT"+e).setCheck(Number),ge.Msg.TEXT_CHARAT2&&this.appendDummyInput("ORDINAL"+e).appendField(ge.Msg.TEXT_CHARAT2)):this.appendDummyInput("AT"+e);var i=new ge.FieldDropdown(this["WHERE_OPTIONS_"+e],(function(i){var n="FROM_START"==i||"FROM_END"==i;if(n!=t){var s=this.sourceBlock_;return s.updateAt_(e,n),s.setFieldValue(i,"WHERE"+e),null}}));this.getInput("AT"+e).appendField(i,"WHERE"+e),1==e&&(this.moveInputBefore("AT1","AT2"),this.getInput("ORDINAL1")&&this.moveInputBefore("ORDINAL1","AT2"))}},ei={init:function(){this.setHelpUrl(ge.Msg.LISTS_GET_SUBLIST_HELPURL),this.setColour(Gt),this.appendValueInput("VAR").setCheck(String),this.appendValueInput("AT1").appendField(ge.Msg.LISTS_GET_INDEX_GET+" "+ge.Msg.LISTS_GET_INDEX_FROM_START),this.appendValueInput("AT2").appendField(ge.Msg.LISTS_GET_SUBLIST_END_FROM_START),this.appendDummyInput().appendField(ge.Msg.TEXT_CHARAT2),this.setInputsInline(!0),this.setOutput(!0,["List",String]),this.setTooltip(ge.Msg._GET_TEXT_SUBLIST_TOOLTIP)}},ti={init:function(){var e=[[ge.Msg.MIXLY_EQUALS,"==="],[ge.Msg.MIXLY_STARTSWITH,"startswith"],[ge.Msg.MIXLY_ENDSWITH,"endswith"]];this.setColour(Gt),this.appendValueInput("STR1").setCheck(String),this.appendValueInput("STR2").appendField(new ge.FieldDropdown(e),"DOWHAT").setCheck(String),this.setOutput(!0,[Boolean,Number]),this.setInputsInline(!0)}},ii={init:function(){this.setColour(Gt),this.appendValueInput("STR1").setCheck(String),this.appendValueInput("STR2").appendField(ge.Msg.MIXLY_COMPARETO).setCheck(String),this.setOutput(!0,Number),this.setInputsInline(!0),this.setTooltip(ge.Msg.MIXLY_COMPARETO_HELP)}},ni={init:function(){var e=[[ge.Msg.TEXT_UPPER,"upper"],[ge.Msg.TEXT_TITLE,"title"],[ge.Msg.TEXT_CAPITALIZE,"capitalize"],[ge.Msg.TEXT_SWAPCASE,"swapcase"],[ge.Msg.TEXT_LOWER,"lower"]];this.setColour(Gt),this.appendValueInput("VAR").appendField(ge.Msg.MIXLY_MICROBIT_PY_STORAGE_GET).appendField(new ge.FieldDropdown(e),"CAPITAL").setCheck(String),this.setOutput(!0,String);var t=this;this.setTooltip((function(){var e=t.getFieldValue("CAPITAL");return{upper:ge.Msg.MIXLY_MIXPY_TEXT_UPPER_TOOLTIP,title:ge.Msg.MIXLY_MIXPY_TEXT_TITLE_TOOLTIP,swapcase:ge.Msg.MIXLY_MIXPY_TEXT_SWAPCASE_TOOLTIP,capitalize:ge.Msg.MIXLY_MIXPY_TEXT_CAPITALIZE_TOOLTIP,lower:ge.Msg.MIXLY_MIXPY_TEXT_LOWER_TOOLTIP}[e]}))}},si={init:function(){var e=[[ge.Msg.TEXT_LJUST,"ljust"],[ge.Msg.TEXT_CENTER,"center"],[ge.Msg.TEXT_RJUST,"rjust"]];this.setColour(Gt),this.appendValueInput("VAR").appendField(new ge.FieldDropdown(e),"CENTER").setCheck(String),this.appendValueInput("WID").appendField(ge.Msg.MIXLY_WIDTH).setCheck(Number),this.appendValueInput("Symbol").appendField(ge.Msg.MIXLY_RECT_Fill).setCheck(String),this.setInputsInline(!0),this.setOutput(!0,String),this.setTooltip(ge.Msg.MIXLY_MIXPY_TEXT_CENTER_TOOLTIP)}},_i={init:function(){this.setColour(Gt),this.appendValueInput("VAR").appendField(ge.Msg.MIXLY_MICROBIT_PY_STORAGE_GET).setCheck(String),this.appendValueInput("STR").appendField(ge.Msg.MIXLY_MID+ge.Msg.MIXLY_MICROBIT_PY_STORAGE_CHARACTER).setCheck(String),this.appendDummyInput().appendField(ge.Msg.MIXLY_LIST_INDEX),this.setInputsInline(!0),this.setOutput(!0,String),this.setTooltip(ge.Msg.MIXLY_MIXPY_TEXT_FIND_TOOLTIP)}},oi={init:function(){this.setColour(Gt),this.appendValueInput("VAR").appendField(ge.Msg.MIXLY_PYTHON_TEXT_JOIN_SEQ_USE_STR).setCheck(String),this.appendValueInput("LIST").appendField(ge.Msg.MIXLY_PYTHON_TEXT_JOIN_SEQ_SEQ).setCheck("List","Tuple","Set","Dict"),this.appendDummyInput().appendField(ge.Msg.MIXLY_PYTHON_TEXT_JOIN_SEQ_GET_STR),this.setInputsInline(!0),this.setOutput(!0,String),this.setTooltip(ge.Msg.MIXLY_PYTHON_TEXT_JOIN_SEQ_TOOLTIP)}},pi={init:function(){this.setColour(Gt),this.appendValueInput("VAR").setCheck(String),this.appendValueInput("STR1").appendField(ge.Msg.MIXLY_MIXPY_REPLACE).setCheck(String),this.appendValueInput("STR2").appendField(ge.Msg.LISTS_SET_INDEX_INPUT_TO).setCheck(String),this.setInputsInline(!0),this.setOutput(!0,String),this.setTooltip(ge.Msg.MIXLY_MIXPY_TEXT_REPLACE_TOOLTIP)}},ai={init:function(){this.setColour(Gt),this.appendValueInput("VAR"),this.appendValueInput("VAL").appendField(ge.Msg.LIST_SPLIT_AS),this.appendDummyInput("").appendField(ge.Msg.LIST_SPLIT),this.setOutput(!0,"List"),this.setTooltip(ge.Msg.MIXLY_MIXPY_TEXT_SPLIT_TOOLTIP),this.setInputsInline(!0)}},ui={init:function(){var e=[[ge.Msg.TEXT_TRIM_BOTH,"strip"],[ge.Msg.TEXT_TRIM_LEFT,"lstrip"],[ge.Msg.TEXT_TRIM_RIGHT,"rstrip"]];this.setColour(Gt),this.appendValueInput("VAR"),this.appendDummyInput("").appendField(ge.Msg.TEXT_STRIM),this.appendDummyInput("").appendField(new ge.FieldDropdown(e),"TOWHAT"),this.appendDummyInput("").appendField(ge.Msg.TEXT_BLANK),this.setOutput(!0,String),this.setInputsInline(!0);var t=this;this.setTooltip((function(){var e=t.getFieldValue("TOWHAT");return{strip:ge.Msg.TEXT_TRIM_BOTH_TOOLTIP,lstrip:ge.Msg.TEXT_TRIM_LEFT_TOOLTIP,rstrip:ge.Msg.TEXT_TRIM_RIGHT_TOOLTIP}[e]}))}},ri={init:function(){this.setColour(Gt),this.appendDummyInput("").appendField(ge.Msg.MIXLY_MICROPYTHON_FORMAT),this.appendDummyInput("").appendField(new ge.FieldTextInput("str"),"VAR"),this.itemCount_=1,this.updateShape_(),this.setPreviousStatement(!1),this.setNextStatement(!1),this.setInputsInline(!0),this.setMutator(new ge.icons.MutatorIcon(["text_create_with_item"],this)),this.setOutput(!0),this.setTooltip(ge.Msg.MIXLY_MIXPY_TEXT_FORMAT_TOOLTIP)},mutationToDom:function(){var e=document.createElement("mutation");return e.setAttribute("items",this.itemCount_),e},domToMutation:function(e){this.itemCount_=parseInt(e.getAttribute("items"),10),this.updateShape_()},decompose:function(e){var t=e.newBlock("text_create_with_container");t.initSvg();for(var i=t.getInput("STACK").connection,n=0;nt?e[t]:0==t?'"key"':'"key'+(t+1)+'"'),"KEY"+t).appendField(":")}},getVars:function(){return[this.getFieldValue("VAR")]},renameVar:function(e,t){ge.Names.equals(e,this.getFieldValue("VAR"))&&this.setTitleValue(t,"VAR")}},pn={init:function(){this.setColour(_n),this.appendDummyInput().appendField(ge.Msg.MIXLY_MICROBIT_TYPE_DICT),this.appendStatementInput("STACK"),this.setTooltip(ge.Msg.DICTS_CREATE_WITH_CONTAINER_TOOLTIP),this.contextMenu=!1}},an={init:function(){this.setColour(_n),this.appendDummyInput().appendField(ge.Msg.DICTS_CREATE_WITH_ITEM_TITLE),this.setPreviousStatement(!0),this.setNextStatement(!0),this.setTooltip(ge.Msg.DICTS_CREATE_WITH_ITEM_TOOLTIP),this.contextMenu=!1}},un={init:function(){this.setColour(_n),this.appendValueInput("DICT").setCheck("Dict"),this.appendDummyInput("").appendField(ge.Msg.DICT_KEYS),this.setTooltip(ge.Msg.DICTS_KEYS_TOOLTIP),this.setOutput(!0,"List")}},rn={init:function(){this.setColour(_n),this.appendValueInput("DICT").setCheck("Dict"),this.appendValueInput("KEY").appendField(ge.Msg.DICTS_GET_IN),this.appendDummyInput("").appendField(ge.Msg.DICTS_ADD_VALUE),this.setOutput(!0),this.setTooltip(ge.Msg.DICTS_GET_TOOLTIP)}},ln={init:function(){this.setColour(_n),this.appendValueInput("DICT").setCheck("Dict"),this.appendValueInput("KEY").appendField(ge.Msg.DICTS_GET_IN),this.appendDummyInput("").appendField(ge.Msg.DICTS_ADD_VALUE),this.appendValueInput("VAR").appendField(ge.Msg.DICTS_DEFAULT_VALUE),this.setOutput(!0),this.setTooltip(ge.Msg.DICTS_GET_DEFAULT_TOOLTIP)}},dn={init:function(){this.setColour(_n),this.appendValueInput("DICT"),this.appendValueInput("KEY").appendField(ge.Msg.DICTS_ADD),this.appendDummyInput(),this.appendValueInput("VAR").appendField(ge.Msg.DICTS_ADD_VALUE),this.setInputsInline(!0),this.setPreviousStatement(!0),this.setNextStatement(!0),this.setTooltip(ge.Msg.DICTS_ADD_OR_CHANGE_TOOLTIP)}},In={init:function(){this.setColour(_n),this.appendValueInput("DICT"),this.appendValueInput("KEY").appendField(ge.Msg.DICTS_DELETE_IN),this.appendDummyInput("").appendField(ge.Msg.DICTS_DELETE_VALUE),this.setPreviousStatement(!0),this.setNextStatement(!0),this.setTooltip(ge.Msg.DICTS_DELETE_TOOLTIP)}},Tn={init:function(){this.setColour(_n),this.appendValueInput("DICT2").setCheck("Dict").appendField(ge.Msg.MAKE_DICT),this.appendValueInput("DICT").setCheck("Dict").appendField(ge.Msg.DICT_UPDATE),this.appendDummyInput("").appendField(ge.Msg.MIXLY_MID),this.setTooltip(ge.Msg.DICTS_UPDATE_TOOLTIP),this.setPreviousStatement(!0),this.setNextStatement(!0)}},Mn={init:function(){this.setColour(_n),this.appendValueInput("DICT").setCheck("Dict"),this.appendDummyInput("").appendField(ge.Msg.DICT_CLEAR),this.setTooltip(ge.Msg.DICTS_CLEAR_TOOLTIP),this.setPreviousStatement(!0),this.setNextStatement(!0)}},hn={init:function(){this.setColour(_n),this.appendValueInput("DICT").setCheck("Dict"),this.appendDummyInput("").appendField(ge.Msg.DICT_ITEMS),this.setTooltip(ge.Msg.DICTS_ITEMS_TOOLTIP),this.setOutput(!0,"List")}},mn={init:function(){this.setColour(_n),this.appendValueInput("DICT").setCheck("Dict"),this.appendDummyInput("").appendField(ge.Msg.DICT_VALUES),this.setTooltip(ge.Msg.DICTS_VALUES_TOOLTIP),this.setOutput(!0,"List")}},En={init:function(){this.setColour(_n),this.appendValueInput("DICT").setCheck("Dict"),this.appendDummyInput("").appendField(ge.Msg.MIXLY_LENGTH),this.setTooltip(ge.Msg.DICT_LENGTH_TOOLTIP),this.setOutput(!0,Number)}},On={init:function(){this.setColour(_n),this.appendValueInput("DICT").setCheck("Dict"),this.appendDummyInput("").appendField(ge.Msg.DICT_DELDICT),this.setTooltip(ge.Msg.DICTS_DEL_TOOLTIP),this.setPreviousStatement(!0),this.setNextStatement(!0)}},Rn={init:function(){this.MODE=[[ge.Msg.DICTS_ADD_OR_CHANGE,"INSERT"],[ge.Msg.MIXLY_MICROBIT_JS_DELETE_VAR,"DELETE"]],this.setHelpUrl(ge.Msg.LISTS_GET_SUBLIST_HELPURL),this.setColour(_n),this.appendValueInput("DICT").setCheck("Dict"),this.appendDummyInput("AT2"),this.appendValueInput("KEY"),this.appendDummyInput("").appendField(ge.Msg.MIXLY_MICROPYTHON_SOCKET_MAKE).appendField(ge.Msg.DICTS_ADD_VALUE),this.updateAt_(!0),this.setInputsInline(!0),this.setOutput(!1),this.setPreviousStatement(!0),this.setNextStatement(!0);var e=this;this.setTooltip((function(){var t="";switch(e.getFieldValue("WHERE")){case"INSERT":t=ge.Msg.DICTS_ADD_TOOLTIP;break;case"DELETE":t=ge.Msg.DICTS_DELETE_TOOLTIP}return t}))},mutationToDom:function(){var e=document.createElement("mutation"),t=this.getInput("AT2").type==ge.INPUT_VALUE;return e.setAttribute("at2",t),e},domToMutation:function(e){var t="true"==e.getAttribute("at2");this.updateAt_(t)},updateAt_:function(e){this.removeInput("AT2"),this.removeInput("ORDINAL",!0),e?this.appendValueInput("AT2").setCheck(Number):this.appendDummyInput("AT2");var t=new ge.FieldDropdown(this.MODE,(function(t){var i="INSERT"==t;if(i!=e){var n=this.sourceBlock_;return n.updateAt_(i),n.setFieldValue(t,"WHERE"),null}}));this.getInput("AT2").appendField(t,"WHERE")}},cn={init:function(){this.setColour(_n),this.appendValueInput("DICT").setCheck("Dict"),this.appendDummyInput("").appendField(ge.Msg.blockpy_DICT_POP),this.appendValueInput("KEY"),this.appendDummyInput("").appendField(ge.Msg.DICTS_ADD_VALUE),this.setTooltip(ge.Msg.DICT_POP_TOOLTIP),this.setInputsInline(!0),this.setOutput(!0)}},gn={init:function(){this.setColour(_n),this.appendValueInput("DICT").setCheck("Dict"),this.appendValueInput("KEY").appendField(ge.Msg.DICTS_SET_DEFAULT),this.appendDummyInput("").appendField(ge.Msg.DICTS_DEFAULT_VALUE),this.appendValueInput("VAR"),this.setPreviousStatement(!0),this.setNextStatement(!0),this.setTooltip(ge.Msg.DICTS_SETDEFAULT_TOOLTIP)}},Cn={init:function(){this.setColour(_n),this.appendDummyInput("").appendField(new ge.FieldLabel(ge.Msg.MIXLY_MICROBIT_TYPE_DICT),"TIP").appendField(" "),this.itemCount_=3,this.updateShape_(),this.setOutput(!0,"Dict"),this.setPreviousStatement(!1),this.setNextStatement(!1),this.setMutator(new ge.icons.MutatorIcon(["dicts_create_with_item"],this)),this.setTooltip(ge.Msg.DICTS_CREATE_WITH_TOOLTIP)},mutationToDom:function(){var e=document.createElement("mutation");return e.setAttribute("items",this.itemCount_),e},domToMutation:function(e){this.itemCount_=parseInt(e.getAttribute("items"),10),this.updateShape_()},decompose:function(e){var t=e.newBlock("dicts_create_with_container");t.initSvg();for(var i=t.getInput("STACK").connection,n=0;nt?e[t]:0==t?'"key"':'"key'+(t+1)+'"'),"KEY"+t).appendField(":")}},getVars:function(){return[this.getFieldValue("VAR")]},renameVar:function(e,t){ge.Names.equals(e,this.getFieldValue("VAR"))&&this.setTitleValue(t,"VAR")}},Sn={init:function(){this.setColour(_n),this.appendValueInput("VAR").appendField(ge.Msg.MIXLY_TODICT),this.setOutput(!0),this.setTooltip(ge.Msg.MIXLY_PYTHON_TOOLTIP_TODICT)}},An={init:function(){this.setColour(_n),this.appendValueInput("DICT").setCheck("Dict"),this.appendDummyInput("").appendField(ge.Msg.MIXLY_TO_JSON),this.setTooltip(ge.Msg.MIXLY_TO_JSON_TOOLTIP),this.setOutput(!0)}},Ln={init:function(){this.setColour(_n),this.appendValueInput("VAR"),this.appendDummyInput("").appendField(ge.Msg.MIXLY_CONVERT_TO_JSON),this.setTooltip(ge.Msg.MIXLY_CONVERT_TO_JSON_TOOLTIP),this.setOutput(!0)}},Nn={init:function(){this.setColour(_n),this.appendValueInput("DICT").setCheck("Dict"),this.appendValueInput("VAR1").appendField("key1"),this.appendValueInput("VAR2").appendField("index"),this.appendValueInput("VAR3").appendField("key2"),this.appendValueInput("VAR4").appendField("key3"),this.setInputsInline(!0),this.setTooltip(ge.Msg.MIXLY_CONVERT_TO_JSON_TOOLTIP),this.setOutput(!0)}},Dn={init:function(){this.setColour(_n),this.appendValueInput("DICT"),this.appendDummyInput("").appendField(ge.Msg.MIXLY_TO_JSON),this.setTooltip(ge.Msg.MIXLY_TO_JSON_TOOLTIP),this.setOutput(!0)}},fn=210,Fn={init:function(){var e=ge.RTL?[["=","EQ"],["≠","NEQ"],[">","LT"],["≥","LTE"],["<","GT"],["≤","GTE"]]:[["=","EQ"],["≠","NEQ"],["<","LT"],["≤","LTE"],[">","GT"],["≥","GTE"]];this.setColour(fn),this.setOutput(!0,Boolean),this.appendValueInput("A"),this.appendValueInput("B").appendField(new ge.FieldDropdown(e),"OP"),this.setInputsInline(!0);var t=this;this.setTooltip((function(){var e=t.getFieldValue("OP");return{EQ:ge.Msg.LOGIC_COMPARE_TOOLTIP_EQ,NEQ:ge.Msg.LOGIC_COMPARE_TOOLTIP_NEQ,LT:ge.Msg.LOGIC_COMPARE_TOOLTIP_LT,LTE:ge.Msg.LOGIC_COMPARE_TOOLTIP_LTE,GT:ge.Msg.LOGIC_COMPARE_TOOLTIP_GT,GTE:ge.Msg.LOGIC_COMPARE_TOOLTIP_GTE}[e]})),this.prevBlocks_=[null,null]}},Pn={init:function(){var e=ge.RTL?[[">","LT"],["≥","LTE"],["<","GT"],["≤","GTE"]]:[["<","LT"],["≤","LTE"],[">","GT"],["≥","GTE"]],t=ge.RTL?[[">","LT"],["≥","LTE"],["<","GT"],["≤","GTE"]]:[["<","LT"],["≤","LTE"],[">","GT"],["≥","GTE"]];this.setColour(fn),this.setOutput(!0,Boolean),this.appendValueInput("A"),this.appendValueInput("B").appendField(new ge.FieldDropdown(e),"OP1"),this.appendValueInput("C").appendField(new ge.FieldDropdown(t),"OP2"),this.setInputsInline(!0),this.setTooltip(ge.Msg.MIXLY_PYTHON_LOGIC_COMPARE_CONTINOUS_TOOLTIP)}},vn={init:function(){var e=[[ge.Msg.LOGIC_OPERATION_AND,"AND"],[ge.Msg.LOGIC_OPERATION_OR,"OR"],[ge.Msg.LOGIC_OPERATION_NOR,"NOR"],[ge.Msg.LOGIC_OPERATION_XOR,"XOR"]];this.setColour(fn),this.setOutput(!0,Boolean),this.appendValueInput("A").setCheck([Boolean,Number]),this.appendValueInput("B").setCheck([Boolean,Number]).appendField(new ge.FieldDropdown(e),"OP"),this.setInputsInline(!0);var t=this;this.setTooltip((function(){var e=t.getFieldValue("OP");return{AND:ge.Msg.LOGIC_OPERATION_TOOLTIP_AND,OR:ge.Msg.LOGIC_OPERATION_TOOLTIP_OR,NOR:ge.Msg.LOGIC_OPERATION_TOOLTIP_NOR,XOR:ge.Msg.LOGIC_OPERATION_TOOLTIP_XOR}[e]}))}},Yn={init:function(){this.setColour(fn),this.setOutput(!0,Boolean),this.appendValueInput("BOOL").setCheck([Number,Boolean]).appendField(ge.Msg.LOGIC_NEGATE_TITLE),this.setTooltip(ge.Msg.LOGIC_NEGATE_TOOLTIP)}},Xn={init:function(){var e=[[ge.Msg.LOGIC_BOOLEAN_TRUE,"TRUE"],[ge.Msg.LOGIC_BOOLEAN_FALSE,"FALSE"]];this.setColour(fn),this.setOutput(!0,Boolean),this.appendDummyInput().appendField(new ge.FieldDropdown(e),"BOOL"),this.setTooltip(ge.Msg.LOGIC_BOOLEAN_TOOLTIP)}},yn={init:function(){this.setColour(fn),this.setOutput(!0),this.appendDummyInput().appendField(ge.Msg.LOGIC_NULL),this.setTooltip(ge.Msg.LOGIC_NULL_TOOLTIP)}},bn={init:function(){this.setColour(fn),this.appendValueInput("A"),this.appendValueInput("B").appendField(ge.Msg.LOGIC_TERNARY_IF_TRUE),this.appendValueInput("C").appendField(ge.Msg.LOGIC_TERNARY_IF_FALSE),this.setOutput(!0),this.setInputsInline(!0),this.setTooltip(ge.Msg.MIXLY_TOOLTIP_LOGIT_TRUEORFALSE)}},xn={init:function(){var e=[[ge.Msg.TEXT_APPEND_TO,"in"],[ge.Msg.MIXLY_PYTHON_LOGIC_IS_NOT_IN,"not in"]];this.setColour(fn),this.appendValueInput("A"),this.appendValueInput("B").setCheck([String,"List"]).appendField(new ge.FieldDropdown(e),"BOOL"),this.appendDummyInput("").appendField(ge.Msg.MICROBIT_LOGIC_IS_IN),this.setOutput(!0,Boolean),this.setInputsInline(!0),this.setTooltip(ge.Msg.IN)}},Vn={init:function(){var e=[[ge.Msg.MIXLY_PYTHON_LOGIC_IS,"is"],[ge.Msg.MIXLY_PYTHON_LOGIC_IS_NOT,"is not"]];this.setColour(fn),this.appendValueInput("A"),this.appendValueInput("B").appendField(new ge.FieldDropdown(e),"BOOL"),this.setOutput(!0,Boolean),this.setInputsInline(!0),this.setTooltip(ge.Msg.MIXLY_PYTHON_LOGIC_IS_TOOLTIP)}},Bn={init:function(){this.setColour(fn),this.appendValueInput("VAR").appendField(ge.Msg.MIXLY_TOBOOL),this.setOutput(!0,Boolean),this.setTooltip(ge.Msg.MIXLY_PYTHON_TOOLTIP_TOBOOL)}},Gn={init:function(){this.setColour(0),this.appendValueInput("fn").setCheck(String).appendField(ge.Msg.MIXLY_PYTHON_STORAGE_OPEN_FILE_WITH_OS+"(For Windows)"),this.setPreviousStatement(!0),this.setNextStatement(!0),this.setInputsInline(!0)}},Un={init:function(){this.setColour(0),this.appendValueInput("FILENAME").appendField(ge.Msg.MIXLY_MICROBIT_PY_STORAGE_OPEN_FILE),this.appendDummyInput().appendField(ge.Msg.MIXLY_MICROBIT_PY_STORAGE_MODE).appendField(new ge.FieldDropdown([[ge.Msg.MIXLY_MICROBIT_PY_STORAGE_READ,"r"],[ge.Msg.MIXLY_MICROBIT_PY_STORAGE_WRITE,"w"],[ge.Msg.MIXLY_MICROBIT_PY_STORAGE_BIT_READ,"rb"],[ge.Msg.MIXLY_MICROBIT_PY_STORAGE_BIT_WRITE,"wb"],[ge.Msg.MIXLY_ADD,"a"],[ge.Msg.MATH_BIN+ge.Msg.MIXLY_ADD,"ab"],[ge.Msg.MIXLY_R_W,"r+"],[ge.Msg.MATH_BIN+ge.Msg.MIXLY_R_W,"rb+"],[ge.Msg.MIXLY_W_R,"w+"],[ge.Msg.MATH_BIN+ge.Msg.MIXLY_W_R,"wb+"],[ge.Msg.MIXLY_A_R,"a+"],[ge.Msg.MATH_BIN+ge.Msg.MIXLY_A_R,"ab+"]]),"MODE"),this.appendValueInput("FILE").appendField(ge.Msg.MIXLY_MICROBIT_PY_STORAGE_AS),this.setPreviousStatement(!0),this.setNextStatement(!0),this.setInputsInline(!0);var e=this;this.setTooltip((function(){var t=e.getFieldValue("MODE"),i=ge.Msg.MIXLY_USE,n=ge.Msg.MIXLY_MICROBIT_PY_STORAGE_MODE,s=ge.Msg.MIXLY_MICROBIT_PY_STORAGE_OPEN_FILE,_=ge.Msg.MIXLY_BELONG;return i+{r:ge.Msg.MIXLY_MICROBIT_PY_STORAGE_READ,w:ge.Msg.MIXLY_MICROBIT_PY_STORAGE_WRITE,rb:ge.Msg.MIXLY_MICROBIT_PY_STORAGE_BIT_READ,wb:ge.Msg.MIXLY_MICROBIT_PY_STORAGE_BIT_WRITE}[t]+_+n+s}))},getVars:function(){return[this.getFieldValue("VAR")]},renameVar:function(e,t){ge.Names.equals(e,this.getFieldValue("VAR"))&&this.setTitleValue(t,"VAR")}},wn={init:function(){this.setColour(0),this.appendValueInput("FILENAME").appendField(ge.Msg.MIXLY_MICROBIT_PY_STORAGE_OPEN_FILE),this.appendDummyInput().appendField(ge.Msg.MIXLY_MICROBIT_PY_STORAGE_MODE).appendField(new ge.FieldDropdown([[ge.Msg.MIXLY_MICROBIT_PY_STORAGE_READ,"r"],[ge.Msg.MIXLY_MICROBIT_PY_STORAGE_WRITE,"w"],[ge.Msg.MIXLY_MICROBIT_PY_STORAGE_BIT_READ,"rb"],[ge.Msg.MIXLY_MICROBIT_PY_STORAGE_BIT_WRITE,"wb"]]),"MODE"),this.setPreviousStatement(!1),this.setNextStatement(!1),this.setInputsInline(!0),this.setOutput(!0);var e=this;this.setTooltip((function(){var t=e.getFieldValue("MODE"),i=ge.Msg.MIXLY_USE,n=ge.Msg.MIXLY_MICROBIT_PY_STORAGE_MODE,s=ge.Msg.MIXLY_MICROBIT_PY_STORAGE_OPEN_FILE,_=ge.Msg.MIXLY_BELONG,o=ge.Msg.PY_STORAGE_FILE_OBJECT;return i+{r:ge.Msg.MIXLY_MICROBIT_PY_STORAGE_READ,w:ge.Msg.MIXLY_MICROBIT_PY_STORAGE_WRITE,rb:ge.Msg.MIXLY_MICROBIT_PY_STORAGE_BIT_READ,wb:ge.Msg.MIXLY_MICROBIT_PY_STORAGE_BIT_WRITE}[t]+_+n+s+o}))}},kn={init:function(){this.setColour(0),this.appendValueInput("FILENAME").appendField(ge.Msg.MIXLY_MICROBIT_PY_STORAGE_OPEN_FILE);this.appendDummyInput().appendField(ge.Msg.MIXLY_MICROBIT_PY_STORAGE_MODE).appendField(new ge.FieldDropdown([[ge.Msg.MIXLY_MICROBIT_PY_STORAGE_READ,"r"],[ge.Msg.MIXLY_MICROBIT_PY_STORAGE_WRITE,"w"],[ge.Msg.MIXLY_MICROBIT_PY_STORAGE_BIT_READ,"rb"],[ge.Msg.MIXLY_MICROBIT_PY_STORAGE_BIT_WRITE,"wb"]]),"MODE"),this.appendDummyInput().appendField(ge.Msg.MIXPY_TEXT_ENCODE).appendField(new ge.FieldDropdown([["ANSI","ANSI"],["gbk","gbk"],["utf-8","utf-8"]]),"CODE"),this.setPreviousStatement(!1),this.setNextStatement(!1),this.setInputsInline(!0),this.setOutput(!0);var e=this;this.setTooltip((function(){var t=e.getFieldValue("MODE"),i=ge.Msg.MIXLY_USE,n=ge.Msg.MIXLY_MICROBIT_PY_STORAGE_MODE,s=ge.Msg.MIXLY_MICROBIT_PY_STORAGE_OPEN_FILE,_=ge.Msg.MIXLY_BELONG,o=ge.Msg.PY_STORAGE_FILE_OBJECT;return i+{r:ge.Msg.MIXLY_MICROBIT_PY_STORAGE_READ,w:ge.Msg.MIXLY_MICROBIT_PY_STORAGE_WRITE,rb:ge.Msg.MIXLY_MICROBIT_PY_STORAGE_BIT_READ,wb:ge.Msg.MIXLY_MICROBIT_PY_STORAGE_BIT_WRITE}[t]+_+n+s+o}))}},Hn={init:function(){this.setColour(0),this.appendValueInput("data").setCheck(String).appendField(ge.Msg.MIXLY_MICROPYTHON_SOCKET_MAKE),this.appendValueInput("FILE").appendField(ge.Msg.MIXLY_MICROBIT_PY_STORAGE_FILE_WRITE),this.setPreviousStatement(!0),this.setNextStatement(!0),this.setInputsInline(!0),this.setTooltip(ge.Msg.MIXLY_MICROPYTHON_SOCKET_MAKE+ge.Msg.MIXLY_MICROBIT_TYPE_STRING+ge.Msg.MIXLY_MICROBIT_PY_STORAGE_FILE_WRITE)}},Wn={init:function(){this.setColour(0),this.appendValueInput("FILE").setCheck("Variable").appendField(ge.Msg.MIXLY_MICROBIT_PY_STORAGE_FROM_FILE),this.appendDummyInput().appendField(new ge.FieldDropdown([[ge.Msg.MIXLY_MICROBIT_PY_STORAGE_ALL,"read"],[ge.Msg.MIXLY_MICROBIT_PY_STORAGE_ONE_LINE,"readline"],[ge.Msg.MIXLY_MICROBIT_PY_STORAGE_ALL_LINES,"readlines"]]),"MODE"),this.setInputsInline(!0),this.setPreviousStatement(!1),this.setNextStatement(!1),this.setOutput(!0,String)}},Kn={init:function(){this.setColour(0),this.appendValueInput("FILE").setCheck("Variable").appendField(ge.Msg.MIXLY_MICROBIT_PY_STORAGE_FROM_FILE),this.appendDummyInput().appendField(new ge.FieldDropdown([[ge.Msg.MIXLY_MICROBIT_PY_STORAGE_NO_MORE_THAN_SIZE,"read"],[ge.Msg.MIXLY_MICROBIT_PY_STORAGE_ONE_LINE_NO_MORE_THAN_SIZE,"readline"],[ge.Msg.MIXLY_MICROBIT_PY_STORAGE_ALL_LINES_NO_MORE_THAN_SIZE,"readlines"]]),"MODE"),this.appendValueInput("SIZE").setCheck(Number),this.appendDummyInput().appendField(ge.Msg.MIXLY_MICROBIT_PY_STORAGE_CHARACTER),this.setInputsInline(!0),this.setPreviousStatement(!1),this.setNextStatement(!1),this.setOutput(!0,String);var e=this;this.setTooltip((function(){var t=e.getFieldValue("MODE"),i=ge.Msg.MIXLY_MICROBIT_PY_STORAGE_FROM_FILE,n=ge.Msg.MIXLY_MICROBIT_PY_STORAGE_CHARACTER;return i+{read:ge.Msg.MIXLY_MICROBIT_PY_STORAGE_NO_MORE_THAN_SIZE,readline:ge.Msg.MIXLY_MICROBIT_PY_STORAGE_ONE_LINE_NO_MORE_THAN_SIZE,readlines:ge.Msg.MIXLY_MICROBIT_PY_STORAGE_ALL_LINES_NO_MORE_THAN_SIZE}[t]+"x"+n}))}},Jn={init:function(){this.setColour(0),this.appendValueInput("FILE").appendField(ge.Msg.MIXLY_MICROBIT_PY_STORAGE_FROM_FILE),this.setNextStatement(!0),this.appendValueInput("SIZE").setCheck(Number).appendField(ge.Msg.MIXLY_MICROBIT_PY_STORAGE_ONE_LINE_NO_MORE_THAN_SIZE),this.appendDummyInput().appendField(ge.Msg.MIXLY_MICROBIT_PY_STORAGE_CHARACTER),this.setInputsInline(!0),this.setPreviousStatement(!1),this.setNextStatement(!1),this.setOutput(!0,String),this.setTooltip(ge.Msg.MICROBIT_PYTHON_TYPE)}},qn={init:function(){this.setColour(0),this.appendValueInput("FILE").appendField(ge.Msg.HTML_FILE),this.appendDummyInput().appendField(ge.Msg.MIXLY_MICROBIT_PY_STORAGE_CAN_WRITE_ORNOT),this.setInputsInline(!0),this.setPreviousStatement(!1),this.setNextStatement(!1),this.setOutput(!0,Boolean),this.setTooltip(ge.Msg.MIXLY_MICROBIT_PY_STORAGE_CAN_WRITE_ORNOT1)}},Qn={init:function(){this.setColour(0),this.appendValueInput("FILE").appendField(ge.Msg.MIXLY_MICROBIT_PY_STORAGE_GET),this.appendDummyInput().appendField(ge.Msg.MIXLY_MICROBIT_PY_STORAGE_FILENAME),this.setInputsInline(!0),this.setPreviousStatement(!1),this.setNextStatement(!1),this.setOutput(!0,String),this.setTooltip(ge.Msg.MIXLY_MICROBIT_PY_STORAGE_GET_FILENAME)}},zn={init:function(){this.setColour(0),this.appendValueInput("FILE").appendField(ge.Msg.MIXLY_MICROBIT_PY_STORAGE_CLOSE_FILE),this.setInputsInline(!0),this.setPreviousStatement(!0),this.setNextStatement(!0),this.setOutput(!1),this.setTooltip(ge.Msg.MIXLY_MICROBIT_PY_STORAGE_CLOSE_FILE)}},jn={init:function(){this.setColour(0),this.appendDummyInput().appendField(ge.Msg.MIXLY_MICROBIT_PY_STORAGE_LIST_ALL_FILES),this.setInputsInline(!0),this.setPreviousStatement(!1),this.setNextStatement(!1),this.setOutput(!0,"List"),this.setTooltip(ge.Msg.MIXLY_MICROBIT_PY_STORAGE_LIST_ALL_FILES)}};ge.Msg.MIXLY_MICROBIT_PY_STORAGE_DELETE_FILE;const $n={init:function(){this.setColour(0),this.appendDummyInput().appendField(new ge.FieldDropdown([[ge.Msg.MIXLY_MICROBIT_PY_STORAGE_DELETE_FILE,"remove"],[ge.Msg.MIXLY_MICROBIT_PY_STORAGE_DELETE_DIRS,"removedirs"]]),"MODE"),this.appendValueInput("FILE").setCheck(String),this.setInputsInline(!0),this.setPreviousStatement(!0),this.setNextStatement(!0),this.setOutput(!1),this.setTooltip(ge.Msg.MIXLY_MICROBIT_PY_STORAGE_DELETE_FILE)}},Zn={init:function(){this.setColour(0),this.appendValueInput("FILE").setCheck(String).appendField(ge.Msg.MIXLY_MICROBIT_PY_STORAGE_GET_FILE_SIZE),this.appendDummyInput().appendField(ge.Msg.MIXLY_MICROBIT_PY_STORAGE_SIZE),this.setInputsInline(!0),this.setPreviousStatement(!1),this.setNextStatement(!1),this.setOutput(!0,Number),this.setTooltip(ge.Msg.MIXLY_MICROBIT_PY_STORAGE_GET_FILE_SIZE+ge.Msg.MIXLY_MICROBIT_PY_STORAGE_SIZE)}},es={init:function(){this.setColour(0),this.appendValueInput("FILE").setCheck(String).appendField(ge.Msg.MIXLY_MICROBIT_PY_STORAGE_RETURN_FILE),this.appendDummyInput().appendField(ge.Msg.MIXLY_MICROBIT_PY_STORAGE_PRESENT_LOCATION),this.setInputsInline(!0),this.setPreviousStatement(!1),this.setNextStatement(!1),this.setOutput(!0,Number),this.setTooltip(ge.Msg.MIXLY_MICROBIT_PY_STORAGE_FILE_TELL)}},ts={init:function(){this.setColour(0),this.appendValueInput("FILE").setCheck("Variable").appendField(ge.Msg.MIXLY_MICROBIT_PY_STORAGE_SET_FILE_POSITION),this.appendDummyInput().appendField(ge.Msg.MIXLY_MICROBIT_PY_STORAGE_CURRENT_POSITION),this.appendDummyInput().appendField(new ge.FieldDropdown([[ge.Msg.MIXLY_MICROBIT_PY_STORAGE_FILE_SEEK_START,"start"],[ge.Msg.MIXLY_MICROBIT_PY_STORAGE_FILE_SEEK_CURRENT,"current"],[ge.Msg.MIXLY_MICROBIT_PY_STORAGE_FILE_SEEK_END,"end"]]),"MODE"),this.appendDummyInput().appendField(ge.Msg.MIXLY_MICROBIT_PY_STORAGE_FILE_SEEK_OFFSET),this.appendValueInput("SIZE").setCheck(Number),this.appendDummyInput().appendField(ge.Msg.MIXLY_MICROBIT_PY_STORAGE_CHARACTER),this.setInputsInline(!0),this.setPreviousStatement(!0),this.setNextStatement(!0);var e=this;this.setTooltip((function(){var t=e.getFieldValue("MODE"),i=ge.Msg.MIXLY_MICROBIT_PY_STORAGE_SET_FILE_POSITION+ge.Msg.MIXLY_MICROBIT_PY_STORAGE_CURRENT_POSITION,n=ge.Msg.MIXLY_MICROBIT_PY_STORAGE_CHARACTER,s=ge.Msg.MIXLY_MICROBIT_PY_STORAGE_FILE_SEEK_OFFSET;return i+" "+{start:ge.Msg.MIXLY_MICROBIT_PY_STORAGE_FILE_SEEK_START,current:ge.Msg.MIXLY_MICROBIT_PY_STORAGE_FILE_SEEK_CURRENT,end:ge.Msg.MIXLY_MICROBIT_PY_STORAGE_FILE_SEEK_END}[t]+s+"x"+n}))}},is={init:function(){this.setColour(0),this.appendDummyInput().appendField(ge.Msg.MIXLY_MICROBIT_PY_STORAGE_GET_CURRENT_DIR),this.setInputsInline(!0),this.setPreviousStatement(!1),this.setNextStatement(!1),this.setOutput(!0,"List"),this.setTooltip(ge.Msg.MIXLY_MICROBIT_PY_STORAGE_GET_CURRENT_DIR)}},ns={init:function(){this.setColour(0),this.appendValueInput("PATH").setCheck(String).appendField(ge.Msg.MIXLY_MICROBIT_PY_STORAGE_PATH),this.appendDummyInput().appendField(ge.Msg.MIXLY_ESP32_SET),this.appendDummyInput().appendField(new ge.FieldDropdown([[ge.Msg.MIXLY_MICROBIT_PY_STORAGE_MKDIR,"mkdir"],[ge.Msg.MIXLY_MICROBIT_PY_STORAGE_MAKEDIRS,"makedirs"]]),"MODE"),this.setInputsInline(!0),this.setPreviousStatement(!0),this.setNextStatement(!0),this.setOutput(!1);var e=this;this.setTooltip((function(){var t=e.getFieldValue("MODE");return ge.Msg.MIXLY_MICROBIT_PY_STORAGE_PATH+"x"+ge.Msg.MIXLY_ESP32_SET+{mkdir:ge.Msg.MIXLY_MICROBIT_PY_STORAGE_MKDIR,makedirs:ge.Msg.MIXLY_MICROPYTHON_SOCKET_MAKEDIRS}[t]}))}},ss={init:function(){this.setColour(0),this.appendValueInput("FILE").setCheck(String).appendField(ge.Msg.MIXLY_MICROBIT_PY_STORAGE_RENAME),this.appendValueInput("NEWFILE").setCheck(String).appendField(ge.Msg.MIXLY_AS),this.setInputsInline(!0),this.setPreviousStatement(!0),this.setNextStatement(!0),this.setOutput(!1),this.setTooltip(ge.Msg.MIXLY_MICROBIT_PY_STORAGE_RENAME)}},_s={init:function(){this.setColour(0),this.appendValueInput("FILE").setCheck(String).appendField(ge.Msg.MIXLY_MICROBIT_PY_STORAGE_CHANGE_DIR),this.setInputsInline(!0),this.setPreviousStatement(!0),this.setNextStatement(!0),this.setOutput(!1),this.setTooltip(ge.Msg.MIXLY_MICROBIT_PY_STORAGE_CHANGE_DIR)}},os={init:function(){this.setColour(0),this.appendValueInput("FILE").setCheck(String).appendField(ge.Msg.MIXLY_MICROBIT_PY_STORAGE_THE_PATH),this.appendDummyInput().appendField(ge.Msg.MIXLY_MICROBIT_PY_STORAGE_IS_OR_NOT),this.appendDummyInput().appendField(new ge.FieldDropdown([[ge.Msg.HTML_FILE,"isfile"],[ge.Msg.MIXLY_MICROBIT_PY_STORAGE_IS_DIR,"isdir"]]),"MODE"),this.setInputsInline(!0),this.setPreviousStatement(!1),this.setNextStatement(!1),this.setOutput(!0,Boolean);let e=this;this.setTooltip((function(){var t=e.getFieldValue("MODE");return ge.Msg.MIXLY_MICROBIT_PY_STORAGE_THE_PATH+"x"+ge.Msg.MIXLY_MICROBIT_PY_STORAGE_IS_OR_NOT+{isfile:ge.Msg.MIXLY_MICROBIT_PY_STORAGE_MKDIR,isdir:ge.Msg.MIXLY_MICROPYTHON_SOCKET_MAKEDIRS}[t]}))}},ps={init:function(){this.setColour(0),this.appendValueInput("SPISUB").appendField(ge.Msg.CONTROLS_FOR_INPUT_WITH+"SPI").setCheck("var"),this.appendValueInput("PINSUB").appendField("CS"),this.appendValueInput("SUB").appendField(ge.Msg.MIXLY_MICROPYTHON_SOCKET_MAKE).setCheck("var"),this.appendDummyInput("").appendField(ge.Msg.MIXLY_SETUP+ge.Msg.LISTS_SET_INDEX_INPUT_TO).appendField(ge.Msg.MIXLY_SD_CARD),this.setInputsInline(!0),this.setPreviousStatement(!0,null),this.setNextStatement(!0,null)}},as={init:function(){this.setColour(0),this.appendValueInput("VAR").appendField(ge.Msg.MIXLY_SD_CARD),this.appendValueInput("DIR").setCheck(String).appendField(ge.Msg.MIXLY_SDCARD_MOUNT),this.setPreviousStatement(!0),this.setNextStatement(!0),this.setInputsInline(!0),this.setTooltip()}},us={init:function(){var e=ge.Procedures.findLegalName("",this),t=new ge.FieldTextInput(e,ge.Procedures.rename);t.setSpellcheck(!1),this.appendDummyInput().appendField(t,"NAME").appendField("","PARAMS"),this.setMutator(new ge.icons.MutatorIcon(["procedures_mutatorarg"],this)),(this.workspace.options.comments||this.workspace.options.parentWorkspace&&this.workspace.options.parentWorkspace.options.comments)&&ge.Msg.PROCEDURES_DEFNORETURN_COMMENT&&this.setCommentText(ge.Msg.PROCEDURES_DEFNORETURN_COMMENT),this.setStyle("procedure_blocks"),this.setTooltip(ge.Msg.PROCEDURES_DEFNORETURN_TOOLTIP),this.setHelpUrl(ge.Msg.PROCEDURES_DEFNORETURN_HELPURL),this.arguments_=[],this.argumentVarModels_=[],this.setStatements_(!0),this.statementConnection_=null},setStatements_:function(e){this.hasStatements_!==e&&(e?(this.appendStatementInput("STACK").appendField(ge.Msg.PROCEDURES_DEFNORETURN_DO),this.getInput("RETURN")&&this.moveInputBefore("STACK","RETURN")):this.removeInput("STACK",!0),this.hasStatements_=e)},updateParams_:function(){var e="";this.arguments_.length&&(e=ge.Msg.PROCEDURES_BEFORE_PARAMS+" "+this.arguments_.join(", ")),ge.Events.disable();try{this.setFieldValue(e,"PARAMS")}finally{ge.Events.enable()}},mutationToDom:function(e){var t=ge.utils.xml.createElement("mutation");e&&t.setAttribute("name",this.getFieldValue("NAME"));for(var i=0;i"),this.appendValueInput("style").appendField(ge.Msg.MIXLY_AIP_ATTR).setAlign(ge.inputs.Align.RIGHT),this.appendStatementInput("DO").appendField(""),this.setInputsInline(!1),this.setPreviousStatement(!0),this.setNextStatement(!0)}},s_={init:function(){this.setColour($s),this.appendDummyInput().appendField(ge.Msg.HTML_STYLE),this.appendStatementInput("STYLE"),this.setOutput(!0)}},__={init:function(){this.setColour($s),this.appendDummyInput().appendField(ge.Msg.HTML_FORM_CONTENT).appendField(new ge.FieldDropdown([[ge.Msg.HTML_TEXT,"text"],[ge.Msg.HTML_EMAIL,"email"],[ge.Msg.HTML_NUMBER,"number"],[ge.Msg.HTML_PASSWORD,"password"],[ge.Msg.HTML_CHECKBOX,"checkbox"],[ge.Msg.HTML_RADIOBUTTON,"radiobutton"],[ge.Msg.HTML_BUTTON,"button"],[ge.Msg.HTML_COLOUR,"colour"],[ge.Msg.HTML_DATE,"date"],[ge.Msg.HTML_LOCALTIME,"local time"],[ge.Msg.HTML_FILE,"file"],[ge.Msg.HTML_HIDDEN,"hidden"],[ge.Msg.HTML_IMAGE,"image"],[ge.Msg.HTML_MONTH,"month"],[ge.Msg.HTML_RANGE,"range"],[ge.Msg.HTML_RESET,"reset"],[ge.Msg.HTML_SEARCH,"search"],[ge.Msg.HTML_SUBMIT,"submit"],[ge.Msg.HTML_TELEPHONENUMBER,"telephone number"],[ge.Msg.HTML_TIME,"time"],[ge.Msg.HTML_URL,"url"],[ge.Msg.HTML_WEEK,"week"]]),"LEVEL"),this.appendDummyInput().appendField(ge.Msg.HTML_NAME).appendField(new ge.FieldTextInput("car"),"NAME"),this.appendDummyInput().appendField(ge.Msg.HTML_VALUE).appendField(new ge.FieldTextInput("go"),"VALUE"),this.appendValueInput("style").appendField(ge.Msg.MIXLY_AIP_ATTR).setAlign(ge.inputs.Align.RIGHT),this.setInputsInline(!0),this.setPreviousStatement(!0),this.setNextStatement(!0)}},o_={init:function(){this.setColour($s),this.appendDummyInput().appendField(new ge.FieldTextInput("property"),"KEY").appendField(":").appendField(new ge.FieldTextInput("value"),"VALUE"),this.setPreviousStatement(!0),this.setNextStatement(!0)}},p_={init:function(){this.setColour($s),this.appendDummyInput().appendField(new ge.FieldTextInput("property"),"KEY").appendField(":").appendField(new ge.FieldColour("#ff0000"),"RGB_LED_COLOR"),this.setPreviousStatement(!0),this.setNextStatement(!0)}},a_={init:function(){this.setColour($s),this.appendDummyInput().appendField(ge.Msg.HTML_TEXT).appendField(new ge.FieldTextInput("text"),"TEXT"),this.setPreviousStatement(!0),this.setNextStatement(!0)}},u_=160,r_={init:function(){this.setColour(u_),this.setPreviousStatement(!0),this.setNextStatement(!0),this.appendDummyInput().appendField("Tabular Abstraction:"),this.appendDummyInput().appendField(new ge.FieldTable(""),"TEXT")}},l_={init:function(){this.setColour(u_),this.setPreviousStatement(!0),this.setNextStatement(!0),this.appendDummyInput().appendField("Code Block:"),this.appendDummyInput().appendField(new ge.FieldMultilineInput(""),"TEXT")}},d_={init:function(){this.setColour(u_),this.appendDummyInput().appendField("Code Expression:"),this.appendDummyInput().appendField(new ge.FieldMultilineInput(""),"TEXT"),this.setOutput(!0)}},I_={init:function(){this.setColour(u_),this.setPreviousStatement(!0),this.setNextStatement(!0),this.appendValueInput("VALUE").appendField(""),this.setInputsInline(!1)}},T_={init:function(){this.setColour(u_),this.appendDummyInput().appendTitle("Comment:").appendTitle(new ge.FieldTextInput(""),"TEXT"),this.setPreviousStatement(!0),this.setNextStatement(!0),this.setTooltip("This comment will be ignored by Python")}},M_={init:function(){this.setColour(u_),this.appendValueInput("VALUE").appendField(ge.Msg.TYPE_CHECK),this.setInputsInline(!1),this.setOutput(!0,"Type")}},h_={init:function(){this.setColour(u_),this.itemCount_=1,this.updateShape_(),this.setPreviousStatement(!0),this.setNextStatement(!0),this.setMutator(new ge.icons.MutatorIcon(["text_print_multiple_item"],this)),this.setTooltip(ge.Msg.TEXT_PRINT_TOOLTIP)},mutationToDom:function(){var e=document.createElement("mutation");return e.setAttribute("items",this.itemCount_),e},domToMutation:function(e){this.itemCount_=parseInt(e.getAttribute("items"),10),this.updateShape_()},decompose:function(e){var t=ge.Block.obtain(e,"text_print_multiple_container");t.initSvg();for(var i=t.getInput("STACK").connection,n=0;n= stop:"," yield start"," start -= abs(step)"])};if(e=function(e,t,i){return"("+e+" <= "+t+") and "+a()+"("+e+", "+t+", "+i+") or "+u()+"("+e+", "+t+", "+i+")"},ge.isNumber(n)&&ge.isNumber(s)&&ge.isNumber(_))n=parseFloat(n),s=parseFloat(s),_=Math.abs(parseFloat(_)),0==n%1&&0==s%1&&0==_%1?(n<=s?(s++,e=0==n&&1==_?s:n+", "+s,1!=_&&(e+=", "+_)):e=n+", "+--s+", -"+_,e="range("+e+")"):(e=n",GTE:">="};const da=function(e,t){var i=this.getFieldValue("OP"),n="&&"==i?t.ORDER_LOGICAL_AND:t.ORDER_LOGICAL_OR,s=t.valueToCode(this,"A",n)||"False",_=t.valueToCode(this,"B",n)||"False";if("AND"==i)var o=s+" and "+_;else if("OR"==i)o=s+" or "+_;else if("NOR"==i)o="not("+s+"^"+_+")";else o=s+"^"+_;return[o,n]},Ia=function(e,t){var i=t.ORDER_UNARY_PREFIX;return["not "+(t.valueToCode(this,"BOOL",i)||"False"),i]},Ta=function(e,t){return["TRUE"==this.getFieldValue("BOOL")?"True":"False",t.ORDER_ATOMIC]},Ma=function(e,t){return["None",t.ORDER_ATOMIC]},ha=function(e,t){var i=t.valueToCode(this,"A",t.ORDER_ATOMIC)||"False";return["("+(t.valueToCode(this,"B",t.ORDER_ATOMIC)||"False")+" if "+i+" else "+(t.valueToCode(this,"C",t.ORDER_ATOMIC)||"False")+")",t.ORDER_ATOMIC]},ma=function(e,t){var i=t.valueToCode(this,"A",t.ORDER_ATOMIC)||"''",n=t.valueToCode(this,"B",t.ORDER_ATOMIC)||"''";return[i+" "+this.getFieldValue("BOOL")+" "+n,t.ORDER_ATOMIC]},Ea=function(e,t){var i=t.valueToCode(this,"A",t.ORDER_ATOMIC)||"''",n=t.valueToCode(this,"B",t.ORDER_ATOMIC)||"''";return[i+" "+this.getFieldValue("BOOL")+" "+n,t.ORDER_ATOMIC]},Oa=function(e,t){return["bool("+(t.valueToCode(this,"VAR",t.ORDER_ATOMIC)||"0")+")",t.ORDER_ATOMIC]},Ra=function(e,t){return t.definitions_.import_os="import os","os.startfile("+t.valueToCode(this,"fn",t.ORDER_ATOMIC)+")\n"},ca=function(e,t){return t.valueToCode(this,"FILE",t.ORDER_ATOMIC)+" = open("+t.valueToCode(this,"FILENAME",t.ORDER_ATOMIC)+", '"+this.getFieldValue("MODE")+"')\n"},ga=function(e,t){return["open("+t.valueToCode(this,"FILENAME",t.ORDER_ATOMIC)+", '"+this.getFieldValue("MODE")+"')",t.ORDER_ATOMIC]},Ca=function(e,t){return["open("+t.valueToCode(this,"FILENAME",t.ORDER_ATOMIC)+", '"+this.getFieldValue("MODE")+"', encoding=\""+this.getFieldValue("CODE")+'")',t.ORDER_ATOMIC]},Sa=function(e,t){var i=t.valueToCode(this,"data",t.ORDER_ATOMIC);return t.valueToCode(this,"FILE",t.ORDER_ATOMIC)+".write("+i+")\n"},Aa=function(e,t){var i=this.getFieldValue("MODE");return[t.valueToCode(this,"FILE",t.ORDER_ATOMIC)+"."+i+"()",t.ORDER_ATOMIC]},La=function(e,t){var i=this.getFieldValue("MODE");return[t.valueToCode(this,"FILE",t.ORDER_ATOMIC)+"."+i+"("+t.valueToCode(this,"SIZE",t.ORDER_ATOMIC)+")",t.ORDER_ATOMIC]},Na=function(e,t){return[t.valueToCode(this,"FILE",t.ORDER_ATOMIC)+".readline("+t.valueToCode(this,"SIZE",t.ORDER_ATOMIC)+")",t.ORDER_ATOMIC]},Da=function(e,t){return[t.valueToCode(this,"FILE",t.ORDER_ATOMIC)+".writable()",t.ORDER_ATOMIC]},fa=function(e,t){return[t.valueToCode(this,"FILE",t.ORDER_ATOMIC)+".name()",t.ORDER_ATOMIC]},Fa=function(e,t){return t.valueToCode(this,"FILE",t.ORDER_ATOMIC)+".close()\n"},Pa=function(e,t){t.definitions_.import_os="import os";return["os.listdir()",t.ORDER_ATOMIC]},va=function(e,t){return t.definitions_.import_os="import os","os."+this.getFieldValue("MODE")+"("+t.valueToCode(this,"FILE",t.ORDER_ATOMIC)+")\n"},Ya=function(e,t){return t.definitions_.import_os="import os",["os.path.getsize("+t.valueToCode(this,"FILE",t.ORDER_ATOMIC)+")",t.ORDER_ATOMIC]},Xa=function(e,t){return[t.valueToCode(this,"FILE",t.ORDER_ATOMIC)+".tell()",t.ORDER_ATOMIC]},ya=function(e,t){var i=this.getFieldValue("MODE"),n=0;return n="start"==i?0:"current"==i?1:2,t.valueToCode(this,"FILE",t.ORDER_ATOMIC)+".seek("+t.valueToCode(this,"SIZE",t.ORDER_ATOMIC)+","+n+")\n"},ba=function(e,t){return t.definitions_.import_os="import os","os.chdir("+t.valueToCode(this,"FILE",t.ORDER_ATOMIC)+")\n"},xa=function(e,t){t.definitions_.import_os="import os";return["os.getcwd()",t.ORDER_ATOMIC]},Va=function(e,t){return t.definitions_.import_os="import os","os."+this.getFieldValue("MODE")+"("+t.valueToCode(this,"PATH",t.ORDER_ATOMIC)+")\n"},Ba=function(e,t){return t.definitions_.import_os="import os","os.rename("+t.valueToCode(this,"FILE",t.ORDER_ATOMIC)+","+t.valueToCode(this,"NEWFILE",t.ORDER_ATOMIC)+")\n"},Ga=function(e,t){t.definitions_.import_os="import os";var i=t.valueToCode(this,"FILE",t.ORDER_ATOMIC);return["os."+this.getFieldValue("MODE")+"("+i+")",t.ORDER_ATOMIC]},Ua=function(e,t){return t.definitions_.import_os="import os",t.definitions_.import_sdcard="import sdcard",t.valueToCode(this,"SUB",t.ORDER_ATOMIC)+" = sdcard.SDCard("+t.valueToCode(this,"SPISUB",t.ORDER_ATOMIC)+","+t.valueToCode(this,"PINSUB",t.ORDER_ATOMIC)+")\n"},wa=function(e,t){return t.definitions_.import_os="import os",t.definitions_.import_sdcard="import sdcard","os.mount("+t.valueToCode(this,"VAR",t.ORDER_ATOMIC)+","+t.valueToCode(this,"DIR",t.ORDER_ATOMIC)+")\n"},ka=function(e,t){var i=t.variableDB_.getName(this.getFieldValue("NAME"),ge.Procedures.NAME_TYPE),n=(this.getInput("STACK")&&t.statementToCode(this,"STACK"))??" pass\n";t.INFINITE_LOOP_TRAP&&(n=t.INFINITE_LOOP_TRAP.replace(/%1/g,"'"+this.id+"'")+n);var s=t.valueToCode(this,"RETURN",t.ORDER_NONE)||"";s&&(s=" return "+s+"\n");for(var _=[],o=0;o\n\n\n\t\n"+t.statementToCode(this,"HEAD")+"\n\n"+t.statementToCode(this,"BODY")+"\n\n'''",t.ORDER_ATOMIC]},Au=function(e,t){var i=t.statementToCode(this,"DO"),n=this.getFieldValue("LEVEL");return"\n"+i+"\n"},Lu=function(e,t){var i=t.statementToCode(this,"DO"),n=this.getFieldValue("LEVEL");if("head"==n)var s="<"+n+'>\n\t\n'+i+"\n";else s="<"+n+">\n"+i+"\n";return s},Nu=function(e,t){var i=t.statementToCode(this,"DO"),n=this.getFieldValue("LEVEL");return"<"+n+">\n"+i+"\n"},Du=function(e,t){var i=t.statementToCode(this,"DO"),n=t.valueToCode(this,"style"),s=this.getFieldValue("LEVEL");return"<"+s+" "+n+" >\n"+i+"\n"},fu=function(e,t){return['style="'+t.statementToCode(this,"STYLE")+'"',t.ORDER_ATOMIC]},Fu=function(e,t){return'"},Pu=function(){return this.getFieldValue("KEY")+":"+this.getFieldValue("VALUE")+";"},vu=function(){return this.getFieldValue("TEXT")+"\n"},Yu=function(e){return e.getFieldValue("TEXT")+"\n"},Xu=function(e,t){return[e.getFieldValue("TEXT"),t.ORDER_ATOMIC]},yu=function(e,t){return(t.valueToCode(e,"VALUE",t.ORDER_ATOMIC)||"")+"\n"},bu=function(){return""},xu=function(e,t){return["type("+(t.valueToCode(e,"VALUE",t.ORDER_MEMBER)||"___")+")",t.ORDER_ATOMIC]},Vu=function(e,t){for(var i=e.getFieldValue("NAME"),n=e.hasReturn_,s=new Array(e.itemCount_),_=0;_0?t.join("\n")+i.join("\n")+n.join("\n")+o.join("\n")+p.join("")+e+"while True:\n"+a.join("")+u.join("\n"):t.join("\n")+i.join("\n")+n.join("\n")+o.join("\n")+p.join("")+e+u.join("\n")},wu.scrubNakedValue=function(e){return e+"\n"},wu.quote_=function(e){var t="'";return-1!==e.indexOf("'")&&(-1===e.indexOf('"')?t='"':e=e.replace(/'/g,"\\'")),t+e+t},wu.multiline_quote_=function(e){return"'''"+(e=e.replace(/'''/g,"\\'\\'\\'"))+"'''"},wu.scrub_=function(e,t,i){var n="";if(!e.outputConnection||!e.outputConnection.targetConnection){(_=e.getCommentText())&&(_=ge.utils.string.wrap(_,wu.COMMENT_WRAP-3),n+=wu.prefixLines(_+"\n","# "));for(var s=0;s0?"int("+p+" + "+s+")":s<0?"int("+p+" - "+-s+")":"int("+p+")",n&&(p="-"+p)),p};const ku="#74A55B",Hu={init:function(){this.setColour(ku),this.appendDummyInput("").appendField(ge.Msg.MIXLY_MIDI),this.appendValueInput("SUB").appendField(ge.Msg.MIXLY_SETUP).setCheck("var"),this.appendValueInput("PIN",Number).setCheck(Number).setAlign(ge.inputs.Align.RIGHT).appendField(ge.Msg.MIXLY_PIN),this.setInputsInline(!0),this.setPreviousStatement(!0,null),this.setNextStatement(!0,null),this.setTooltip(ge.Msg.MIXLY_RGB_PIN_COUNT)}},Wu={init:function(){this.setColour(ku),this.appendValueInput("SUB"),this.appendDummyInput("").appendField(ge.Msg.MIXLY_TONE),this.appendValueInput("pitch").setCheck(Number).appendField(ge.Msg.MIXLY_FREQUENCY),this.setInputsInline(!0),this.setPreviousStatement(!0),this.setNextStatement(!0),this.setTooltip(ge.Msg.MIXLY_TOOLTIP_BLOCKGROUP_TONE)}},Ku={init:function(){this.setColour(ku),this.appendValueInput("SUB"),this.appendDummyInput("").appendField(ge.Msg.MIXLY_TONE),this.appendValueInput("pitch").setCheck(Number).appendField(ge.Msg.MIXLY_FREQUENCY),this.appendValueInput("time").setCheck(Number).appendField(ge.Msg.MIXLY_DURATION),this.setInputsInline(!0),this.setPreviousStatement(!0),this.setNextStatement(!0),this.setTooltip(ge.Msg.MIXLY_TOOLTIP_BLOCKGROUP_TONE2)}},Ju={init:function(){this.setColour(ku),this.appendValueInput("SUB"),this.appendValueInput("LIST").appendField(ge.Msg.MIXLY_ESP32_MUSIC_PLAY_LISTS),this.setPreviousStatement(!0),this.setNextStatement(!0),this.setInputsInline(!0),this.setTooltip(ge.Msg.MIXLY_ESP32_MUSIC_PLAY_LISTS)}},qu={init:function(){this.setColour(ku),this.appendValueInput("SUB"),this.appendValueInput("TICKS").setCheck(Number).appendField(ge.Msg.MIXLY_MICROBIT_JS_SET_TEMPO).appendField(ge.Msg.MICROBIT_ACTUATOR_ticks),this.appendValueInput("BPM").setCheck(Number).appendField(ge.Msg.MIXLY_SPEED),this.setPreviousStatement(!0),this.setNextStatement(!0),this.setInputsInline(!0),this.setTooltip(ge.Msg.MIXLY_ESP32_MUSIC_SET_TEMPO)}},Qu={init:function(){this.setColour(ku),this.appendValueInput("SUB"),this.appendDummyInput().appendField(ge.Msg.MIXLY_MICROBIT_Get_current_tempo),this.setOutput(!0),this.setInputsInline(!0),this.setTooltip(ge.Msg.MIXLY_ESP32_MUSIC_GET_TEMPO)}},zu={init:function(){this.setColour(ku),this.appendValueInput("SUB"),this.appendDummyInput().appendField(ge.Msg.MIXLY_MICROBIT_Reset_music),this.setPreviousStatement(!0),this.setNextStatement(!0),this.setInputsInline(!0),this.setTooltip(ge.Msg.MIXLY_ESP32_MUSIC_RESET)}},ju={init:function(){this.setColour(ku),this.appendValueInput("SUB"),this.appendDummyInput("").appendField(ge.Msg.MIXLY_NOTONE),this.setInputsInline(!0),this.setPreviousStatement(!0),this.setNextStatement(!0)}},$u={init:function(){this.setColour(ku),this.appendValueInput("SUB"),this.appendValueInput("percent").appendField(ge.Msg.MIXLY_MUSIC_VOLUME_SET),this.appendDummyInput().appendField("%"),this.setPreviousStatement(!0),this.setNextStatement(!0),this.setInputsInline(!0)}},Zu={init:function(){this.setColour(ku),this.appendDummyInput().appendField(ge.Msg.MIXLY_SETTING).appendField(ge.Msg.MIXLY_EXTERN_LED),this.appendValueInput("PIN",Number).appendField(ge.Msg.MIXLY_PIN).setCheck(Number),this.appendValueInput("bright").appendField(ge.Msg.MIXLY_PULSEIN_STAT),this.setPreviousStatement(!0,null),this.setNextStatement(!0,null),this.setInputsInline(!0),this.setTooltip(ge.Msg.MIXLY_ESP32_EXTERN_LED_SETONOFF)}},er={init:function(){this.setColour(ku),this.appendDummyInput().appendField(ge.Msg.MIXLY_MICROBIT_PY_STORAGE_GET).appendField(ge.Msg.MIXLY_EXTERN_LED),this.appendValueInput("PIN",Number).appendField(ge.Msg.MIXLY_PIN).setCheck(Number),this.appendDummyInput().appendField(ge.Msg.MIXLY_BRIGHTNESS),this.setOutput(!0),this.setInputsInline(!0),this.setTooltip(ge.Msg.MIXLY_ESP32_EXTERN_LED_GETONOFF)}},tr={init:function(){this.setColour(ku),this.appendDummyInput().appendField(ge.Msg.MIXLY_MICROBIT_PY_STORAGE_GET).appendField(ge.Msg.MIXLY_EXTERN_LED),this.appendValueInput("PIN",Number).appendField(ge.Msg.MIXLY_PIN).setCheck(Number),this.appendDummyInput().appendField(ge.Msg.MIXLY_PULSEIN_STAT),this.setOutput(!0),this.setInputsInline(!0),this.setTooltip(ge.Msg.MIXLY_ESP32_EXTERN_LED_GETONOFF)}},ir={init:function(){this.setColour(ku),this.appendDummyInput().appendField(ge.Msg.MIXLY_SETTING).appendField(ge.Msg.MIXLY_EXTERN_LED),this.appendValueInput("PIN",Number).appendField(ge.Msg.MIXLY_PIN).setCheck(Number),this.appendValueInput("bright").appendField(ge.Msg.MIXLY_BRIGHTNESS),this.appendDummyInput().appendField("%"),this.setPreviousStatement(!0,null),this.setNextStatement(!0,null),this.setInputsInline(!0),this.setTooltip(ge.Msg.MIXLY_ESP32_EXTERN_LED_SETBRIGHT)}},nr={init:function(){this.setColour(ku),this.appendValueInput("VAR").appendField(ge.Msg.MIXLY_SETUP+ge.Msg.MIXLY_SERVO),this.appendValueInput("PIN",Number).appendField(ge.Msg.MIXLY_PIN),this.setPreviousStatement(!0,null),this.setNextStatement(!0,null),this.setInputsInline(!0)}},sr={init:function(){this.setColour(ku),this.appendValueInput("PIN",Number).appendField(ge.Msg.MIXLY_SERVO).appendField(ge.Msg.MIXLY_PIN).setCheck(Number),this.appendValueInput("DEGREE",Number).setCheck(Number).setAlign(ge.inputs.Align.RIGHT).appendField(ge.Msg.MIXLY_DEGREE_0_180),this.setPreviousStatement(!0,null),this.setNextStatement(!0,null),this.setInputsInline(!0),this.setTooltip(ge.Msg.MIXLY_ESP32_SERVO_MOVE)}},_r={init:function(){this.setColour(ku),this.appendValueInput("VAR").appendField("360°"+ge.Msg.MIXLY_SERVO),this.appendValueInput("SPEED",Number).setCheck(Number).setAlign(ge.inputs.Align.RIGHT).appendField(ge.Msg.MIXLY_SETTING+ge.Msg.blockpy_turtle_rotate+ge.Msg.MIXLY_SPEED+" (-10~10)"),this.setPreviousStatement(!0,null),this.setNextStatement(!0,null),this.setInputsInline(!0),this.setTooltip(ge.Msg.MIXLY_ESP32_SERVO_360_TOOLTIP)}},or={init:function(){this.setColour(ku),this.appendValueInput("PIN",Number).appendField("180°"+ge.Msg.MIXLY_SERVO).appendField(ge.Msg.MIXLY_PIN).setCheck(Number),this.appendValueInput("NUM",Number).setCheck(Number).setAlign(ge.inputs.Align.RIGHT).appendField(ge.Msg.MIXLY_MICROBIT_JS_BY_ANGLE),this.setPreviousStatement(!0,null),this.setNextStatement(!0,null),this.setInputsInline(!0),this.setTooltip(ge.Msg.MIXLY_ESP32_SERVO_MOVE)}},pr={init:function(){this.setColour(ku),this.appendValueInput("PIN",Number).appendField("360°"+ge.Msg.MIXLY_SERVO).appendField(ge.Msg.MIXLY_PIN).setCheck(Number),this.appendValueInput("NUM",Number).setCheck(Number).setAlign(ge.inputs.Align.RIGHT).appendField(ge.Msg.MIXLY_SPEED),this.appendDummyInput().appendField("%"),this.setPreviousStatement(!0,null),this.setNextStatement(!0,null),this.setInputsInline(!0),this.setTooltip(ge.Msg.MIXLY_ESP32_SERVO_SPEED_TOOLIPS)}},ar={init:function(){this.setColour(ku),this.appendValueInput("PIN",Number).appendField("180°"+ge.Msg.MIXLY_SERVO).appendField(ge.Msg.MIXLY_PIN).setCheck(Number),this.appendDummyInput().appendField(ge.Msg.MIXLY_GET+ge.Msg.MIXLY_MICROBIT_JS_BY_ANGLE),this.setOutput(!0,Number),this.setInputsInline(!0)}},ur={init:function(){this.setColour(ku),this.appendValueInput("PIN",Number).appendField("360°"+ge.Msg.MIXLY_SERVO).appendField(ge.Msg.MIXLY_PIN).setCheck(Number),this.appendDummyInput().appendField(ge.Msg.MIXLY_GET+ge.Msg.MIXLY_SPEED),this.setOutput(!0,Number),this.setInputsInline(!0)}},rr={init:function(){this.setColour(ku),this.appendValueInput("SUB").appendField("初始化").setCheck("var"),this.appendDummyInput().appendField("电机驱动"),this.appendDummyInput().appendField("地址").appendField(new ge.FieldDropdown([["A","ms32006.ADDRESS_A"],["B","ms32006.ADDRESS_B"]]),"mode"),this.appendValueInput("SUB1").setCheck("var").setAlign(ge.inputs.Align.RIGHT).appendField("通信"),this.setPreviousStatement(!0,null),this.setNextStatement(!0,null),this.setInputsInline(!0),this.setTooltip("初始化MS32006电机驱动,使用I2C通信")}},lr={init:function(){this.setColour(ku),this.appendValueInput("SUB").appendField("直流电机").setCheck("var"),this.appendDummyInput().appendField(ge.Msg.MIXLY_MICROBIT_Direction).appendField(new ge.FieldDropdown([[ge.Msg.CLOCKWISE,"ms32006.MOT_CW"],[ge.Msg.ANTI_CLOCKWISE,"ms32006.MOT_CCW"],[ge.Msg.MOTOR_N,"ms32006.MOT_N"],[ge.Msg.MOTOR_P,"ms32006.MOT_P"]]),"direction"),this.appendValueInput("speed").setCheck(Number).setAlign(ge.inputs.Align.RIGHT).appendField(ge.Msg.MIXLY_STEPPER_SET_SPEED),this.setPreviousStatement(!0,null),this.setNextStatement(!0,null),this.setInputsInline(!0),this.setTooltip("设置直流电机的状态及转速(0-100)")}},dr={init:function(){this.setColour(ku),this.appendValueInput("SUB").appendField("步进电机").setCheck("var"),this.appendDummyInput().appendField("选择").appendField(new ge.FieldDropdown([["A","ms32006.MOT_A"],["B","ms32006.MOT_B"]]),"mode"),this.appendDummyInput().appendField(ge.Msg.MIXLY_MICROBIT_Direction).appendField(new ge.FieldDropdown([[ge.Msg.CLOCKWISE,"ms32006.MOT_CW"],[ge.Msg.ANTI_CLOCKWISE,"ms32006.MOT_CCW"]]),"direction"),this.appendValueInput("speed").setCheck(Number).setAlign(ge.inputs.Align.RIGHT).appendField("转速"),this.appendValueInput("steps").setCheck(Number).setAlign(ge.inputs.Align.RIGHT).appendField("步数"),this.setPreviousStatement(!0,null),this.setNextStatement(!0,null),this.setInputsInline(!0),this.setTooltip("设置步进电机的状态、转速、步数(0-2047)")}},Ir={init:function(){this.setColour(ku),this.appendDummyInput("").appendField(ge.Msg.MIXLY_RGB),this.appendValueInput("SUB").appendField(ge.Msg.MIXLY_SETUP).setCheck("var"),this.appendValueInput("PIN",Number).setCheck(Number).setAlign(ge.inputs.Align.RIGHT).appendField(ge.Msg.MIXLY_PIN),this.appendValueInput("LEDCOUNT").setCheck(Number).setAlign(ge.inputs.Align.RIGHT).appendField(ge.Msg.MIXLY_RGB_COUNT),this.setInputsInline(!0),this.setPreviousStatement(!0,null),this.setNextStatement(!0,null),this.setTooltip(ge.Msg.MIXLY_RGB_PIN_COUNT)}},Tr={init:function(){this.setColour(ku),this.appendDummyInput("").appendField(ge.Msg.MIXLY_RGB),this.appendValueInput("SUB").setCheck("var"),this.appendValueInput("_LED_").setCheck(Number).setAlign(ge.inputs.Align.RIGHT).appendField(ge.Msg.MIXLY_RGB_NUM),this.appendValueInput("RVALUE").setCheck(Number).setAlign(ge.inputs.Align.RIGHT).appendField(ge.Msg.MIXLY_RGB_R),this.appendValueInput("GVALUE").setCheck(Number).setAlign(ge.inputs.Align.RIGHT).appendField(ge.Msg.MIXLY_RGB_G),this.appendValueInput("BVALUE").setCheck(Number).setAlign(ge.inputs.Align.RIGHT).appendField(ge.Msg.MIXLY_RGB_B),this.setInputsInline(!0),this.setPreviousStatement(!0,null),this.setNextStatement(!0,null),this.setTooltip(""),this.setTooltip(ge.Msg.MIXLY_RGB_NUM_R_G_B_MP)}},Mr={init:function(){this.setColour(ku),this.appendDummyInput("").appendField(ge.Msg.MIXLY_RGB),this.appendValueInput("SUB").setCheck("var"),this.appendValueInput("RVALUE").setCheck(Number).setAlign(ge.inputs.Align.RIGHT).appendField(ge.Msg.MIXLY_RGB_R),this.appendValueInput("GVALUE").setCheck(Number).setAlign(ge.inputs.Align.RIGHT).appendField(ge.Msg.MIXLY_RGB_G),this.appendValueInput("BVALUE").setCheck(Number).setAlign(ge.inputs.Align.RIGHT).appendField(ge.Msg.MIXLY_RGB_B),this.setInputsInline(!0),this.setPreviousStatement(!0,null),this.setNextStatement(!0,null),this.setTooltip(""),this.setTooltip(ge.Msg.MIXLY_RGB_ALL_R_G_B_MIXGOCC)}},hr={init:function(){this.setColour(ku),this.appendDummyInput("").appendField(ge.Msg.MIXLY_RGB),this.appendValueInput("SUB").setCheck("var"),this.appendDummyInput().appendField(ge.Msg.MIXLY_ESP32_RGB_WRITE),this.setInputsInline(!0),this.setPreviousStatement(!0,null),this.setNextStatement(!0,null),this.setTooltip(""),this.setTooltip(ge.Msg.MIXLY_ESP32_MUSIC_WRI)}},mr={init:function(){this.setColour(ku),this.appendDummyInput("").appendField(ge.Msg.MIXLY_RGB),this.appendValueInput("SUB").setCheck("var"),this.appendDummyInput("").appendField(ge.Msg.MIXLY_RAINBOW),this.appendValueInput("time").setCheck(Number).appendField(ge.Msg.MIXLY_DURATION).appendField(ge.Msg.MIXLY_MILLIS),this.setInputsInline(!0),this.setPreviousStatement(!0,null),this.setNextStatement(!0,null),this.setTooltip("")}},Er={init:function(){this.setColour(ku),this.appendDummyInput("").appendField(ge.Msg.MIXLY_RGB),this.appendValueInput("SUB").setCheck("var"),this.appendDummyInput("").appendField(ge.Msg.MIXLY_CHASE),this.appendValueInput("RVALUE").setCheck(Number).setAlign(ge.inputs.Align.RIGHT).appendField(ge.Msg.MIXLY_RGB_R),this.appendValueInput("GVALUE").setCheck(Number).setAlign(ge.inputs.Align.RIGHT).appendField(ge.Msg.MIXLY_RGB_G),this.appendValueInput("BVALUE").setCheck(Number).setAlign(ge.inputs.Align.RIGHT).appendField(ge.Msg.MIXLY_RGB_B),this.appendValueInput("time").setCheck(Number).appendField(ge.Msg.PYTHON_RANGE_STEP).appendField(ge.Msg.MIXLY_MILLIS),this.setInputsInline(!0),this.setPreviousStatement(!0,null),this.setNextStatement(!0,null),this.setTooltip("")}},Or={init:function(){this.setColour(ku),this.appendDummyInput("").appendField(ge.Msg.CONTROLS_FOR_INPUT_WITH+"uart").appendField(new ge.FieldDropdown([["uart1","uart1"],["uart2","uart2"]]),"key"),this.appendValueInput("SUB").appendField(ge.Msg.MIXLY_MICROPYTHON_SOCKET_MAKE).setCheck("var"),this.appendDummyInput("").appendField(ge.Msg.MIXLY_SETUP+ge.Msg.LISTS_SET_INDEX_INPUT_TO).appendField(new ge.FieldDropdown([["SYN6288"+ge.Msg.MIXLY_AipSpeech_synthesis,"SYN6288"],["NS9300"+ge.Msg.MIXLY_MUSIC_PLAYER,"NS9300"]]),"key2"),this.setInputsInline(!0),this.setPreviousStatement(!0,null),this.setNextStatement(!0,null)}},Rr={init:function(){this.setColour(ku),this.appendValueInput("SUB").appendField(ge.Msg.MIXLY_GET+ge.Msg.MIXLY_MUSIC_PLAYER).setCheck("var"),this.appendDummyInput("").appendField(ge.Msg.MIXLY_WHETHER).appendField(new ge.FieldDropdown([[ge.Msg.MIXLY_STOPPED,"0"],[ge.Msg.MIXLY_PLAYING,"1"],[ge.Msg.MIXLY_PAUSED,"2"]]),"key"),this.setInputsInline(!0),this.setOutput(!0)}},cr={init:function(){this.setColour(ku),this.appendValueInput("SUB").appendField(ge.Msg.MIXLY_MUSIC_PLAYER).setCheck("var"),this.appendDummyInput("").appendField(ge.Msg.MIXLY_STAT).appendField(new ge.FieldDropdown([[ge.Msg.MIXLY_MP3_PLAY,"1"],[ge.Msg.MIXLY_MP3_PAUSE,"2"],[ge.Msg.MIXLY_STOP,"3"],[ge.Msg.MIXLY_MP3_PREV,"4"],[ge.Msg.MIXLY_MP3_NEXT,"5"]]),"key"),this.setInputsInline(!0),this.setPreviousStatement(!0),this.setNextStatement(!0)}},gr={init:function(){this.setColour(ku),this.appendValueInput("SUB").appendField(ge.Msg.MIXLY_MUSIC_PLAYER).setCheck("var"),this.appendValueInput("volume").appendField(ge.Msg.MIXLY_MP3_VOL+ge.Msg.MIXLY_STAT),this.setInputsInline(!0),this.setPreviousStatement(!0),this.setNextStatement(!0),this.setTooltip(ge.Msg.MIXLY_PLAYER_SET_VOLUME_TOOLTIP)}},Cr={init:function(){this.setColour(ku),this.appendValueInput("SUB").appendField(ge.Msg.MIXLY_MUSIC_PLAYER).setCheck("var"),this.appendDummyInput("").appendField(ge.Msg.MIXLY_MODE+ge.Msg.MIXLY_STAT).appendField(new ge.FieldDropdown([[ge.Msg.MIXLY_MP3_LOOP_ALL,"0"],[ge.Msg.MIXLY_MP3_LOOP_ONE,"1"],[ge.Msg.MIXLY_PLAYER_DIRECTORY_LOOP,"2"],[ge.Msg.MIXLY_MP3_LOOP_RAM,"3"],[ge.Msg.MIXLY_PLAYER_SINGLE_STOP,"4"],[ge.Msg.MIXLY_PLAYER_SEQUENTIAL_PLAY,"5"]]),"key"),this.setInputsInline(!0),this.setPreviousStatement(!0),this.setNextStatement(!0)}},Sr={init:function(){this.setColour(ku),this.appendValueInput("SUB").appendField(ge.Msg.MIXLY_MUSIC_PLAYER).setCheck("var"),this.appendDummyInput("").appendField(new ge.FieldDropdown([[ge.Msg.MIXLY_MICROBIT_JS_START_MELODY,"play"],[ge.Msg.MIXLY_PLAYER_INSERT_MUSIC,"insert"]]),"key"),this.appendValueInput("song"),this.setInputsInline(!0),this.setPreviousStatement(!0),this.setNextStatement(!0),this.setTooltip(ge.Msg.MIXLY_PLAYER_PLAY_MUSIC_TOOTIP)}},Ar={},Lr={init:function(){this.setColour(ku),this.appendValueInput("SUB").appendField("SYN6288"),this.appendValueInput("VOICE").setCheck(Number).appendField(ge.Msg.MIXLY_SET_VOLUME),this.setPreviousStatement(!0),this.setNextStatement(!0),this.setInputsInline(!0),this.setTooltip(ge.Msg.MIXLY_SET_VOLUME_TOOLTIP)}},Nr={init:function(){this.setColour(ku),this.appendValueInput("SUB").appendField("SYN6288"),this.appendDummyInput().appendField(ge.Msg.MIXLY_GET_VOLUME),this.setOutput(!0),this.setInputsInline(!0),this.setTooltip(ge.Msg.MIXLY_SET_VOLUME_TOOLTIP)}},Dr={init:function(){this.setColour(ku),this.appendValueInput("SUB").appendField("SYN6288"),this.appendValueInput("VOICE").setCheck(Number).appendField(ge.Msg.MIXLY_PLAY_HINTS),this.appendDummyInput().appendField(ge.Msg.MIXLY_PROGRAM_BLOCK).appendField(new ge.FieldDropdown([[ge.Msg.MIXLY_TURTLE_WRITE_MOVE_TRUE,"True"],[ge.Msg.MIXLY_TURTLE_WRITE_MOVE_FALSE,"False"]]),"mode"),this.setPreviousStatement(!0),this.setNextStatement(!0),this.setInputsInline(!0),this.setTooltip(ge.Msg.MIXLY_PLAY_HINTS_TOOLTIP)}},fr={init:function(){this.setColour(ku),this.appendValueInput("SUB").appendField("SYN6288"),this.appendValueInput("data").setCheck(String).appendField(ge.Msg.MIXLY_AipSpeech_synthesis),this.appendValueInput("VOICE").setCheck(Number).appendField(ge.Msg.MIXLY_BACKGROUND_MUSIC),this.appendDummyInput().appendField(ge.Msg.MIXLY_PROGRAM_BLOCK).appendField(new ge.FieldDropdown([[ge.Msg.MIXLY_TURTLE_WRITE_MOVE_TRUE,"True"],[ge.Msg.MIXLY_TURTLE_WRITE_MOVE_FALSE,"False"]]),"mode"),this.setPreviousStatement(!0),this.setNextStatement(!0),this.setInputsInline(!0),this.setTooltip(ge.Msg.MIXLY_PLAY_TTS_TOOLTIP)}},Fr={init:function(){this.setColour(ku),this.appendDummyInput("").appendField(new ge.FieldDropdown(Ce.Profile.default.extern_addr),"PIN"),this.setOutput(!0,Number)}},Pr={init:function(){this.setColour(ku),this.appendDummyInput().appendField(ge.Msg.ME_GO_MOTOR_EXTERN+ge.Msg.MIXLY_MOTOR).appendField(ge.Msg.PIN_NUMBERING).appendField(new ge.FieldDropdown([[ge.Msg.MIXLY_LEFT,"0"],[ge.Msg.MIXLY_RIGHT,"1"]]),"mode"),this.appendValueInput("speed").setCheck(Number).setAlign(ge.inputs.Align.RIGHT).appendField(ge.Msg.MIXLY_SPEED),this.appendDummyInput().appendField("%"),this.setPreviousStatement(!0,null),this.setNextStatement(!0,null),this.setInputsInline(!0),this.setTooltip(ge.Msg.MIXLY_MIXBOT_MOTOR_EXTERN_TOOLTIP)}},vr={init:function(){this.setColour(ku),this.appendDummyInput().appendField(ge.Msg.ME_GO_MOTOR_EXTERN+ge.Msg.MIXLY_MOTOR).appendField(ge.Msg.PIN_NUMBERING).appendField(new ge.FieldDropdown([[ge.Msg.MIXLY_LEFT,"0"],[ge.Msg.MIXLY_RIGHT,"1"]]),"mode"),this.appendDummyInput().setAlign(ge.inputs.Align.RIGHT).appendField(ge.Msg.MIXLY_GET+ge.Msg.MIXLY_SPEED),this.setOutput(!0,Number),this.setInputsInline(!0)}},Yr={init:function(){this.setColour(ku),this.appendDummyInput().appendField(ge.Msg.ME_GO_MOTOR_EXTERN+ge.Msg.MIXLY_TRAFFIC_LIGHT).appendField(ge.Msg.PIN_NUMBERING).appendField(new ge.FieldDropdown([[ge.Msg.MIXLY_LEFT,"0"],[ge.Msg.MIXLY_RIGHT,"1"]]),"mode"),this.appendDummyInput().setAlign(ge.inputs.Align.RIGHT).appendField(ge.Msg.LISTS_SET_INDEX_SET).appendField(new ge.FieldDropdown([[ge.Msg.MIXLY_MICROBIT_Turn_off_display,"0"],[ge.Msg.MIXLY_TRAFFIC_LIGHT_RED_ON,"1"],[ge.Msg.MIXLY_TRAFFIC_LIGHT_RED_BLINK,"2"],[ge.Msg.MIXLY_TRAFFIC_LIGHT_YELLOW_ON,"3"],[ge.Msg.MIXLY_TRAFFIC_LIGHT_YELLOW_BLINK,"4"],[ge.Msg.MIXLY_TRAFFIC_LIGHT_GREEN_ON,"5"],[ge.Msg.MIXLY_TRAFFIC_LIGHT_GREEN_BLINK,"6"]]),"light"),this.setPreviousStatement(!0,null),this.setNextStatement(!0,null),this.setInputsInline(!0)}},Xr={init:function(){this.setColour(ku),this.appendDummyInput().appendField(ge.Msg.ME_GO_MOTOR_EXTERN).appendField(new ge.FieldDropdown([[ge.Msg.COLOUR_RGB_WHITE,"W"],[ge.Msg.COLOUR_RGB_RED,"R"],[ge.Msg.COLOUR_RGB_YELLOW,"Y"],[ge.Msg.COLOUR_RGB_GREEN,"G"],[ge.Msg.COLOUR_RGB_BLUE,"B"]]),"color").appendField("LED").appendField(ge.Msg.PIN_NUMBERING).appendField(new ge.FieldDropdown([[ge.Msg.MIXLY_LEFT,"0"],[ge.Msg.MIXLY_RIGHT,"1"]]),"mode"),this.appendValueInput("value").setCheck(Number).setAlign(ge.inputs.Align.RIGHT).appendField(ge.Msg.BRIGHTNESS),this.appendDummyInput().appendField("%"),this.setPreviousStatement(!0,null),this.setNextStatement(!0,null),this.setInputsInline(!0)}},yr={init:function(){this.setColour(ku),this.appendDummyInput().appendField(ge.Msg.ME_GO_MOTOR_EXTERN).appendField(new ge.FieldDropdown([[ge.Msg.COLOUR_RGB_WHITE,"W"],[ge.Msg.COLOUR_RGB_RED,"R"],[ge.Msg.COLOUR_RGB_YELLOW,"Y"],[ge.Msg.COLOUR_RGB_GREEN,"G"],[ge.Msg.COLOUR_RGB_BLUE,"B"]]),"color").appendField("LED").appendField(ge.Msg.PIN_NUMBERING).appendField(new ge.FieldDropdown([[ge.Msg.MIXLY_LEFT,"0"],[ge.Msg.MIXLY_RIGHT,"1"]]),"mode"),this.appendDummyInput().appendField(ge.Msg.MIXLY_GET+ge.Msg.BRIGHTNESS),this.setOutput(!0,Number),this.setInputsInline(!0)}},br={init:function(){this.setColour(ku),this.appendDummyInput().appendField(ge.Msg.ME_GO_MOTOR_EXTERN+ge.Msg.MIXLY_SERVO_MOTOR).appendField(ge.Msg.PIN_NUMBERING).appendField(new ge.FieldDropdown([[ge.Msg.MIXLY_LEFT,"0"],[ge.Msg.MIXLY_RIGHT,"1"]]),"mode"),this.appendDummyInput().appendField(ge.Msg.MIXLY_GET).appendField(new ge.FieldDropdown([[ge.Msg.MIXLY_MICROBIT_JS_BLE_POWER,"[0]"],[ge.Msg.MIXLY_SPEED,"[1]"],[ge.Msg.MATH_SINGLE_OP_ABSOLUTE+ge.Msg.MIXLY_MICROBIT_JS_BY_ANGLE,"[2]"],[ge.Msg.MIXLY_RELATIVE+ge.Msg.MIXLY_MICROBIT_JS_BY_ANGLE,"[3]"],[ge.Msg.MIXLY_MIXBOT_SERVO_BLOCK_OR_NOT,"[4]"],[ge.Msg.MIXLY_MIXBOT_SERVO_FINISH_OR_NOT,"[5]"],[ge.Msg.MIXLY_ALL,""]]),"status"),this.setOutput(!0,Number),this.setInputsInline(!0)}},xr={init:function(){this.setColour(ku),this.appendDummyInput().appendField(ge.Msg.ME_GO_MOTOR_EXTERN+ge.Msg.MIXLY_SERVO_MOTOR).appendField(ge.Msg.PIN_NUMBERING).appendField(new ge.FieldDropdown([[ge.Msg.MIXLY_LEFT,"0"],[ge.Msg.MIXLY_RIGHT,"1"]]),"mode"),this.appendDummyInput().appendField(ge.Msg.MIXLY_MIXBOT_SERVO_SET_STOP_MODE).appendField(new ge.FieldDropdown([[ge.Msg.MIXLY_MIXBOT_SERVO_STOP_MODE_KEEP,"0"],[ge.Msg.MIXLY_MIXBOT_SERVO_STOP_MODE_COAST,"1"],[ge.Msg.MIXLY_MIXBOT_SERVO_STOP_MODE_BRAKE,"2"]]),"status"),this.setPreviousStatement(!0,null),this.setNextStatement(!0,null),this.setInputsInline(!0)}},Vr={init:function(){this.setColour(ku),this.appendDummyInput().appendField(ge.Msg.ME_GO_MOTOR_EXTERN+ge.Msg.MIXLY_SERVO_MOTOR).appendField(ge.Msg.PIN_NUMBERING).appendField(new ge.FieldDropdown([[ge.Msg.MIXLY_LEFT,"0"],[ge.Msg.MIXLY_RIGHT,"1"]]),"mode"),this.appendDummyInput().appendField(ge.Msg.MIXLY_STOP),this.setPreviousStatement(!0,null),this.setNextStatement(!0,null),this.setInputsInline(!0)}},Br={init:function(){this.setColour(ku),this.appendDummyInput().appendField(ge.Msg.ME_GO_MOTOR_EXTERN+ge.Msg.MIXLY_SERVO_MOTOR).appendField(ge.Msg.MATH_SINGLE_OP_ABSOLUTE+ge.Msg.MIXLY_MICROBIT_JS_BY_ANGLE+ge.Msg.MSG.run).appendField(ge.Msg.PIN_NUMBERING).appendField(new ge.FieldDropdown([[ge.Msg.MIXLY_LEFT,"0"],[ge.Msg.MIXLY_RIGHT,"1"]]),"mode"),this.appendDummyInput().appendField(ge.Msg.MIXLY_MODE).setAlign(ge.inputs.Align.RIGHT).appendField(new ge.FieldDropdown([[ge.Msg.MIXLY_SPEED+ge.Msg.MIXLY_MODE,"0"],[ge.Msg.MIXLY_MICROBIT_JS_BLE_POWER+ge.Msg.MIXLY_MODE,"1"]]),"status"),this.appendValueInput("speed").setCheck(Number).setAlign(ge.inputs.Align.RIGHT).appendField(ge.Msg.MIXLY_PARAMS),this.appendDummyInput().setAlign(ge.inputs.Align.RIGHT).appendField("%"),this.appendDummyInput().appendField(ge.Msg.MIXLY_MIXBOT_SERVO_TURN_DIRECTION).setAlign(ge.inputs.Align.RIGHT).appendField(new ge.FieldDropdown([[ge.Msg.CLOCKWISE,"0"],[ge.Msg.MIXLY_MIXBOT_SERVO_NEAREST_PATH,"1"],[ge.Msg.ANTI_CLOCKWISE,"2"]]),"direction"),this.appendValueInput("angle").setCheck(Number).setAlign(ge.inputs.Align.RIGHT).appendField(ge.Msg.MIXLY_DISPLAY_MATRIX_ROTATE+ge.Msg.MIXLY_MICROBIT_JS_BY_ANGLE),this.setPreviousStatement(!0,null),this.setNextStatement(!0,null),this.setInputsInline(!0),this.setTooltip(ge.Msg.MIXLY_MIXBOT_SERVO_ABSOLUTE_ANGLE_TOOLTIP)}},Gr={init:function(){this.setColour(ku),this.appendDummyInput().appendField(ge.Msg.ME_GO_MOTOR_EXTERN+ge.Msg.MIXLY_SERVO_MOTOR).appendField(ge.Msg.MIXLY_RELATIVE+ge.Msg.MIXLY_MICROBIT_JS_BY_ANGLE+ge.Msg.MSG.run).appendField(ge.Msg.PIN_NUMBERING).appendField(new ge.FieldDropdown([[ge.Msg.MIXLY_LEFT,"0"],[ge.Msg.MIXLY_RIGHT,"1"]]),"mode"),this.appendDummyInput().appendField(ge.Msg.MIXLY_MIXBOT_SERVO_RELATIVE_ORIGIN_PATH),this.setPreviousStatement(!0,null),this.setNextStatement(!0,null),this.setInputsInline(!0)}},Ur={init:function(){this.setColour(ku),this.appendDummyInput().appendField(ge.Msg.ME_GO_MOTOR_EXTERN+ge.Msg.MIXLY_SERVO_MOTOR).appendField(ge.Msg.MIXLY_RELATIVE+ge.Msg.MIXLY_MICROBIT_JS_BY_ANGLE+ge.Msg.MSG.run).appendField("("+ge.Msg.MIXLY_MIXBOT_SERVO_LIKE_ENCODING_MOTOR+")").appendField(ge.Msg.PIN_NUMBERING).appendField(new ge.FieldDropdown([[ge.Msg.MIXLY_LEFT,"0"],[ge.Msg.MIXLY_RIGHT,"1"]]),"mode"),this.appendDummyInput().appendField(ge.Msg.MIXLY_MODE).setAlign(ge.inputs.Align.RIGHT).appendField(new ge.FieldDropdown([[ge.Msg.MIXLY_SPEED+ge.Msg.MIXLY_MODE,"0"],[ge.Msg.MIXLY_MICROBIT_JS_BLE_POWER+ge.Msg.MIXLY_MODE,"1"]]),"status"),this.appendValueInput("speed").setCheck(Number).setAlign(ge.inputs.Align.RIGHT).appendField(ge.Msg.MIXLY_PARAMS),this.appendDummyInput().setAlign(ge.inputs.Align.RIGHT).appendField("%"),this.appendValueInput("angle").setCheck(Number).setAlign(ge.inputs.Align.RIGHT).appendField(ge.Msg.MIXLY_DISPLAY_MATRIX_ROTATE+ge.Msg.MIXLY_MICROBIT_JS_BY_ANGLE),this.setPreviousStatement(!0,null),this.setNextStatement(!0,null),this.setInputsInline(!0),this.setTooltip(ge.Msg.MIXLY_MIXBOT_SERVO_RELATIVE_ANGLE_TOOLTIP)}},wr={init:function(){this.setColour(ku),this.appendDummyInput().appendField(ge.Msg.ME_GO_MOTOR_EXTERN+ge.Msg.MIXLY_SERVO_MOTOR).appendField(ge.Msg.MIXLY_RELATIVE+ge.Msg.MIXLY_MICROBIT_JS_BY_ANGLE+ge.Msg.MSG.run).appendField("("+ge.Msg.MIXLY_MIXBOT_SERVO_LIKE_ORDINARY_MOTOR+")").appendField(ge.Msg.PIN_NUMBERING).appendField(new ge.FieldDropdown([[ge.Msg.MIXLY_LEFT,"0"],[ge.Msg.MIXLY_RIGHT,"1"]]),"mode"),this.appendDummyInput().appendField(ge.Msg.MIXLY_MODE).setAlign(ge.inputs.Align.RIGHT).appendField(new ge.FieldDropdown([[ge.Msg.MIXLY_SPEED+ge.Msg.MIXLY_MODE,"0"],[ge.Msg.MIXLY_MICROBIT_JS_BLE_POWER+ge.Msg.MIXLY_MODE,"1"]]),"status"),this.appendValueInput("speed").setCheck(Number).setAlign(ge.inputs.Align.RIGHT).appendField(ge.Msg.MIXLY_PARAMS),this.appendDummyInput().setAlign(ge.inputs.Align.RIGHT).appendField("%"),this.appendDummyInput().appendField(ge.Msg.MIXLY_MIXBOT_SERVO_TURN_DIRECTION).setAlign(ge.inputs.Align.RIGHT).appendField(new ge.FieldDropdown([[ge.Msg.CLOCKWISE,"0"],[ge.Msg.ANTI_CLOCKWISE,"2"]]),"direction"),this.setPreviousStatement(!0,null),this.setNextStatement(!0,null),this.setInputsInline(!0)}},kr={init:function(){this.setColour(ku),this.appendDummyInput().appendField(ge.Msg.MIXBOT).appendField(ge.Msg.ME_GO_MOTOR_EXTERN).appendField(new ge.FieldDropdown([[ge.Msg.MIXLY_MOTOR,"ext_motor"],[ge.Msg.MIXLY_TRAFFIC_LIGHT,"ext_traffic"],[ge.Msg.COLOUR_RGB_WHITE+"LED","W_LED"],[ge.Msg.COLOUR_RGB_RED+"LED","R_LED"],[ge.Msg.COLOUR_RGB_YELLOW+"LED","Y_LED"],[ge.Msg.COLOUR_RGB_GREEN+"LED","G_LED"],[ge.Msg.COLOUR_RGB_BLUE+"LED","B_LED"],[ge.Msg.MIXLY_SERVO_MOTOR,"ext_servo"]]),"name"),this.appendDummyInput().appendField(ge.Msg.MIXLY_MIXBOT_EXTERN_GET_ADDR),this.setOutput(!0),this.setInputsInline(!0)}},Hr={init:function(){this.setColour(ku),this.appendDummyInput().appendField(ge.Msg.MIXBOT).appendField(ge.Msg.ME_GO_MOTOR_EXTERN).appendField(new ge.FieldDropdown([[ge.Msg.MIXLY_MOTOR,"ext_motor"],[ge.Msg.MIXLY_TRAFFIC_LIGHT,"ext_traffic"],[ge.Msg.COLOUR_RGB_WHITE+"LED","W_LED"],[ge.Msg.COLOUR_RGB_RED+"LED","R_LED"],[ge.Msg.COLOUR_RGB_YELLOW+"LED","Y_LED"],[ge.Msg.COLOUR_RGB_GREEN+"LED","G_LED"],[ge.Msg.COLOUR_RGB_BLUE+"LED","B_LED"],[ge.Msg.MIXLY_SERVO_MOTOR,"ext_servo"]]),"name"),this.appendDummyInput().appendField(ge.Msg.MIXLY_MIXBOT_EXTERN_SET_ADDR),this.appendValueInput("old").setCheck(Number).setAlign(ge.inputs.Align.RIGHT).appendField(ge.Msg.MIXLY_MICROBIT_JS_CURRENT_GESTURE),this.appendValueInput("new").setCheck(Number).setAlign(ge.inputs.Align.RIGHT).appendField(ge.Msg.MIXLY_UPDATE),this.setPreviousStatement(!0,null),this.setNextStatement(!0,null),this.setInputsInline(!0)}},Wr={init:function(){this.setColour(ku),this.appendValueInput("PIN",Number).setCheck(Number).setAlign(ge.inputs.Align.RIGHT).appendField(ge.Msg.MIXLY_SETUP+ge.Msg.MIXLY_AT).appendField(ge.Msg.MIXLY_PIN),this.setInputsInline(!0),this.setOutput(!0)}},Kr={init:function(){this.setColour(ku),this.appendDummyInput().appendField(ge.Msg.MIXLY_SETTING),this.appendValueInput("pin").appendField("LED"),this.appendValueInput("bright").appendField(ge.Msg.MIXLY_PULSEIN_STAT),this.setPreviousStatement(!0,null),this.setNextStatement(!0,null),this.setInputsInline(!0)}},Jr={init:function(){this.setColour(ku),this.appendValueInput("PIN",Number).setCheck(Number).setAlign(ge.inputs.Align.RIGHT).appendField(ge.Msg.MIXLY_SERVO+ge.Msg.MIXLY_SETUP+ge.Msg.MIXLY_AT).appendField(ge.Msg.MIXLY_PIN),this.setInputsInline(!0),this.setOutput(!0)}},qr={init:function(){this.setColour(ku),this.appendValueInput("SUB").appendField(ge.Msg.MIXLY_SERVO),this.appendValueInput("angle").setCheck(Number).setAlign(ge.inputs.Align.RIGHT).appendField(ge.Msg.MIXLY_DISPLAY_MATRIX_ROTATE),this.appendDummyInput().appendField(ge.Msg.DRAW_POINTER_ANGLE),this.setInputsInline(!0),this.setPreviousStatement(!0),this.setNextStatement(!0)}},Qr={init:function(){this.setColour(ku),this.appendValueInput("PIN",Number).setCheck(Number).setAlign(ge.inputs.Align.RIGHT).appendField(ge.Msg.MIXLY_MOTOR+ge.Msg.MIXLY_SETUP+ge.Msg.MIXLY_AT).appendField(ge.Msg.MIXLY_PIN),this.setInputsInline(!0),this.setOutput(!0)}},zr={init:function(){this.setColour(ku),this.appendValueInput("SUB").appendField(ge.Msg.MIXLY_MOTOR),this.appendValueInput("speed").setCheck(Number).setAlign(ge.inputs.Align.RIGHT).appendField(ge.Msg.MIXLY_DISPLAY_MATRIX_ROTATE+ge.Msg.MIXLY_SPEED),this.setInputsInline(!0),this.setPreviousStatement(!0),this.setNextStatement(!0)}},jr="#6C9858",$r={init:function(){this.setColour(jr),this.appendDummyInput("").appendField(new ge.FieldDropdown([["L1","1"],["L2","2"]]),"op"),this.setOutput(!0)}},Zr={init:function(){this.setColour(jr),this.appendDummyInput("").appendField(new ge.FieldDropdown([[ge.Msg.MIXLY_ESP32_ON,"1"],[ge.Msg.MIXLY_ESP32_OFF,"0"],[ge.Msg.MIXLY_ESP32_TOGGLE,"-1"]]),"flag"),this.setOutput(!0),this.setTooltip(ge.Msg.MIXLY_TOOLTIP_INOUT_HIGHLOW)}},el={init:function(){this.setColour(jr),this.appendDummyInput().appendField(ge.Msg.MIXLY_SETTING),this.appendValueInput("led").appendField(ge.Msg.MIXLY_BUILDIN_LED),this.appendValueInput("bright").appendField(ge.Msg.MIXLY_PULSEIN_STAT),this.setPreviousStatement(!0,null),this.setNextStatement(!0,null),this.setInputsInline(!0),this.setTooltip(ge.Msg.MIXLY_ESP32_LED_SETONOFF)}},tl={init:function(){this.setColour(jr),this.appendDummyInput().appendField(ge.Msg.MIXLY_MICROBIT_PY_STORAGE_GET),this.appendValueInput("led").appendField(ge.Msg.MIXLY_BUILDIN_LED),this.appendDummyInput().appendField(ge.Msg.MIXLY_BRIGHTNESS),this.setOutput(!0),this.setInputsInline(!0),this.setTooltip(ge.Msg.MIXLY_ESP32_LED_GETBRIGHT)}},il={init:function(){this.setColour(jr),this.appendDummyInput().appendField(ge.Msg.MIXLY_MICROBIT_PY_STORAGE_GET),this.appendValueInput("led").appendField(ge.Msg.MIXLY_BUILDIN_LED),this.appendDummyInput().appendField(ge.Msg.MIXLY_PULSEIN_STAT),this.setOutput(!0),this.setInputsInline(!0),this.setTooltip(ge.Msg.MIXLY_ESP32_LED_GETONOFF)}},nl={init:function(){this.setColour(jr),this.appendDummyInput().appendField(ge.Msg.MIXLY_SETTING),this.appendValueInput("led").appendField(ge.Msg.MIXLY_BUILDIN_LED),this.appendValueInput("bright").appendField(ge.Msg.MIXLY_BRIGHTNESS),this.appendDummyInput("").appendField("%"),this.setPreviousStatement(!0,null),this.setNextStatement(!0,null),this.setInputsInline(!0),this.setTooltip(ge.Msg.MIXLY_SETTING+ge.Msg.MIXLY_BUILDIN_LED+ge.Msg.MIXLY_BRIGHTNESS+"(0-100%)")}},sl={init:function(){this.setColour(jr),this.appendDummyInput().appendField(ge.Msg.MIXLY_SETTING),this.appendValueInput("led").appendField(ge.Msg.MIXLY_BUILDIN_LED),this.appendDummyInput("").appendField(ge.Msg.MIXLY_LCD_SETCOLOR).appendField(new ge.FieldDropdown([[ge.Msg.MIXLY_LIGHT_RED,"1"],[ge.Msg.MIXLY_LIGHT_GREEN,"2"],[ge.Msg.MIXLY_LIGHT_BLUE,"3"],[ge.Msg.MIXLY_LIGHT_YELLOW,"4"],[ge.Msg.MIXLY_LIGHT_CYAN,"5"],[ge.Msg.MIXLY_LIGHT_PURPLE,"6"],[ge.Msg.MIXLY_LIGHT_WHITE,"7"]]),"colorvalue"),this.setPreviousStatement(!0,null),this.setNextStatement(!0,null),this.setInputsInline(!0),this.setTooltip()}},_l={init:function(){this.setColour(jr),this.appendDummyInput().appendField(ge.Msg.MIXLY_SETTING).appendField(ge.Msg.MIXLY_BUILDIN_LED).appendField(new ge.FieldDropdown([[ge.Msg.COLOUR_RGB_RED,"r"],[ge.Msg.COLOUR_RGB_GREEN,"g"]]),"color"),this.appendValueInput("bright").appendField(ge.Msg.MIXLY_PULSEIN_STAT),this.setPreviousStatement(!0,null),this.setNextStatement(!0,null),this.setInputsInline(!0),this.setTooltip(ge.Msg.MIXLY_ESP32_LED_SETONOFF)}},ol={init:function(){this.setColour(jr),this.appendDummyInput().appendField(ge.Msg.MIXLY_MICROBIT_PY_STORAGE_GET).appendField(ge.Msg.MIXLY_BUILDIN_LED).appendField(new ge.FieldDropdown([[ge.Msg.COLOUR_RGB_RED,"r"],[ge.Msg.COLOUR_RGB_GREEN,"g"]]),"color"),this.appendDummyInput().appendField(ge.Msg.MIXLY_BRIGHTNESS),this.setOutput(!0),this.setInputsInline(!0),this.setTooltip(ge.Msg.MIXLY_ESP32_LED_GETONOFF)}},pl={init:function(){this.setColour(jr),this.appendDummyInput().appendField(ge.Msg.MIXLY_MICROBIT_PY_STORAGE_GET).appendField(ge.Msg.MIXLY_BUILDIN_LED).appendField(new ge.FieldDropdown([[ge.Msg.COLOUR_RGB_RED,"r"],[ge.Msg.COLOUR_RGB_GREEN,"g"]]),"color"),this.appendDummyInput().appendField(ge.Msg.MIXLY_PULSEIN_STAT),this.setOutput(!0),this.setInputsInline(!0),this.setTooltip(ge.Msg.MIXLY_ESP32_LED_GETONOFF)}},al={init:function(){this.setColour(jr),this.appendDummyInput().appendField(ge.Msg.MIXLY_SETTING).appendField(ge.Msg.MIXLY_BUILDIN_LED).appendField(new ge.FieldDropdown([[ge.Msg.COLOUR_RGB_RED,"r"],[ge.Msg.COLOUR_RGB_GREEN,"g"]]),"color"),this.appendValueInput("bright").appendField(ge.Msg.MIXLY_BRIGHTNESS),this.appendDummyInput("").appendField("%"),this.setPreviousStatement(!0,null),this.setNextStatement(!0,null),this.setInputsInline(!0),this.setTooltip(ge.Msg.MIXLY_SETTING+ge.Msg.MIXLY_BUILDIN_LED+ge.Msg.MIXLY_BRIGHTNESS+"(0-10)")}},ul={init:function(){this.setColour(jr),this.appendDummyInput("").appendField(new ge.FieldDropdown([["L1","20"],["L2","21"]]),"op"),this.setOutput(!0)}},rl={init:function(){this.setColour(jr),this.appendDummyInput("").appendField(ge.Msg.MIXLY_RGB),this.appendValueInput("_LED_").setCheck(Number).setAlign(ge.inputs.Align.RIGHT).appendField(ge.Msg.MIXLY_RGB_NUM),this.appendValueInput("RVALUE").setCheck(Number).setAlign(ge.inputs.Align.RIGHT).appendField(ge.Msg.MIXLY_RGB_R),this.appendValueInput("GVALUE").setCheck(Number).setAlign(ge.inputs.Align.RIGHT).appendField(ge.Msg.MIXLY_RGB_G),this.appendValueInput("BVALUE").setCheck(Number).setAlign(ge.inputs.Align.RIGHT).appendField(ge.Msg.MIXLY_RGB_B),this.setInputsInline(!0),this.setPreviousStatement(!0,null),this.setNextStatement(!0,null);switch(Ce.Boards.getSelectedBoardKey()){case"micropython:esp32c3:mixgo_cc":case"micropython:esp32s2:mixgo_ce":this.setTooltip(ge.Msg.MIXLY_RGB_NUM_R_G_B_MIXGOCC);break;case"micropython:esp32c3:mixgo_me":default:this.setTooltip(ge.Msg.MIXLY_RGB_NUM_R_G_B_MIXGOME);break;case"micropython:esp32:mPython":this.setTooltip(ge.Msg.MIXLY_RGB_NUM_R_G_B_MPYTHON)}}},ll={init:function(){this.setColour(jr),this.appendDummyInput("").appendField(ge.Msg.MIXLY_RGB),this.appendValueInput("RVALUE").setCheck(Number).setAlign(ge.inputs.Align.RIGHT).appendField(ge.Msg.MIXLY_RGB_R),this.appendValueInput("GVALUE").setCheck(Number).setAlign(ge.inputs.Align.RIGHT).appendField(ge.Msg.MIXLY_RGB_G),this.appendValueInput("BVALUE").setCheck(Number).setAlign(ge.inputs.Align.RIGHT).appendField(ge.Msg.MIXLY_RGB_B),this.setInputsInline(!0),this.setPreviousStatement(!0,null),this.setNextStatement(!0,null),this.setTooltip(""),this.setTooltip(ge.Msg.MIXLY_RGB_ALL_R_G_B_MIXGOCC)}},dl={init:function(){this.setColour(jr),this.appendDummyInput("").appendField(ge.Msg.MIXLY_RGB),this.appendDummyInput("").appendField(ge.Msg.MIXLY_RAINBOW),this.appendValueInput("time").setCheck(Number).appendField(ge.Msg.MIXLY_DURATION).appendField(ge.Msg.MIXLY_MILLIS),this.setInputsInline(!0),this.setPreviousStatement(!0,null),this.setNextStatement(!0,null),this.setTooltip("")}},Il={init:function(){this.setColour(jr),this.appendDummyInput("").appendField(ge.Msg.MIXLY_RGB),this.appendDummyInput("").appendField(ge.Msg.MIXLY_CHASE),this.appendValueInput("RVALUE").setCheck(Number).setAlign(ge.inputs.Align.RIGHT).appendField(ge.Msg.MIXLY_RGB_R),this.appendValueInput("GVALUE").setCheck(Number).setAlign(ge.inputs.Align.RIGHT).appendField(ge.Msg.MIXLY_RGB_G),this.appendValueInput("BVALUE").setCheck(Number).setAlign(ge.inputs.Align.RIGHT).appendField(ge.Msg.MIXLY_RGB_B),this.appendValueInput("time").setCheck(Number).appendField(ge.Msg.PYTHON_RANGE_STEP).appendField(ge.Msg.MIXLY_MILLIS),this.setInputsInline(!0),this.setPreviousStatement(!0,null),this.setNextStatement(!0,null),this.setTooltip("")}},Tl={init:function(){this.setColour(jr),this.appendDummyInput("").appendField(ge.Msg.MIXLY_RGB),this.appendDummyInput().appendField(ge.Msg.MIXLY_ESP32_RGB_WRITE),this.setInputsInline(!0),this.setPreviousStatement(!0,null),this.setNextStatement(!0,null),this.setTooltip(""),this.setTooltip(ge.Msg.MIXLY_ESP32_MUSIC_WRI)}},Ml={init:function(){this.setColour(jr),this.appendDummyInput("").appendField(ge.Msg.MIXLY_RGB),this.appendValueInput("_LED_").setCheck(Number).setAlign(ge.inputs.Align.RIGHT).appendField(ge.Msg.MIXLY_RGB_NUM),this.appendValueInput("RVALUE").setCheck(Number).setAlign(ge.inputs.Align.RIGHT).appendField(ge.Msg.MIXLY_RGB_R),this.appendValueInput("GVALUE").setCheck(Number).setAlign(ge.inputs.Align.RIGHT).appendField(ge.Msg.MIXLY_RGB_G),this.appendValueInput("BVALUE").setCheck(Number).setAlign(ge.inputs.Align.RIGHT).appendField(ge.Msg.MIXLY_RGB_B),this.setInputsInline(!0),this.setPreviousStatement(!0,null),this.setNextStatement(!0,null);switch(Ce.Boards.getSelectedBoardKey()){case"micropython:esp32c3:mixgocc":this.setTooltip(ge.Msg.MIXLY_RGB_NUM_R_G_B_MIXGOCC);break;case"micropython:esp32c3:mixgome":default:this.setTooltip(ge.Msg.MIXLY_RGB_NUM_R_G_B_MIXGOME);break;case"micropython:esp32:mPython":this.setTooltip(ge.Msg.MIXLY_RGB_NUM_R_G_B_MPYTHON)}}},hl={init:function(){this.setColour(jr),this.appendDummyInput("").appendField(ge.Msg.MIXLY_RGB),this.appendValueInput("RVALUE").setCheck(Number).setAlign(ge.inputs.Align.RIGHT).appendField(ge.Msg.MIXLY_RGB_R),this.appendValueInput("GVALUE").setCheck(Number).setAlign(ge.inputs.Align.RIGHT).appendField(ge.Msg.MIXLY_RGB_G),this.appendValueInput("BVALUE").setCheck(Number).setAlign(ge.inputs.Align.RIGHT).appendField(ge.Msg.MIXLY_RGB_B),this.setInputsInline(!0),this.setPreviousStatement(!0,null),this.setNextStatement(!0,null),this.setTooltip(""),this.setTooltip(ge.Msg.MIXLY_RGB_ALL_R_G_B_MIXGOCC)}},ml={init:function(){this.setColour(jr),this.appendDummyInput("").appendField(ge.Msg.MIXLY_RGB),this.appendDummyInput("").appendField(ge.Msg.MIXLY_CHASE),this.appendValueInput("RVALUE").setCheck(Number).setAlign(ge.inputs.Align.RIGHT).appendField(ge.Msg.MIXLY_RGB_R),this.appendValueInput("GVALUE").setCheck(Number).setAlign(ge.inputs.Align.RIGHT).appendField(ge.Msg.MIXLY_RGB_G),this.appendValueInput("BVALUE").setCheck(Number).setAlign(ge.inputs.Align.RIGHT).appendField(ge.Msg.MIXLY_RGB_B),this.appendValueInput("time").setCheck(Number).appendField(ge.Msg.PYTHON_RANGE_STEP).appendField(ge.Msg.MIXLY_MILLIS),this.setInputsInline(!0),this.setPreviousStatement(!0,null),this.setNextStatement(!0,null),this.setTooltip("")}},El={init:function(){this.setColour(jr),this.appendValueInput("TICKS").setCheck(Number).appendField(ge.Msg.MIXLY_MICROBIT_JS_SET_TEMPO).appendField(ge.Msg.MICROBIT_ACTUATOR_ticks),this.appendValueInput("BPM").setCheck(Number).appendField(ge.Msg.MIXLY_SPEED),this.setPreviousStatement(!0),this.setNextStatement(!0),this.setInputsInline(!0),this.setTooltip(ge.Msg.MIXLY_ESP32_MUSIC_SET_TEMPO)}},Ol={init:function(){this.setColour(jr),this.appendDummyInput().appendField(ge.Msg.MIXLY_MICROBIT_Get_current_tempo),this.setOutput(!0),this.setInputsInline(!0),this.setTooltip(ge.Msg.MIXLY_ESP32_MUSIC_GET_TEMPO)}},Rl={init:function(){this.setColour(jr),this.appendDummyInput().appendField(ge.Msg.MIXLY_MICROBIT_Reset_music),this.setPreviousStatement(!0),this.setNextStatement(!0),this.setInputsInline(!0),this.setTooltip(ge.Msg.MIXLY_ESP32_MUSIC_RESET)}},cl={init:function(){this.setColour(jr),this.appendDummyInput().appendField(ge.Msg.MIXLY_TONE),this.appendValueInput("pitch").setCheck(Number).appendField(ge.Msg.MIXLY_FREQUENCY),this.setInputsInline(!0),this.setPreviousStatement(!0),this.setNextStatement(!0),this.setTooltip(ge.Msg.MIXLY_TOOLTIP_BLOCKGROUP_TONE)}},gl={init:function(){this.setColour(jr),this.appendDummyInput().appendField(ge.Msg.MIXLY_TONE),this.appendValueInput("pitch").setCheck(Number).appendField(ge.Msg.MIXLY_FREQUENCY),this.appendValueInput("time").setCheck(Number).appendField(ge.Msg.MIXLY_DURATION),this.setInputsInline(!0),this.setPreviousStatement(!0),this.setNextStatement(!0),this.setTooltip(ge.Msg.MIXLY_TOOLTIP_BLOCKGROUP_TONE2)}},Cl={init:function(){this.setColour(jr),this.appendDummyInput().appendField(ge.Msg.MIXLY_NOTONE),this.setInputsInline(!0),this.setPreviousStatement(!0),this.setNextStatement(!0)}},Sl={init:function(){this.setColour(jr),this.appendValueInput("LIST").appendField(ge.Msg.MIXLY_ESP32_MUSIC_PLAY_LISTS),this.setPreviousStatement(!0),this.setNextStatement(!0),this.setInputsInline(!0),this.setTooltip(ge.Msg.MIXLY_ESP32_MUSIC_PLAY_LISTS)}},Al={init:function(){this.setColour(jr),this.appendValueInput("LIST").appendField(ge.Msg.MIXLY_BACKSTAGE+ge.Msg.MIXLY_ESP32_MUSIC_PLAY_LISTS),this.setPreviousStatement(!0),this.setNextStatement(!0),this.setInputsInline(!0),this.setTooltip(ge.Msg.MIXLY_ESP32_MUSIC_PLAY_LISTS)}},Ll={init:function(){this.setColour(jr),this.appendDummyInput().appendField(ge.Msg.MOTOR_DC).appendField(new ge.FieldDropdown([["1","1"],["2","2"],["3","3"]]),"wheel"),this.appendDummyInput().appendField(ge.Msg.MIXLY_MICROBIT_Direction).appendField(new ge.FieldDropdown([[ge.Msg.CLOCKWISE,"CW"],[ge.Msg.ANTI_CLOCKWISE,"CCW"],[ge.Msg.MOTOR_P,"P"],[ge.Msg.MOTOR_N,"N"]]),"direction"),this.appendValueInput("speed").setCheck(Number).setAlign(ge.inputs.Align.RIGHT).appendField(ge.Msg.MIXLY_STEPPER_SET_SPEED),this.appendDummyInput("").appendField("%"),this.setPreviousStatement(!0,null),this.setNextStatement(!0,null),this.setInputsInline(!0)}},Nl={init:function(){this.setColour(jr),this.appendDummyInput().appendField("MixGo Car").appendField(new ge.FieldDropdown([[ge.Msg.blockpy_forward,"F"],[ge.Msg.blockpy_backward,"B"],[ge.Msg.blockpy_left,"L"],[ge.Msg.blockpy_right,"R"]]),"VAR"),this.appendValueInput("speed").setCheck(Number).setAlign(ge.inputs.Align.RIGHT).appendField(ge.Msg.MIXLY_STEPPER_SET_SPEED),this.appendDummyInput().appendField("%"),this.setPreviousStatement(!0,null),this.setNextStatement(!0,null),this.setInputsInline(!0)}},Dl={init:function(){this.setColour(jr),this.appendDummyInput("").appendField("MixGo Car").appendField(new ge.FieldDropdown([[ge.Msg.MOTOR_P,"P"],[ge.Msg.MOTOR_N,"N"]]),"VAR"),this.setInputsInline(!0),this.setPreviousStatement(!0,null),this.setNextStatement(!0,null),this.setTooltip("")}},fl={init:function(){this.setColour(jr),this.appendDummyInput().appendField(ge.Msg.MOTOR_DC).appendField(new ge.FieldDropdown([[ge.Msg.MIXLYCAR_WHEEL_LEFT,"L"],[ge.Msg.MIXLYCAR_WHEEL_RIGHT,"R"]]),"wheel"),this.appendDummyInput().appendField(ge.Msg.MIXLY_MICROBIT_Direction).appendField(new ge.FieldDropdown([[ge.Msg.CLOCKWISE,"CW"],[ge.Msg.ANTI_CLOCKWISE,"CCW"]]),"direction"),this.appendValueInput("speed").setCheck(Number).setAlign(ge.inputs.Align.RIGHT).appendField(ge.Msg.MIXLY_STEPPER_SET_SPEED),this.appendDummyInput().appendField("%"),this.setPreviousStatement(!0,null),this.setNextStatement(!0,null),this.setInputsInline(!0)}},Fl={init:function(){this.setColour(jr),this.appendDummyInput().appendField(ge.Msg.MOTOR_DC).appendField(new ge.FieldDropdown([[ge.Msg.MIXLYCAR_WHEEL_LEFT,"L"],[ge.Msg.MIXLYCAR_WHEEL_RIGHT,"R"]]),"wheel"),this.appendDummyInput().appendField(ge.Msg.MIXLY_STOP).appendField(new ge.FieldDropdown([[ge.Msg.MOTOR_P,"P"],[ge.Msg.MOTOR_N,"N"]]),"direction"),this.setPreviousStatement(!0,null),this.setNextStatement(!0,null),this.setInputsInline(!0)}},Pl={init:function(){this.setColour(jr),this.appendDummyInput().appendField(ge.Msg.MIXLY_MIXBOT_MOTOR_STATUS),this.setOutput(!0),this.setInputsInline(!0),this.setTooltip(ge.Msg.MIXLY_MIXBOT_MOTOR_STATUS_TOOLTIP)}},vl={init:function(){this.setColour(jr),this.appendDummyInput().appendField(ge.Msg.MIXBOT).appendField(new ge.FieldDropdown([[ge.Msg.blockpy_forward,"F"],[ge.Msg.blockpy_backward,"B"],[ge.Msg.blockpy_left,"L"],[ge.Msg.blockpy_right,"R"]]),"VAR"),this.appendDummyInput().appendField(ge.Msg.MIXLY_MICROBIT_PY_STORAGE_MODE).appendField(new ge.FieldDropdown([[ge.Msg.MIXLY_MICROBIT_JS_BLE_POWER,"PWR"],[ge.Msg.MIXLY_SPEED,"SPEED"],[ge.Msg.MIXLY_MIXBOT_MOTOR_TURNS,"TURNS"]]),"mode"),this.appendValueInput("speed").setCheck(Number).setAlign(ge.inputs.Align.RIGHT).appendField(ge.Msg.MIXLY_PARAMS),this.setPreviousStatement(!0,null),this.setNextStatement(!0,null),this.setInputsInline(!0),this.setTooltip(ge.Msg.MIXLY_MIXBOT_MOVE_TOOLTIP)}},Yl={init:function(){this.setColour(jr),this.appendDummyInput().appendField(ge.Msg.MIXBOT).appendField(new ge.FieldDropdown([[ge.Msg.MOTOR_P,"P"],[ge.Msg.MOTOR_N,"N"]]),"VAR"),this.setPreviousStatement(!0,null),this.setNextStatement(!0,null),this.setInputsInline(!0)}},Xl={init:function(){this.setColour(jr),this.appendDummyInput().appendField(ge.Msg.MIXBOT).appendField(ge.Msg.MIXLY_MOTOR).appendField(new ge.FieldDropdown([[ge.Msg.TEXT_TRIM_LEFT,"1"],[ge.Msg.TEXT_TRIM_RIGHT,"2"],[ge.Msg.TEXT_TRIM_BOTH,"0"]]),"wheel"),this.appendDummyInput().appendField(ge.Msg.MIXLY_MICROBIT_PY_STORAGE_MODE).appendField(new ge.FieldDropdown([[ge.Msg.MIXLY_MICROBIT_JS_BLE_POWER,"PWR"],[ge.Msg.MIXLY_SPEED,"SPEED"],[ge.Msg.MIXLY_MIXBOT_MOTOR_TURNS,"TURNS"]]),"mode"),this.appendValueInput("speed").setCheck(Number).setAlign(ge.inputs.Align.RIGHT).appendField(ge.Msg.MIXLY_PARAMS),this.setPreviousStatement(!0,null),this.setNextStatement(!0,null),this.setInputsInline(!0),this.setTooltip(ge.Msg.MIXLY_MIXBOT_MOVE_TOOLTIP)}},yl={init:function(){this.setColour(jr),this.appendDummyInput().appendField(ge.Msg.MIXLY_MIXBOT_BUZZER),this.appendDummyInput().appendField(new ge.FieldDropdown([[ge.Msg.MIXLY_MICROBIT_PY_COMMUNICATE_ON,"0"],[ge.Msg.MIXLY_MICROBIT_PY_COMMUNICATE_OFF,"1"]]),"on_off"),this.setPreviousStatement(!0),this.setNextStatement(!0),this.setInputsInline(!0)}},bl={init:function(){this.setColour(jr),this.appendDummyInput().appendField(ge.Msg.BITBOT).appendField(new ge.FieldDropdown([[ge.Msg.blockpy_forward,"F"],[ge.Msg.blockpy_backward,"B"],[ge.Msg.blockpy_left,"L"],[ge.Msg.blockpy_right,"R"]]),"VAR"),this.appendValueInput("speed").setCheck(Number).setAlign(ge.inputs.Align.RIGHT).appendField(ge.Msg.MIXLY_SPEED),this.appendDummyInput("").appendField("%"),this.setPreviousStatement(!0,null),this.setNextStatement(!0,null),this.setInputsInline(!0)}},xl={init:function(){this.setColour(jr),this.appendDummyInput().appendField(ge.Msg.BITBOT).appendField(new ge.FieldDropdown([[ge.Msg.MOTOR_P,"P"],[ge.Msg.MOTOR_N,"N"]]),"VAR"),this.setPreviousStatement(!0,null),this.setNextStatement(!0,null),this.setInputsInline(!0)}},Vl={init:function(){this.setColour(jr),this.appendDummyInput().appendField(ge.Msg.BITBOT).appendField(ge.Msg.MIXLY_MOTOR).appendField(new ge.FieldDropdown([[ge.Msg.TEXT_TRIM_LEFT,"0"],[ge.Msg.TEXT_TRIM_RIGHT,"1"]]),"wheel"),this.appendDummyInput().appendField(ge.Msg.MIXLY_MICROBIT_Direction).appendField(new ge.FieldDropdown([[ge.Msg.CLOCKWISE,"CW"],[ge.Msg.ANTI_CLOCKWISE,"CCW"],[ge.Msg.MOTOR_P,"P"],[ge.Msg.MOTOR_N,"N"]]),"direction"),this.appendValueInput("speed").setCheck(Number).setAlign(ge.inputs.Align.RIGHT).appendField(ge.Msg.MIXLY_SPEED),this.appendDummyInput("").appendField("%"),this.setPreviousStatement(!0,null),this.setNextStatement(!0,null),this.setInputsInline(!0)}},Bl={init:function(){this.setColour(jr),this.appendValueInput("bright").appendField(ge.Msg.MIXLY_MIXBOT_SOUND_SET_LOUDNESS),this.appendDummyInput().appendField("%"),this.setPreviousStatement(!0,null),this.setNextStatement(!0,null),this.setInputsInline(!0),this.setTooltip(ge.Msg.MIXLY_ESP32_LED_SETONOFF)}},Gl={init:function(){this.setColour(jr),this.appendDummyInput().appendField(ge.Msg.MIXLY_MIXBOT_SOUND_LOUDNESS+"(%)"),this.setOutput(!0),this.setInputsInline(!0),this.setTooltip(ge.Msg.MIXLY_ESP32_LED_GETONOFF)}},Ul={init:function(){this.setColour(jr),this.appendValueInput("bright").appendField(ge.Msg.MIXLY_SETTING+ge.Msg.MIXLY_MIXBOT_BUZZER+ge.Msg.MIXLY_MP3_VOL),this.appendDummyInput().appendField("%"),this.setPreviousStatement(!0,null),this.setNextStatement(!0,null),this.setInputsInline(!0),this.setTooltip(ge.Msg.MIXLY_ESP32_LED_SETONOFF)}},wl={init:function(){this.setColour(jr),this.appendDummyInput().appendField(ge.Msg.MIXLY_GET+ge.Msg.MIXLY_MIXBOT_BUZZER+ge.Msg.MIXLY_MP3_VOL+"(%)"),this.setOutput(!0),this.setInputsInline(!0),this.setTooltip(ge.Msg.MIXLY_ESP32_LED_GETONOFF)}},kl={init:function(){this.setColour(jr),this.appendValueInput("PATH").appendField(ge.Msg.MIXLY_RECORD_AUDIO).appendField(ge.Msg.MIXLY_MICROBIT_PY_STORAGE_THE_PATH),this.appendValueInput("TIME").setCheck(Number).appendField(ge.Msg.MIXLY_GET_PRESSES_TIME),this.setPreviousStatement(!0),this.setNextStatement(!0),this.setInputsInline(!0)}},Hl={init:function(){this.setColour(jr),this.appendValueInput("PATH").appendField(ge.Msg.MIXLY_PLAY_AUDIO).appendField(ge.Msg.MIXLY_MICROBIT_PY_STORAGE_THE_PATH),this.setPreviousStatement(!0),this.setNextStatement(!0),this.setInputsInline(!0)}},Wl={init:function(){this.setColour(jr),this.appendValueInput("PATH").appendField(ge.Msg.MIXLY_PLAY_ONLINE_AUDIO).appendField("URL"),this.setPreviousStatement(!0),this.setNextStatement(!0),this.setInputsInline(!0)}},Kl={init:function(){this.setColour(jr),this.appendDummyInput().appendField(ge.Msg.MIXLY_TONE),this.appendValueInput("pitch").setCheck(Number).appendField(ge.Msg.MIXLY_FREQUENCY),this.setInputsInline(!0),this.setPreviousStatement(!0),this.setNextStatement(!0),this.setTooltip(ge.Msg.MIXLY_TOOLTIP_BLOCKGROUP_TONE)}},Jl={init:function(){this.setColour(jr),this.appendDummyInput().appendField(ge.Msg.MIXLY_NOTONE),this.setInputsInline(!0),this.setPreviousStatement(!0),this.setNextStatement(!0)}},ql={init:function(){this.setColour(jr),this.appendDummyInput().appendField(ge.Msg.LISTS_SET_INDEX_SET+ge.Msg.ME_GO_MOTOR_EXTERN).appendField(ge.Msg.PIN_NUMBERING);if("micropython:esp32c2:mixgo_mini"===Ce.Boards.getSelectedBoardKey())this.appendDummyInput().appendField(new ge.FieldDropdown([["1","1"],["2","2"]]),"index");else this.appendDummyInput().appendField(new ge.FieldDropdown([["1","1"],["2","2"],["3","3"],["4","4"]]),"index");this.appendValueInput("duty").setCheck(Number).setAlign(ge.inputs.Align.RIGHT).appendField(ge.Msg.blynk_IOT_IR_POWER+ge.Msg.MIXLY_PINMODEOUT),this.appendDummyInput().appendField("%"),this.setPreviousStatement(!0,null),this.setNextStatement(!0,null),this.setInputsInline(!0),this.setTooltip()}},Ql={init:function(){this.setColour(jr),this.appendDummyInput().appendField(ge.Msg.MIXLY_GET+ge.Msg.ME_GO_MOTOR_EXTERN).appendField(ge.Msg.PIN_NUMBERING);if("micropython:esp32c2:mixgo_mini"===Ce.Boards.getSelectedBoardKey())this.appendDummyInput().appendField(new ge.FieldDropdown([["1","1"],["2","2"]]),"index");else this.appendDummyInput().appendField(new ge.FieldDropdown([["1","1"],["2","2"],["3","3"],["4","4"]]),"index");this.appendDummyInput().setAlign(ge.inputs.Align.RIGHT).appendField(ge.Msg.blynk_IOT_IR_POWER+ge.Msg.MIXLY_PINMODEOUT+ge.Msg.MIXLY_DUTY_RATIO),this.setOutput(!0,Number),this.setInputsInline(!0)}},zl={init:function(){this.setColour(jr),this.appendDummyInput().appendField(ge.Msg.LISTS_SET_INDEX_SET+ge.Msg.ME_GO_MOTOR_EXTERN).appendField(ge.Msg.MIXLY_ALL+ge.Msg.PIN_NUMBERING),this.appendValueInput("duty").setCheck(Number).setAlign(ge.ALIGN_RIGHT).appendField(ge.Msg.blynk_IOT_IR_POWER+ge.Msg.MIXLY_PINMODEOUT+ge.Msg.MIXLY_FREQUENCY),this.appendDummyInput().appendField("Hz"),this.setPreviousStatement(!0,null),this.setNextStatement(!0,null),this.setInputsInline(!0),this.setTooltip(ge.Msg.MIXLY_MIXBOT_MOTOR_EXTERN_TOOLTIP)}},jl={init:function(){this.setColour(jr),this.appendDummyInput().appendField(ge.Msg.ANALOG+ge.Msg.MIXLY_KEYBOARD_INPUT),this.appendValueInput("special"),this.appendValueInput("general"),this.appendDummyInput().appendField(ge.Msg.MIXLY_RELEASE).appendField(new ge.FieldDropdown([[ge.Msg.MICROPYTHON_DISPLAY_YES,"True"],[ge.Msg.MICROPYTHON_DISPLAY_NO,"False"]]),"release"),this.setPreviousStatement(!0),this.setNextStatement(!0),this.setInputsInline(!0),this.setTooltip(ge.Msg.ANALOG+ge.Msg.MIXLY_KEYBOARD_INPUT)}},$l={init:function(){this.setColour(jr),this.appendDummyInput("").appendField(ge.Msg.MIXLY_SPECIAL_KEY).appendField(new ge.FieldDropdown([[ge.Msg.MIXLY_SPECIAL_KEY0,"0x00"],[ge.Msg.MIXLY_SPECIAL_KEY1,"0x01"],[ge.Msg.MIXLY_SPECIAL_KEY2,"0x02"],[ge.Msg.MIXLY_SPECIAL_KEY4,"0x04"],[ge.Msg.MIXLY_SPECIAL_KEY8,"0x08"],[ge.Msg.MIXLY_SPECIAL_KEY16,"0x10"],[ge.Msg.MIXLY_SPECIAL_KEY32,"0x20"],[ge.Msg.MIXLY_SPECIAL_KEY64,"0x40"],[ge.Msg.MIXLY_SPECIAL_KEY128,"0x80"]]),"op"),this.setOutput(!0)}},Zl={init:function(){this.setColour(jr),this.appendDummyInput("").appendField(ge.Msg.MIXLY_GENERAL_KEY).appendField(new ge.FieldDropdown([[ge.Msg.MIXLY_SPECIAL_KEY0,"0x00"],["A","0x04"],["B","0x05"],["C","0x06"],["D","0x07"],["E","0x08"],["F","0x09"],["G","0x0A"],["H","0x0B"],["I","0x0C"],["J","0x0D"],["K","0x0E"],["L","0x0F"],["M","0x10"],["N","0x11"],["O","0x12"],["P","0x13"],["Q","0x14"],["R","0x15"],["S","0x16"],["T","0x17"],["U","0x18"],["V","0x19"],["W","0x1A"],["X","0x1B"],["Y","0x1C"],["Z","0x1D"],["1 !","0x1E"],["2 @","0x1F"],["3 #","0x20"],["4 $","0x21"],["5 %","0x22"],["6 ^","0x23"],["7 &","0x24"],["8 *","0x25"],["9 (","0x26"],["0 )","0x27"],["ENTER","0x28"],["ESC","0x29"],["BACKSPACE","0x2A"],["TAB","0x2B"],["SPACE","0x2C"],["- _","0x2D"],["= +","0x2E"],["[ {","0x2F"],["] }","0x30"],["\\ |","0x31"],["; :","0x33"],["' \"","0x34"],["` ~","0x35"],[", <","0x36"],[". >","0x37"],["/ ?","0x38"],["CAPS_LOCK","0x39"],["F1","0x3A"],["F2","0x3B"],["F3","0x3C"],["F4","0x3D"],["F5","0x3E"],["F6","0x3F"],["F7","0x40"],["F8","0x41"],["F9","0x42"],["F10","0x43"],["F11","0x44"],["F12","0x45"],["PRINTSCREEN","0x46"],["SCROLL_LOCK","0x47"],["PAUSE","0x48"],["INSERT","0x49"],["HOME","0x4A"],["PAGE_UP","0x4B"],["DELETE","0x4C"],["END","0x4D"],["PAGE_DOWN","0x4E"],["RIGHT","0x4F"],["LEFT","0x50"],["DOWN","0x51"],["UP","0x52"],["NUM_LOCK","0x53"],["/","0x54"],["*","0x55"],["-","0x56"],["+","0x57"],["ENTER","0x58"],["1","0x59"],["2","0x5A"],["3","0x5B"],["4","0x5C"],["5","0x5D"],["6","0x5E"],["7","0x5F"],["8","0x60"],["9","0x61"],["0","0x62"],[".","0x63"]]),"op"),this.setOutput(!0)}},ed={init:function(){this.setColour(jr),this.itemCount_=2,this.updateShape_(),this.setOutput(!0),this.setMutator(new ge.icons.MutatorIcon(["generalkey_create_with_item"],this)),this.setTooltip(ge.Msg.GENERALKEY_TUPLE_CREATE_TOOLTIP)},mutationToDom:function(){var e=document.createElement("mutation");return e.setAttribute("items",this.itemCount_),e},domToMutation:function(e){this.itemCount_=parseInt(e.getAttribute("items"),10),this.updateShape_()},decompose:function(e){var t=e.newBlock("generalkey_container");t.initSvg();for(var i=t.getInput("STACK").connection,n=0;nnew Array(32).fill(0)))},mm={init:function(){this.jsonInit({colour:om,args0:[{name:"image",options:[["HEART","HEART"],["HEART_SMALL","HEART_SMALL"],["HAPPY","HAPPY"],["SAD","SAD"],["SMILE","SMILE"],["SILLY","SILLY"],["FABULOUS","FABULOUS"],["SURPRISED","SURPRISED"],["ASLEEP","ASLEEP"],["ANGRY","ANGRY"],["CONFUSED","CONFUSED"],["NO","NO"],["YES","YES"]],type:"field_dropdown"}],output:["esp32_image","List"],helpUrl:"https://microbit-micropython.readthedocs.io/en/latest/image.html#attributes",tooltip:ge.Msg.MIXLY_MICROBIT_Built_in_image1,message0:ge.Msg.MIXLY_MICROBIT_Built_in_image})}},Em={init:function(){this.setColour(om),this.appendDummyInput("").appendField(ge.Msg.MIXLY_MICROBIT_Built_in_image1).appendField(new ge.FieldDropdown(Ce.Profile.default.builtinimg),"image"),this.setOutput(!0,["esp32_image","List"])}},Om={init:function(){this.setColour(om),this.setOutput(!0,"esp32_image"),this.appendValueInput("A").appendField(ge.Msg.MICROBIT_DISPLAY_MERGE_SHAPE),this.appendValueInput("B").appendField(new ge.FieldDropdown(Om.OPERATORS),"OP"),this.setInputsInline(!0);var e=this;this.setTooltip((function(){var t=e.getFieldValue("OP");return{"+":ge.Msg.MIXLY_MICROBIT_image_add,"-":ge.Msg.MIXLY_MICROBIT_image_reduce}[t]}))},OPERATORS:[[ge.Msg.MICROBIT_DISPLAY_UNION,"add"],[ge.Msg.MICROBIT_DISPLAY_MINUS,"sub"]]},Rm={init:function(){this.setColour(om),this.appendValueInput("A").setCheck("esp32_image").appendField(ge.Msg.MIXLY_MICROBIT_Invert_image1),this.setInputsInline(!0),this.setOutput(!0,"esp32_image")}},cm={init:function(){this.setColour(om),this.setInputsInline(!0),this.setPreviousStatement(!0,null),this.setNextStatement(!0,null),this.appendDummyInput("").appendField(ge.Msg.DISPLAY_IMAGE_LET),this.appendDummyInput("").appendField(ge.Msg.DISPLAY_IMAGE_LET2).appendField(new ge.FieldDropdown(cm.OPERATORS),"OP"),this.appendValueInput("val").appendField(ge.Msg.DISPLAY_IMAGE_SHIFT).setCheck(Number),this.appendDummyInput("").appendField(ge.Msg.DISPLAY_IMAGE_UNIT);Ce.Boards.getSelectedBoardKey();"Python ESP32-S3"===Ce.JSFuncs.getPlatform()&&this.appendValueInput("boolean").appendField(ge.Msg.MIXLY_synchronize+":");var e=this;this.setTooltip((function(){var t=e.getFieldValue("OP"),i=ge.Msg.DISPLAY_IMAGE_LET,n=ge.Msg.DISPLAY_IMAGE_LET2,s=ge.Msg.DISPLAY_IMAGE_LET3;return i+n+{shift_up:ge.Msg.MIXLY_UP,shift_down:ge.Msg.MIXLY_DOWN,shift_left:ge.Msg.MIXLY_LEFT,shift_right:ge.Msg.MIXLY_RIGHT}[t]+s}))},OPERATORS:[[ge.Msg.MIXLY_UP,"shift_up"],[ge.Msg.MIXLY_DOWN,"shift_down"],[ge.Msg.MIXLY_LEFT,"shift_left"],[ge.Msg.MIXLY_RIGHT,"shift_right"]]},gm={init:function(){this.setColour(om),this.appendValueInput("x").setCheck(Number).appendField(ge.Msg.MIXLY_MICROBIT_JS_MONITOR_GET_POINT_X),this.appendValueInput("y").setCheck(Number).appendField(ge.Msg.MIXLY_MICROBIT_JS_MONITOR_PLOT_POINT_Y),this.appendDummyInput().appendField(ge.Msg.MIXLY_ESP32_JS_MONITOR_GET_POINT),this.setInputsInline(!0),this.setOutput(!0,Number),this.setTooltip(ge.Msg.MIXLY_ESP32_JS_MONITOR_BRIGHTNESS)}},Cm={init:function(){this.setColour(om),this.appendValueInput("x").setCheck(Number).appendField(ge.Msg.MIXLY_ESP32_JS_MONITOR_SET_BRIGHTNESS).appendField(ge.Msg.MIXLY_MICROBIT_JS_MONITOR_GET_POINT_X),this.appendValueInput("y").setCheck(Number).appendField(ge.Msg.MIXLY_MICROBIT_JS_MONITOR_PLOT_POINT_Y),this.appendValueInput("STAT").setCheck([Number,Boolean]),this.setPreviousStatement(!0,null),this.setNextStatement(!0,null),this.setInputsInline(!0),this.setTooltip(ge.Msg.MIXLY_ESP32_DISPLAY_SETPIXEL)}},Sm={init:function(){this.setColour(om),this.appendDummyInput().appendField(ge.Msg.MIXLY_ESP32_JS_MONITOR_GET_SCREEN_BRIGHTNESS),this.setInputsInline(!0),this.setOutput(!0,Number),this.setTooltip(ge.Msg.MIXLY_ESP32_JS_MONITOR_GET_SCREEN_BRIGHTNESS)}},Am={init:function(){this.setColour(om),this.appendValueInput("x").setCheck(Number).appendField(ge.Msg.MIXLY_ESP32_JS_MONITOR_SET_SCREEN_BRIGHTNESS),this.setPreviousStatement(!0,null),this.setNextStatement(!0,null),this.setInputsInline(!0),this.setTooltip(ge.Msg.MIXLY_ESP32_JS_MONITOR_SET_SCREEN_BRIGHTNESS+" 0.0-1.0")}},Lm={init:function(){this.setColour(om),this.appendDummyInput().appendField(ge.Msg.MIXLY_MICROBIT_Clear_display);Ce.Boards.getSelectedBoardKey();"Python ESP32-S3"===Ce.JSFuncs.getPlatform()&&this.appendValueInput("boolean").appendField(ge.Msg.MIXLY_synchronize+":"),this.setPreviousStatement(!0,null),this.setNextStatement(!0,null),this.setInputsInline(!0),this.setTooltip(ge.Msg.MIXLY_MICROBIT_Clear_display)}},Nm={init:function(){this.setColour(om),this.appendDummyInput().appendField(ge.Msg.MIXLY_SHOW+ge.Msg.MIXLY_DISPLAY_MATRIX_WRITE_NOW),this.setPreviousStatement(!0,null),this.setNextStatement(!0,null),this.setInputsInline(!0)}},Dm={init:function(){this.appendDummyInput("").appendField(ge.Msg.MIXLY_MICROBIT_JS_MONITOR_CREATE_IMAGE);for(let e=0;e<5;e++){let t=this.appendDummyInput();for(let i=0;i<8;i++)t.appendField(new ge.FieldColour("#000",null,{colourOptions:["#f00","#000"],columns:2}),e+"-"+i)}this.appendDummyInput().appendField(`(${ge.Msg.MIXLY_DEPRECATED})`),this.setOutput(!0),this.setColour(om),this.setTooltip(ge.Msg.MIXLY_MICROBIT_Create_image1),this.setWarningText(ge.Msg.MIXLY_DEPRECATED_WARNING_TEXT)}},fm={init:function(){this.appendDummyInput("").appendField(ge.Msg.MIXLY_MICROBIT_JS_MONITOR_CREATE_IMAGE),this.appendDummyInput("").setAlign(ge.inputs.Align.CENTRE).appendField(new ge.FieldBitmap(fm.BITMAP,null,{filledColor:"#000",emptyColor:"#5ba5a5",bgColor:"#e5e7f1"}),"BITMAP"),this.setOutput(!0),this.setColour(om),this.setTooltip(ge.Msg.MIXLY_MICROBIT_Create_image1)},BITMAP:Array.from({length:5},(()=>new Array(8).fill(0)))},Fm={init:function(){this.appendDummyInput("").appendField(ge.Msg.MIXLY_MICROBIT_JS_MONITOR_CREATE_IMAGE);for(let e=0;e<8;e++){let t=this.appendDummyInput();for(let i=0;i<12;i++)t.appendField(new ge.FieldColour("#000",null,{colourOptions:["#f00","#000"],columns:2}),e+"-"+i)}this.appendDummyInput().appendField(`(${ge.Msg.MIXLY_DEPRECATED})`),this.setOutput(!0),this.setColour(om),this.setTooltip(ge.Msg.MIXLY_MICROBIT_Create_image1),this.setWarningText(ge.Msg.MIXLY_DEPRECATED_WARNING_TEXT)}},Pm={init:function(){this.appendDummyInput("").appendField(ge.Msg.MIXLY_MICROBIT_JS_MONITOR_CREATE_IMAGE),this.appendDummyInput("").setAlign(ge.inputs.Align.CENTRE).appendField(new ge.FieldBitmap(Pm.BITMAP,null,{filledColor:"#000",emptyColor:"#5ba5a5",bgColor:"#e5e7f1"}),"BITMAP"),this.setOutput(!0),this.setColour(om),this.setTooltip(ge.Msg.MIXLY_MICROBIT_Create_image1)},BITMAP:Array.from({length:8},(()=>new Array(12).fill(0)))},vm={init:function(){this.appendDummyInput("").appendField(ge.Msg.MIXLY_MICROBIT_JS_MONITOR_CREATE_IMAGE);for(let e=0;e<8;e++){let t=this.appendDummyInput();for(let i=0;i<16;i++)t.appendField(new ge.FieldColour("#000",null,{colourOptions:["#f00","#000"],columns:2}),e+"-"+i)}this.appendDummyInput().appendField(`(${ge.Msg.MIXLY_DEPRECATED})`),this.setOutput(!0,"esp32_image"),this.setColour(om),this.setTooltip(ge.Msg.MIXLY_MICROBIT_Create_image1),this.setWarningText(ge.Msg.MIXLY_DEPRECATED_WARNING_TEXT)}},Ym={init:function(){this.appendDummyInput("").appendField(ge.Msg.MIXLY_MICROBIT_JS_MONITOR_CREATE_IMAGE),this.appendDummyInput("").setAlign(ge.inputs.Align.CENTRE).appendField(new ge.FieldBitmap(Ym.BITMAP,null,{filledColor:"#000",emptyColor:"#5ba5a5",bgColor:"#e5e7f1"}),"BITMAP"),this.setOutput(!0),this.setColour(om),this.setTooltip(ge.Msg.MIXLY_MICROBIT_Create_image1)},BITMAP:Array.from({length:8},(()=>new Array(16).fill(0)))},Xm={init:function(){this.setColour(om),this.appendDummyInput().appendField(ge.Msg.OLED_SET_FONT).appendField(new ge.FieldDropdown(Xm.OPERATORS),"OP"),this.setPreviousStatement(!0,null),this.setNextStatement(!0,null),this.setInputsInline(!0)},OPERATORS:[["4x5"+ge.Msg.MIXGO_ME_DISPLAY_HORIZONTAL,"'4x5'"],["5x5"+ge.Msg.MIXGO_ME_DISPLAY_HORIZONTAL,"'5x5'"],["5x8"+ge.Msg.MIXGO_ME_DISPLAY_VERTICAL,"'5x8'"]]},ym={init:function(){this.setColour(om),this.appendValueInput("data").appendField(ge.Msg.OLED_BITMAP),this.setPreviousStatement(!0,null),this.setNextStatement(!0,null),this.setInputsInline(!0),this.setTooltip(ge.Msg.OLED_BITMAP_OR_STRING)}},bm={init:function(){this.setColour(om),this.appendValueInput("data").appendField(ge.Msg.OLED_BITMAP),this.appendValueInput("x").setCheck(Number).appendField("x"),this.appendValueInput("y").setCheck(Number).appendField("y"),this.appendValueInput("size").setCheck(Number).appendField(ge.Msg.MIXLY_MICROBIT_JS_NUMBER),this.setPreviousStatement(!0,null),this.setNextStatement(!0,null),this.setInputsInline(!0),this.setTooltip(ge.Msg.OLED_BITMAP_OR_STRING)}},xm={init:function(){this.setColour(om),this.appendValueInput("data").setCheck([String,"esp32_image","List","Tuple"]).appendField(ge.Msg.OLED_DRAWSTR),this.setPreviousStatement(!0,null),this.setNextStatement(!0,null),this.setInputsInline(!0),this.setTooltip(ge.Msg.OLED_BITMAP_OR_STRING)}},Vm={init:function(){this.setColour(om),this.appendValueInput("data").appendField(ge.Msg.OLED_DRAWSTR),this.appendValueInput("x").setCheck(Number).appendField("x"),this.appendValueInput("y").setCheck(Number).appendField("y"),this.appendValueInput("size").setCheck(Number).appendField(ge.Msg.MIXLY_TURTLE_WRITE_FONT_NUM),this.appendValueInput("space").setCheck(Number).appendField(ge.Msg.MICROPYTHON_DISPLAY_FONT_SPACE),this.appendDummyInput("").appendField(ge.Msg.TEXT_CENTER).appendField(new ge.FieldDropdown([[ge.Msg.MICROPYTHON_DISPLAY_YES,"True"],[ge.Msg.MICROPYTHON_DISPLAY_NO,"False"]]),"center"),this.setPreviousStatement(!0,null),this.setNextStatement(!0,null),this.setInputsInline(!0),this.setTooltip(ge.Msg.MIXLY_ESP32_SHOW_IMAGE_OR_STRING_DELAY)}},Bm={init:function(){this.setColour(om),this.appendValueInput("data").appendField(ge.Msg.MIXLY_MICROBIT_JS_MONITOR_SCROLL_STRING),this.appendValueInput("y").setCheck(Number).appendField("y"),this.appendValueInput("size").setCheck(Number).appendField(ge.Msg.MIXLY_TURTLE_WRITE_FONT_NUM),this.appendValueInput("space").setCheck(Number).appendField(ge.Msg.MICROPYTHON_DISPLAY_FONT_SPACE),this.appendValueInput("time").setCheck(Number).appendField(ge.Msg.MIXLY_MICROBIT_JS_MONITOR_SCROLL_INTERVAL),this.setPreviousStatement(!0,null),this.setNextStatement(!0,null),this.setInputsInline(!0),this.setTooltip(ge.Msg.MIXLY_ESP32_SCROLL_IMAGE_OR_STRING_DELAY)}},Gm={init:function(){this.setColour(om),this.appendValueInput("data").appendField(ge.Msg.MIXLY_ESP32_MONITOR_SHOW_FRAME),this.appendValueInput("size").setCheck(Number).appendField(ge.Msg.MIXLY_TURTLE_WRITE_FONT_NUM),this.appendValueInput("time").setCheck(Number).appendField(ge.Msg.MIXLY_MICROBIT_JS_MONITOR_SCROLL_INTERVAL),this.setPreviousStatement(!0,null),this.setNextStatement(!0,null),this.setInputsInline(!0)}},Um={init:function(){this.setColour(om),this.appendValueInput("x").setCheck(Number).appendField(ge.Msg.MIXLY_ESP32_JS_MONITOR_SET_BRIGHTNESS).appendField(ge.Msg.MIXLY_MICROBIT_JS_MONITOR_GET_POINT_X),this.appendValueInput("y").setCheck(Number).appendField(ge.Msg.MIXLY_MICROBIT_JS_MONITOR_PLOT_POINT_Y),this.appendValueInput("STAT").setCheck([Number,Boolean]),this.setPreviousStatement(!0,null),this.setNextStatement(!0,null),this.setInputsInline(!0),this.setTooltip(ge.Msg.MIXLY_ESP32_DISPLAY_SETPIXEL)}},wm={init:function(){this.jsonInit({colour:om,args0:[{name:"state",options:[[ge.Msg.MPYTHON_DISPLAY_MODE_1,"1"],[ge.Msg.MPYTHON_DISPLAY_MODE_0,"0"]],type:"field_dropdown"},{name:"shape",options:[[ge.Msg.MPYTHON_DISPLAY_HOLLOW,"rect"],[ge.Msg.MPYTHON_DISPLAY_SOLID,"fill_rect"]],type:"field_dropdown"},{type:"input_dummy"},{name:"x",type:"input_value"},{name:"y",type:"input_value"},{name:"w",type:"input_value"},{name:"h",type:"input_value"}],inputsInline:!0,helpUrl:ge.Msg.mpython_HELPURL,tooltip:ge.Msg.MPYTHON_DISPLAY_SHAPE_RECT_TOOLTIP,message0:ge.Msg.MPYTHON_DISPLAY_SHAPE_RECT_MESSAGE0,nextStatement:null,previousStatement:null})}},km={init:function(){this.jsonInit({colour:om,args0:[{name:"state",options:[[ge.Msg.MPYTHON_DISPLAY_MODE_1,"1"],[ge.Msg.MPYTHON_DISPLAY_MODE_0,"0"]],type:"field_dropdown"},{name:"dir_h_v",options:[[ge.Msg.mpython_vertical,"0"],[ge.Msg.mpython_horizontal,"1"]],type:"field_dropdown"},{type:"input_dummy"},{name:"x",type:"input_value"},{name:"y",type:"input_value"},{name:"length",type:"input_value"}],inputsInline:!0,helpUrl:ge.Msg.mpython_HELPURL,tooltip:ge.Msg.MPYTHON_DISPLAY_HVLINE_TOOLTIP,message0:ge.Msg.MPYTHON_DISPLAY_HVLINE_MESSAGE0,nextStatement:null,previousStatement:null})}},Hm={init:function(){this.jsonInit({colour:om,args0:[{name:"state",options:[[ge.Msg.mpython_display_hline_1,"1"],[ge.Msg.mpython_display_hline_0,"0"]],type:"field_dropdown"},{type:"input_dummy"},{name:"x1",type:"input_value"},{name:"y1",type:"input_value"},{name:"x2",type:"input_value"},{name:"y2",type:"input_value"}],inputsInline:!0,helpUrl:ge.Msg.mpython_HELPURL,tooltip:ge.Msg.mpython_display_line_TOOLTIP,message0:ge.Msg.mpython_display_line_MESSAGE0,nextStatement:null,previousStatement:null})}},Wm={init:function(){this.appendDummyInput().appendField(ge.Msg.MIXLY_MICROBIT_Built_in_image1).appendField(new ge.FieldDropdown(Wm.IMAGES),"path"),this.setColour(om),this.setOutput(!0)},IMAGES:[["Heart","expression_picture.Heart"],["Angry","expression_picture.Angry"],["Bored","expression_picture.Bored"],["Confused","expression_picture.Confused"],["Happy","expression_picture.Happy"],["Paper","expression_picture.Paper"],["Rock","expression_picture.Rock"],["Sad","expression_picture.Sad"],["Scissors","expression_picture.Scissors"],["Silly","expression_picture.Silly"],["Sleep","expression_picture.Sleep"],["Small_heart","expression_picture.Small_heart"],["Small_paper","expression_picture.Small_paper"],["Small_rock","expression_picture.Small_rock"],["Small_scissors","expression_picture.Small_scissors"],["Smile","expression_picture.Smile"],["Surprise","expression_picture.Surprise"],["Wonderful","expression_picture.Wonderful"],["Eyes_Angry","eye_picture.Eyes_Angry"],["Awake","eye_picture.Awake"],["Black_eye","eye_picture.Black_eye"],["Bottom_left","eye_picture.Bottom_left"],["Bottom_right","eye_picture.Bottom_right"],["Crazy_1","eye_picture.Crazy_1"],["Crazy_2","eye_picture.Crazy_2"],["Disappointed","eye_picture.Disappointed"],["Dizzy","eye_picture.Dizzy"],["Down","eye_picture.Down"],["Evil","eye_picture.Evil"],["Hurt","eye_picture.Hurt"],["Knocked_out","eye_picture.Knocked_out"],["Love","eye_picture.Love"],["Middle_left","eye_picture.Middle_left"],["Middle_right","eye_picture.Middle_right"],["Neutral","eye_picture.Neutral"],["Nuclear","eye_picture.Nuclear"],["Pinch_left","eye_picture.Pinch_left"],["Pinch_middle","eye_picture.Pinch_middle"],["Pinch_right","eye_picture.Pinch_right"],["Tear","eye_picture.Tear"],["Tired_left","eye_picture.Tired_left"],["Tired_middle","eye_picture.Tired_middle"],["Tired_right","eye_picture.Tired_right"],["Toxic","eye_picture.Toxic"],["Up","eye_picture.Up"],["Winking","eye_picture.Winking"],["Accept","informatio_picture.Accept"],["Backward","informatio_picture.Backward"],["Decline","informatio_picture.Decline"],["Forward","informatio_picture.Forward"],["Left","informatio_picture.Left"],["No_go","informatio_picture.No_go"],["Question_mark","informatio_picture.Question_mark"],["Right","informatio_picture.Right"],["Stop_1","informatio_picture.Stop_1"],["Stop_2","informatio_picture.Stop_2"],["Thumbs_down","informatio_picture.Thumbs_down"],["Thumbs_up","informatio_picture.Thumbs_up"],["Warning","informatio_picture.Warning"],["Bomb","object_picture.Bomb"],["Boom","object_picture.Boom"],["Fire","object_picture.Fire"],["Flowers","object_picture.Flowers"],["Forest","object_picture.Forest"],["Lightning","object_picture.Lightning"],["Light_off","object_picture.Light_off"],["Light_on","object_picture.Light_on"],["Night","object_picture.Night"],["Pirate","object_picture.Pirate"],["Snow","object_picture.Snow"],["Target","object_picture.Target"],["Bar_0","progres_picture.Bar_0"],["Bar_1","progres_picture.Bar_1"],["Bar_2","progres_picture.Bar_2"],["Bar_3","progres_picture.Bar_3"],["Bar_4","progres_picture.Bar_4"],["Dial_0","progres_picture.Dial_0"],["Dial_1","progres_picture.Dial_1"],["Dial_2","progres_picture.Dial_2"],["Dial_3","progres_picture.Dial_3"],["Dial_4","progres_picture.Dial_4"],["Dots_0","progres_picture.Dots_0"],["Dots_1","progres_picture.Dots_1"],["Dots_2","progres_picture.Dots_2"],["Dots_3","progres_picture.Dots_3"],["Hourglass_0","progres_picture.Hourglass_0"],["Hourglass_1","progres_picture.Hourglass_1"],["Hourglass_2","progres_picture.Hourglass_2"],["Timer_0","progres_picture.Timer_0"],["Timer_1","progres_picture.Timer_1"],["Timer_2","progres_picture.Timer_2"],["Timer_3","progres_picture.Timer_3"],["Timer_4","progres_picture.Timer_4"],["Water_level_0","progres_picture.Water_level_0"],["Water_level_1","progres_picture.Water_level_1"],["Water_level_2","progres_picture.Water_level_2"],["Water_level_3","progres_picture.Water_level_3"],["YES","informatio_picture.YES"],["NO","informatio_picture.NO"]]},Km={init:function(){this.appendDummyInput("").appendField(ge.Msg.MIXLY_MICROBIT_JS_MONITOR_CREATE_IMAGE);for(let e=0;e<5;e++){let t=this.appendDummyInput();for(let i=0;i<5;i++)t.appendField(new ge.FieldColour("#000",null,{colourOptions:["#f00","#000"],columns:2}),e+"-"+i)}this.appendDummyInput().appendField(`(${ge.Msg.MIXLY_DEPRECATED})`),this.setOutput(!0),this.setColour(om),this.setTooltip(ge.Msg.MIXLY_MICROBIT_Create_image1),this.setWarningText(ge.Msg.MIXLY_DEPRECATED_WARNING_TEXT)}},Jm={init:function(){this.appendDummyInput("").appendField(ge.Msg.MIXLY_MICROBIT_JS_MONITOR_CREATE_IMAGE),this.appendDummyInput("").setAlign(ge.inputs.Align.CENTRE).appendField(new ge.FieldBitmap(Jm.BITMAP,null,{filledColor:"#000",emptyColor:"#5ba5a5",bgColor:"#e5e7f1"}),"BITMAP"),this.setOutput(!0),this.setColour(om),this.setTooltip(ge.Msg.MIXLY_MICROBIT_Create_image1)},BITMAP:Array.from({length:5},(()=>new Array(5).fill(0)))},qm={init:function(){this.setColour(om),this.appendDummyInput().appendField(ge.Msg.MIXLY_ESP32_JS_MONITOR_GET_SCREEN_BRIGHTNESS),this.setInputsInline(!0),this.setOutput(!0,Number),this.setTooltip(ge.Msg.MIXLY_ESP32_JS_MONITOR_GET_SCREEN_BRIGHTNESS)}},Qm={init:function(){this.setColour(om),this.appendDummyInput().appendField(ge.Msg.MIXLY_MIXBOT_AMBIENTBRIGHT),this.setInputsInline(!0),this.setOutput(!0,Number)}},zm={init:function(){this.setColour(om),this.appendValueInput("x").setCheck(Number).appendField(ge.Msg.MIXLY_ESP32_JS_MONITOR_SET_SCREEN_BRIGHTNESS),this.setPreviousStatement(!0,null),this.setNextStatement(!0,null),this.setInputsInline(!0),this.setTooltip(ge.Msg.MIXLY_ESP32_JS_MONITOR_SET_SCREEN_BRIGHTNESS+" 0.0-1.0")}},jm={init:function(){this.setColour(om),this.appendDummyInput().appendField(ge.Msg.MIXLY_MIXBOT_SCREEN_ROTATE).appendField(new ge.FieldDropdown(jm.OPERATORS),"OP"),this.setPreviousStatement(!0,null),this.setNextStatement(!0,null),this.setInputsInline(!0)},OPERATORS:[[ge.Msg.mixpy_PL_PIE_SHADOW_N,"0"],[ge.Msg.CLOCKWISE+"90"+ge.Msg.blockpy_setheading_degree,"1"],[ge.Msg.CLOCKWISE+"180"+ge.Msg.blockpy_setheading_degree,"2"],[ge.Msg.CLOCKWISE+"270"+ge.Msg.blockpy_setheading_degree,"3"]]},$m={init:function(){this.appendDummyInput("").appendField(ge.Msg.MIXLY_MICROBIT_JS_MONITOR_CREATE_IMAGE);for(let e=0;e<12;e++){let t=this.appendDummyInput();for(let i=0;i<12;i++)t.appendField(new ge.FieldColour("#000",null,{colourOptions:["#f00","#000"],columns:2}),e+"-"+i)}this.appendDummyInput().appendField(`(${ge.Msg.MIXLY_DEPRECATED})`),this.setOutput(!0),this.setColour(om),this.setTooltip(ge.Msg.MIXLY_MICROBIT_Create_image1),this.setWarningText(ge.Msg.MIXLY_DEPRECATED_WARNING_TEXT)}},Zm={init:function(){this.appendDummyInput("").appendField(ge.Msg.MIXLY_MICROBIT_JS_MONITOR_CREATE_IMAGE),this.appendDummyInput("").setAlign(ge.inputs.Align.CENTRE).appendField(new ge.FieldBitmap(Zm.BITMAP,null,{filledColor:"#000",emptyColor:"#5ba5a5",bgColor:"#e5e7f1"}),"BITMAP"),this.setOutput(!0),this.setColour(om),this.setTooltip(ge.Msg.MIXLY_MICROBIT_Create_image1)},BITMAP:Array.from({length:12},(()=>new Array(12).fill(0)))},eE={init:function(){this.setColour(om),this.appendValueInput("data").appendField(ge.Msg.OLED_BITMAP),this.appendValueInput("x").setCheck(Number).appendField("x"),this.appendValueInput("y").setCheck(Number).appendField("y"),this.appendValueInput("size").setCheck(Number).appendField(ge.Msg.MIXLY_MICROBIT_JS_NUMBER),this.appendValueInput("VAR").appendField(ge.Msg.HTML_COLOUR);Ce.Boards.getSelectedBoardKey();"Python ESP32-S3"===Ce.JSFuncs.getPlatform()&&this.appendValueInput("boolean").appendField(ge.Msg.MIXLY_synchronize+":"),this.setPreviousStatement(!0,null),this.setNextStatement(!0,null),this.setInputsInline(!0)}},tE={init:function(){this.setColour(om),this.appendValueInput("x").setCheck(Number).appendField(ge.Msg.OLED_BITMAP).appendField("x"),this.appendValueInput("y").setCheck(Number).appendField("y"),this.appendValueInput("direct").setCheck(String).appendField(ge.Msg.MIXLY_AipImageClassify_Image+ge.Msg.MIXLY_MICROBIT_PY_STORAGE_THE_PATH),this.setPreviousStatement(!0,null),this.setNextStatement(!0,null),this.setInputsInline(!0)}},iE={init:function(){this.setColour(om),this.appendValueInput("data").appendField(ge.Msg.OLED_DRAWSTR),this.appendValueInput("x").setCheck(Number).appendField("x"),this.appendValueInput("y").setCheck(Number).appendField("y"),this.appendValueInput("size").setCheck(Number).appendField(ge.Msg.MIXLY_TURTLE_WRITE_FONT_NUM),this.appendValueInput("space").setCheck(Number).appendField(ge.Msg.MICROPYTHON_DISPLAY_FONT_SPACE),this.appendDummyInput("").appendField(ge.Msg.TEXT_CENTER).appendField(new ge.FieldDropdown([[ge.Msg.MICROPYTHON_DISPLAY_YES,"True"],[ge.Msg.MICROPYTHON_DISPLAY_NO,"False"]]),"center"),this.appendValueInput("VAR").appendField(ge.Msg.HTML_COLOUR);Ce.Boards.getSelectedBoardKey();"Python ESP32-S3"===Ce.JSFuncs.getPlatform()&&this.appendValueInput("boolean").appendField(ge.Msg.MIXLY_synchronize+":"),this.setPreviousStatement(!0,null),this.setNextStatement(!0,null),this.setInputsInline(!0),this.setTooltip(ge.Msg.MIXLY_ESP32_SHOW_IMAGE_OR_STRING_DELAY)}},nE={init:function(){this.setColour(om),this.appendValueInput("data").appendField(ge.Msg.MIXLY_ESP32_MONITOR_SHOW_FRAME),this.appendValueInput("size").setCheck(Number).appendField(ge.Msg.MIXLY_TURTLE_WRITE_FONT_NUM),this.appendValueInput("time").setCheck(Number).appendField(ge.Msg.MIXLY_MICROBIT_JS_MONITOR_SCROLL_INTERVAL),this.appendValueInput("VAR").appendField(ge.Msg.HTML_COLOUR),this.setPreviousStatement(!0,null),this.setNextStatement(!0,null),this.setInputsInline(!0)}},sE={init:function(){this.jsonInit({colour:om,args0:[{name:"shape",options:[[ge.Msg.MPYTHON_DISPLAY_HOLLOW,"rect"],[ge.Msg.MPYTHON_DISPLAY_SOLID,"fill_rect"]],type:"field_dropdown"},{type:"input_dummy"},{name:"x",type:"input_value"},{name:"y",type:"input_value"},{name:"w",type:"input_value"},{name:"h",type:"input_value"},{name:"VAR",type:"input_value"},{name:"boolean",type:"input_value"}],inputsInline:!0,helpUrl:ge.Msg.mpython_HELPURL,tooltip:ge.Msg.MPYTHON_DISPLAY_SHAPE_RECT_TOOLTIP,message0:ge.Msg.ONBOARD_TFT_DISPLAY_SHAPE_RECT_MESSAGE0,nextStatement:null,previousStatement:null})}},_E={init:function(){this.jsonInit({colour:om,args0:[{name:"dir_h_v",options:[[ge.Msg.mpython_vertical,"0"],[ge.Msg.mpython_horizontal,"1"]],type:"field_dropdown"},{type:"input_dummy"},{name:"x",type:"input_value"},{name:"y",type:"input_value"},{name:"length",type:"input_value"},{name:"VAR",type:"input_value"},{name:"boolean",type:"input_value"}],inputsInline:!0,helpUrl:ge.Msg.mpython_HELPURL,tooltip:ge.Msg.MPYTHON_DISPLAY_HVLINE_TOOLTIP,message0:ge.Msg.ONBOARD_TFT_DISPLAY_HVLINE_MESSAGE0,nextStatement:null,previousStatement:null})}},oE={init:function(){this.jsonInit({colour:om,args0:[{type:"input_dummy"},{name:"x1",type:"input_value"},{name:"y1",type:"input_value"},{name:"x2",type:"input_value"},{name:"y2",type:"input_value"},{name:"VAR",type:"input_value"},{name:"boolean",type:"input_value"}],inputsInline:!0,helpUrl:ge.Msg.mpython_HELPURL,tooltip:ge.Msg.mpython_display_line_TOOLTIP,message0:ge.Msg.onboard_mpython_display_line_MESSAGE0,nextStatement:null,previousStatement:null})}},pE={init:function(){this.setColour(om),this.appendDummyInput("").appendField(ge.Msg.MIXLY_MICROBIT_PY_STORAGE_GET),this.appendValueInput("x").setCheck(Number).appendField(ge.Msg.MIXLY_MICROBIT_JS_MONITOR_GET_POINT_X),this.appendValueInput("y").setCheck(Number).appendField(ge.Msg.MIXLY_MICROBIT_JS_MONITOR_PLOT_POINT_Y),this.appendDummyInput().appendField(ge.Msg.HTML_COLOUR),this.setInputsInline(!0),this.setOutput(!0,Number),this.setTooltip(ge.Msg.MIXLY_ESP32_JS_MONITOR_BRIGHTNESS)}},aE={init:function(){this.setColour(om),this.appendValueInput("x").setCheck(Number).appendField(ge.Msg.MIXLY_LCD_SETCOLOR).appendField(ge.Msg.MIXLY_MICROBIT_JS_MONITOR_GET_POINT_X),this.appendValueInput("y").setCheck(Number).appendField(ge.Msg.MIXLY_MICROBIT_JS_MONITOR_PLOT_POINT_Y),this.appendValueInput("VAR").appendField(ge.Msg.HTML_COLOUR);Ce.Boards.getSelectedBoardKey();"Python ESP32-S3"===Ce.JSFuncs.getPlatform()&&this.appendValueInput("boolean").appendField(ge.Msg.MIXLY_synchronize+":"),this.setPreviousStatement(!0,null),this.setNextStatement(!0,null),this.setInputsInline(!0),this.setTooltip(ge.Msg.MIXLY_ESP32_DISPLAY_SETPIXEL)}},uE={init:function(){this.setColour(om),this.appendValueInput("VAR").appendField(ge.Msg.MIXLY_SCREEN_FILL);Ce.Boards.getSelectedBoardKey();"Python ESP32-S3"===Ce.JSFuncs.getPlatform()&&this.appendValueInput("boolean").appendField(ge.Msg.MIXLY_synchronize+":"),this.setPreviousStatement(!0,null),this.setNextStatement(!0,null),this.setInputsInline(!0)}},rE={init:function(){this.setColour(om),this.appendValueInput("SUB").appendField(ge.Msg.MIXLY_INIT_CLOCK),this.appendDummyInput().appendField(ge.Msg.MIXLY_CENTER_POS),this.appendValueInput("x").setCheck(Number).appendField("x"),this.appendValueInput("y").setCheck(Number).appendField("y"),this.appendValueInput("size").setCheck(Number).appendField(ge.Msg.OLED_CIRCLE_RADIUS),this.appendValueInput("VAR").appendField(ge.Msg.HTML_COLOUR),this.setPreviousStatement(!0,null),this.setNextStatement(!0,null),this.setInputsInline(!0)}},lE={init:function(){this.setColour(om),this.appendValueInput("SUB"),this.appendDummyInput().appendField(ge.Msg.GET_RTCTIME),this.setPreviousStatement(!0,null),this.setNextStatement(!0,null),this.setInputsInline(!0)}},dE={init:function(){this.setColour(om),this.appendValueInput("SUB"),this.appendDummyInput().appendField(ge.Msg.SET_TIME),this.appendValueInput("h").setCheck(Number).appendField(ge.Msg.MIXLY_HOUR),this.appendValueInput("m").setCheck(Number).appendField(ge.Msg.MIXLY_MINUTE),this.appendValueInput("s").setCheck(Number).appendField(ge.Msg.MIXLY_SECOND),this.setPreviousStatement(!0,null),this.setNextStatement(!0,null),this.setInputsInline(!0)}},IE={init:function(){this.setColour(om),this.appendValueInput("SUB"),this.appendDummyInput().appendField(ge.Msg.DRAW_CLOCK),this.setPreviousStatement(!0,null),this.setNextStatement(!0,null),this.setInputsInline(!0)}},TE={init:function(){this.setColour(om),this.appendValueInput("SUB"),this.appendDummyInput().appendField(ge.Msg.CLEAR_CLOCK),this.appendValueInput("VAR").appendField(ge.Msg.MIXLY_STM32_TFT_BACKGROUND_COLOR),this.setPreviousStatement(!0,null),this.setNextStatement(!0,null),this.setInputsInline(!0)}},ME={init:function(){this.jsonInit({colour:om,args0:[{name:"shape",options:[[ge.Msg.MPYTHON_DISPLAY_HOLLOW,"False"],[ge.Msg.MPYTHON_DISPLAY_SOLID,"True"]],type:"field_dropdown"},{type:"input_dummy"},{name:"x",type:"input_value"},{name:"y",type:"input_value"},{name:"r",type:"input_value"},{name:"VAR",type:"input_value"},{name:"boolean",type:"input_value"}],inputsInline:!0,helpUrl:ge.Msg.mpython_HELPURL,message0:ge.Msg.ONBOARD_TFT_DISPLAY_SHAPE_CIRCLE_MESSAGE0,nextStatement:null,previousStatement:null})}},hE={init:function(){this.setColour(om),this.appendDummyInput().appendField(ge.Msg.DRAW_POINTER).appendField(ge.Msg.DRAW_POINTER_ANGLE),this.appendValueInput("angle"),this.appendDummyInput().appendField(ge.Msg.MIXLY_DRAW_POINTER_DU),this.setPreviousStatement(!0,null),this.setNextStatement(!0,null),this.setInputsInline(!0),this.setTooltip(ge.Msg.DRAW_POINTER_TOOLTIP)}},mE={init:function(){this.setColour(om),this.appendDummyInput().appendField(ge.Msg.DRAW_POINTER).appendField(ge.Msg.DRAW_POINTER_ANGLE),this.appendValueInput("angle"),this.appendDummyInput().appendField(ge.Msg.MIXLY_DRAW_POINTER_DU),this.appendValueInput("VAR").appendField(ge.Msg.HTML_COLOUR),this.setPreviousStatement(!0,null),this.setNextStatement(!0,null),this.setInputsInline(!0),this.setTooltip(ge.Msg.DRAW_POINTER_TOOLTIP)}},EE={init:function(){this.setColour(om),this.appendValueInput("data").appendField(ge.Msg.MIXLY_Display_long_text),this.appendValueInput("x").setCheck(Number).appendField("x"),this.appendValueInput("y").setCheck(Number).appendField("y"),this.appendValueInput("size").setCheck(Number).appendField(ge.Msg.MIXLY_MICROBIT_JS_NUMBER),this.appendValueInput("VAR").appendField(ge.Msg.HTML_COLOUR);Ce.Boards.getSelectedBoardKey();"Python ESP32-S3"===Ce.JSFuncs.getPlatform()&&this.appendValueInput("boolean").appendField(ge.Msg.MIXLY_synchronize+":"),this.setPreviousStatement(!0,null),this.setNextStatement(!0,null),this.setInputsInline(!0)}},OE={init:function(){this.setColour(om),this.appendValueInput("data").appendField(ge.Msg.OLED_BITMAP),this.appendDummyInput().appendField(`(${ge.Msg.MIXLY_DEPRECATED})`),this.setPreviousStatement(!0,null),this.setNextStatement(!0,null),this.setInputsInline(!0),this.setTooltip(ge.Msg.OLED_BITMAP_OR_STRING),this.setWarningText(ge.Msg.MIXLY_DEPRECATED_WARNING_TEXT)}},RE={init:function(){um.init.call(this),this.appendDummyInput().appendField(`(${ge.Msg.MIXLY_DEPRECATED})`),this.setWarningText(ge.Msg.MIXLY_DEPRECATED_WARNING_TEXT)}},cE={init:function(){Im.init.call(this),this.appendDummyInput().appendField(`(${ge.Msg.MIXLY_DEPRECATED})`),this.setWarningText(ge.Msg.MIXLY_DEPRECATED_WARNING_TEXT)}},gE={init:function(){cm.init.call(this),this.appendDummyInput().appendField(`(${ge.Msg.MIXLY_DEPRECATED})`),this.setWarningText(ge.Msg.MIXLY_DEPRECATED_WARNING_TEXT)}},CE={init:function(){Sm.init.call(this),this.appendDummyInput().appendField(`(${ge.Msg.MIXLY_DEPRECATED})`),this.setWarningText(ge.Msg.MIXLY_DEPRECATED_WARNING_TEXT)}},SE={init:function(){Am.init.call(this),this.appendDummyInput().appendField(`(${ge.Msg.MIXLY_DEPRECATED})`),this.setWarningText(ge.Msg.MIXLY_DEPRECATED_WARNING_TEXT)}},AE={init:function(){Lm.init.call(this),this.appendDummyInput().appendField(`(${ge.Msg.MIXLY_DEPRECATED})`),this.setWarningText(ge.Msg.MIXLY_DEPRECATED_WARNING_TEXT)}},LE=180,NE={init:function(){this.setColour(LE),this.setOutput(!0),this.setInputsInline(!0),this.appendValueInput("img").appendField(ge.Msg.DISPLAY_IMAGE_LET).setCheck(["esp32_image","List",String]),this.appendDummyInput("").appendField(ge.Msg.DISPLAY_IMAGE_LET2).appendField(new ge.FieldDropdown(NE.OPERATORS),"OP"),this.appendValueInput("val").appendField(ge.Msg.DISPLAY_IMAGE_SHIFT).setCheck(Number),this.appendDummyInput("").appendField(ge.Msg.DISPLAY_IMAGE_UNIT);var e=this;this.setTooltip((function(){var t=e.getFieldValue("OP"),i=ge.Msg.DISPLAY_IMAGE_LET,n=ge.Msg.DISPLAY_IMAGE_LET2,s=ge.Msg.DISPLAY_IMAGE_LET3;return i+n+{up:ge.Msg.MIXLY_UP,down:ge.Msg.MIXLY_DOWN,left:ge.Msg.MIXLY_LEFT,right:ge.Msg.MIXLY_RIGHT}[t]+s}))},OPERATORS:[[ge.Msg.MIXLY_UP,"up"],[ge.Msg.MIXLY_DOWN,"down"],[ge.Msg.MIXLY_LEFT,"left"],[ge.Msg.MIXLY_RIGHT,"right"]]},DE={init:function(){this.setColour(LE),this.setOutput(!0,"esp32_image"),this.appendValueInput("A").appendField(ge.Msg.MICROBIT_DISPLAY_MERGE_SHAPE),this.appendValueInput("B").appendField(new ge.FieldDropdown(DE.OPERATORS),"OP"),this.setInputsInline(!0);var e=this;this.setTooltip((function(){var t=e.getFieldValue("OP");return{"+":ge.Msg.MIXLY_MICROBIT_image_add,"-":ge.Msg.MIXLY_MICROBIT_image_reduce}[t]}))},OPERATORS:[[ge.Msg.MICROBIT_DISPLAY_UNION,"+"],[ge.Msg.MICROBIT_DISPLAY_MINUS,"-"]]},fE={init:function(){this.setColour(LE),this.appendDummyInput().appendField(ge.Msg.MIXLY_MICROBIT_PY_STORAGE_GET+ge.Msg.MIXLY_MICROBIT_IMAGE),this.appendValueInput("VAR").setCheck("esp32_image"),this.appendDummyInput("").appendField(new ge.FieldDropdown(fE.OPERATORS),"OP"),this.setInputsInline(!0),this.setOutput(!0);var e=this;this.setTooltip((function(){var t=e.getFieldValue("OP");return ge.Msg.MIXLY_MICROBIT_PY_STORAGE_GET+ge.Msg.MIXLY_MICROBIT_IMAGE+{height:ge.Msg.MIXLY_HEIGHT,width:ge.Msg.MIXLY_WIDTH}[t]}))},OPERATORS:[[ge.Msg.MIXLY_HEIGHT,"height"],[ge.Msg.MIXLY_WIDTH,"width"]]},FE={init:function(){this.setColour(LE),this.appendValueInput("VAR").appendField(ge.Msg.OLED).setCheck("var"),this.appendDummyInput("").appendField(ge.Msg.MIXLY_RECT).appendField(new ge.FieldDropdown(FE.STATUS),"OP"),this.jsonInit({message0:ge.Msg.MIXLY_MICROBIT_SHOW_RECT,args0:[{check:Number,type:"input_value",name:"x"},{check:Number,type:"input_value",name:"y"},{check:Number,type:"input_value",name:"width"},{check:Number,type:"input_value",name:"height"},{type:"input_dummy"},{checked:!1,type:"field_checkbox",name:"fill"}]}),this.setInputsInline(!0),this.setPreviousStatement(!0,null),this.setNextStatement(!0,null),this.setTooltip(""),this.setTooltip(ge.Msg.MIXLY_OLED_RECT)},STATUS:[[ge.Msg.MIXLY_4DIGITDISPLAY_ON,"1"],[ge.Msg.MIXLY_4DIGITDISPLAY_OFF,"0"]]},PE={init:function(){this.setColour(LE),this.appendValueInput("VAR").appendField(ge.Msg.OLED).setCheck("var"),this.appendDummyInput("").appendField(ge.Msg.MIXLY_MIXPY_TURTLE_DRAW_CIRCLE).appendField(new ge.FieldDropdown(PE.STATUS),"OP"),this.jsonInit({message0:ge.Msg.MIXLY_HANBIT_SHOW_CIRCLE,args0:[{check:Number,type:"input_value",name:"x"},{check:Number,type:"input_value",name:"y"},{check:Number,type:"input_value",name:"r"},{type:"input_dummy"},{checked:!1,type:"field_checkbox",name:"fill"}]}),this.setInputsInline(!0),this.setPreviousStatement(!0,null),this.setNextStatement(!0,null),this.setTooltip(""),this.setTooltip(ge.Msg.MIXLY_MIXPY_TURTLE_DRAW_CIRCLE)},STATUS:[[ge.Msg.MIXLY_4DIGITDISPLAY_ON,"1"],[ge.Msg.MIXLY_4DIGITDISPLAY_OFF,"0"]]},vE={init:function(){this.setColour(LE),this.appendValueInput("VAR").appendField(ge.Msg.OLED).setCheck("var"),this.appendDummyInput("").appendField(ge.Msg.MIXLY_DISPLAY_DRAW+ge.Msg.MIXLY_HANBIT_DRAW_TRIANGLE).appendField(new ge.FieldDropdown(vE.STATUS),"OP"),this.jsonInit({message0:ge.Msg.MIXLY_HANBIT_SHOW_triangle,args0:[{check:Number,type:"input_value",name:"x0"},{check:Number,type:"input_value",name:"y0"},{check:Number,type:"input_value",name:"x1"},{check:Number,type:"input_value",name:"y1"},{check:Number,type:"input_value",name:"x2"},{check:Number,type:"input_value",name:"y2"},{type:"input_dummy"},{checked:!1,type:"field_checkbox",name:"fill"}]}),this.setInputsInline(!0),this.setPreviousStatement(!0,null),this.setNextStatement(!0,null),this.setTooltip(""),this.setTooltip(ge.Msg.MIXLY_DISPLAY_DRAW+ge.Msg.MIXLY_HANBIT_DRAW_TRIANGLE)},STATUS:[[ge.Msg.MIXLY_4DIGITDISPLAY_ON,"1"],[ge.Msg.MIXLY_4DIGITDISPLAY_OFF,"0"]]},YE="#777777",XE={init:function(){this.setColour(YE),this.appendDummyInput("").appendField("from ").appendField(new ge.FieldTextInput("ESP32"),"path").appendField(" import ").appendField(new ge.FieldTextInput("*"),"module"),this.setPreviousStatement(!0),this.setNextStatement(!0)}},yE={init:function(){this.setColour(YE),this.appendDummyInput("").appendField("import ").appendField(new ge.FieldTextInput("module"),"module"),this.setPreviousStatement(!0),this.setNextStatement(!0)}},bE={init:function(){this.setColour(YE),this.appendDummyInput("").appendField(new ge.FieldTextInput("my_function"),"NAME"),this.itemCount_=1,this.arguments_=["x"],this.updateShape_(),this.setPreviousStatement(!0),this.setNextStatement(!0),this.setMutator(new ge.icons.MutatorIcon(["factory_create_with_item"],this))},mutationToDom:function(){var e=document.createElement("mutation");e.setAttribute("items",this.itemCount_);for(var t=0;tt?e[t]:'"key'+(t+1)+'"'),"KEY"+t).appendField(":")}},getVars:function(){return[this.getFieldValue("VAR")]},renameVar:function(e,t){ge.Names.equals(e,this.getFieldValue("VAR"))&&this.setTitleValue(t,"VAR")}},CO={init:function(){this.setColour(hO),this.appendDummyInput().appendField(ge.Msg.MIXLY_MICROBIT_TYPE_DICT),this.appendStatementInput("STACK"),this.setTooltip(ge.Msg.DICTS_CREATE_WITH_CONTAINER_TOOLTIP),this.contextMenu=!1}},SO={init:function(){this.setColour(hO),this.appendDummyInput().appendField(ge.Msg.DICTS_CREATE_WITH_ITEM_TITLE),this.setPreviousStatement(!0),this.setNextStatement(!0),this.setTooltip(ge.Msg.DICTS_CREATE_WITH_ITEM_TOOLTIP),this.contextMenu=!1}},AO={init:function(){this.setColour(hO),this.appendDummyInput().appendField(ge.Msg.DICTS_CREATE_WITH_ITEM_TITLE),this.setPreviousStatement(!0),this.setNextStatement(!0),this.setTooltip(ge.Msg.DICTS_CREATE_WITH_ITEM_TOOLTIP),this.contextMenu=!1}},LO={init:function(){this.setColour(hO),this.appendDummyInput().appendField(ge.Msg.MIXLY_CREATE_MQTT_CLIENT_AND_CONNECT),this.appendValueInput("SERVER").setCheck(String).appendField(ge.Msg.MIXLY_EMQX_SERVER).setAlign(ge.inputs.Align.RIGHT),this.appendValueInput("USERNAME").setCheck(String).appendField(ge.Msg.MIXLY_WIFI_USERNAME).setAlign(ge.inputs.Align.RIGHT),this.appendValueInput("PASSWORD").setCheck(String).appendField(ge.Msg.MIXLY_IOT_PASSWORD).setAlign(ge.inputs.Align.RIGHT),this.appendValueInput("PROJECT").setCheck(String).appendField(ge.Msg.MIXLY_EMQX_PROJECT).setAlign(ge.inputs.Align.RIGHT),this.setPreviousStatement(!0),this.setNextStatement(!0)}},NO={init:function(){this.setColour(hO),this.appendDummyInput().appendField("MixIO"),this.appendValueInput("TOPIC").appendField(ge.Msg.MIXLY_EMQX_PUBLISH_NEW).appendField(ge.Msg.MIXLY_EMQX_PUBLISH_TOPIC),this.appendValueInput("MSG").appendField(ge.Msg.HTML_BODY),this.setInputsInline(!0),this.setPreviousStatement(!0),this.setNextStatement(!0),this.setTooltip(ge.Msg.MIXLY_ESP32_IOT_EMQX_PUBLISH_TOOLTIP)}},DO={init:function(){this.setColour(hO),this.appendDummyInput().appendField("MixIO"),this.appendValueInput("TOPIC").appendField(ge.Msg.MIXLY_EMQX_PUBLISH_NEW).appendField(ge.Msg.MIXLY_EMQX_PUBLISH_TOPIC),this.appendValueInput("MSG").appendField(ge.Msg.HTML_BODY),this.appendDummyInput().appendField(ge.Msg.MIXLY_Service_quality_display).appendField(new ge.FieldDropdown([[ge.Msg.MIXLY_AT_MOST_ONCE,"0"],[ge.Msg.MIXLY_AT_LEAST_ONCE,"1"]]),"quality"),this.setInputsInline(!0),this.setPreviousStatement(!0),this.setNextStatement(!0),this.setTooltip(ge.Msg.MIXLY_ESP32_IOT_EMQX_PUBLISH_TOOLTIP)}},fO={init:function(){this.setColour(hO),this.appendDummyInput().appendField("MixIO"),this.appendValueInput("TOPIC").appendField(ge.Msg.MIXLY_EMQX_SUBSCRIBE+ge.Msg.MIXLY_MICROBIT_MSG).appendField(ge.Msg.MIXLY_EMQX_PUBLISH_TOPIC),this.appendValueInput("METHOD").appendField(ge.Msg.MIXLY_EMQX_SET_METHOD),this.setInputsInline(!0),this.setPreviousStatement(!0),this.setNextStatement(!0),this.setTooltip(ge.Msg.MIXLY_ESP32_IOT_EMQX_SUBSCRIBE_TOOLTIP)}},FO={init:function(){this.setColour(hO),this.appendDummyInput().appendField("MixIO"),this.appendDummyInput().appendField(ge.Msg.MIXLY_ESP32_DISCONNECT_ONENET),this.setInputsInline(!0),this.setPreviousStatement(!0),this.setNextStatement(!0)}},PO={init:function(){this.setColour(hO),this.appendDummyInput().appendField("MixIO"),this.appendDummyInput().appendField(ge.Msg.MIXLY_EMQX_CONNECT),this.setInputsInline(!0),this.setPreviousStatement(!0),this.setNextStatement(!0)}},vO={init:function(){this.setColour(hO),this.appendDummyInput().appendField("MixIO"),this.appendDummyInput().appendField(ge.Msg.MIXLY_ESP32_CHECK_ONENET),this.setInputsInline(!0),this.setPreviousStatement(!0),this.setNextStatement(!0)}},YO={init:function(){this.setColour(hO),this.appendDummyInput().appendField(ge.Msg.MIXLY_MICROPYTHON_FORMAT).appendField(ge.Msg.MQTT_Topic),this.setInputsInline(!0),this.setOutput(!0)}},XO={init:function(){this.setColour(hO),this.appendDummyInput().appendField(ge.Msg.MIXLY_MICROPYTHON_FORMAT).appendField(ge.Msg.MIXLY_EMQX_PUBLISH_MSG),this.setInputsInline(!0),this.setOutput(!0)}},yO={init:function(){this.setColour(hO),this.appendValueInput("VAR").appendField(ge.Msg.MIXLY_ESP32_IOT_MAP_FORMATING),this.setOutput(!0)}},bO={init:function(){this.setColour(hO),this.appendValueInput("VAR").appendField(ge.Msg.MIXLY_MICROPYTHON_FORMAT+"(Json)"),this.setOutput(!0)}},xO={init:function(){this.setColour(hO),this.appendDummyInput().appendField("MixIO"),this.appendDummyInput().appendField(ge.Msg.MIXLY_EMQX_PING),this.setInputsInline(!0),this.setOutput(!0),this.setTooltip(ge.Msg.MIXLY_ESP32_IOT_EMQX_PING_TOOLTIP)}},VO={init:function(){this.setColour(hO),this.appendDummyInput().appendField("MixIO").appendField(ge.Msg.MIXLY_GET_NTP),this.appendValueInput("addr").appendField(ge.Msg.blynk_SERVER_ADD),this.setInputsInline(!0),this.setOutput(!0)}},BO={init:function(){this.setColour(hO),this.appendDummyInput().appendField(ge.Msg.MIXLY_CREATE_MQTT_CLIENT_AND_CONNECT),this.appendValueInput("SERVER").appendField(ge.Msg.MIXLY_EMQX_SERVER).setAlign(ge.inputs.Align.RIGHT),this.appendValueInput("KEY").appendField(ge.Msg.CONTROLS_FOR_INPUT_WITH+ge.Msg.MIXLY_MIXIO_SHARE_KEY).setAlign(ge.inputs.Align.RIGHT),this.setInputsInline(!0),this.setPreviousStatement(!0),this.setNextStatement(!0)}},GO={init:function(){this.setColour(hO),this.appendDummyInput().appendField(ge.Msg.MIXLY_CREATE_MQTT_CLIENT_AND_CONNECT),this.appendValueInput("SERVER").appendField(ge.Msg.MIXLY_EMQX_SERVER).setAlign(ge.inputs.Align.RIGHT),this.appendValueInput("KEY").appendField(ge.Msg.CONTROLS_FOR_INPUT_WITH+"Mixly Key").setAlign(ge.inputs.Align.RIGHT),this.setInputsInline(!0),this.setPreviousStatement(!0),this.setNextStatement(!0)}},UO={init:function(){this.VISITOR_ID=Ce.Config.BOARD.visitorId.str32.substring(0,8).toUpperCase(),this.setColour(hO),this.appendDummyInput("").appendField(new ge.FieldTextInput(this.visitorId),"VISITOR_ID"),this.setOutput(!0,null)},onchange:function(){const e=this.getFieldValue("VISITOR_ID");this.VISITOR_ID!==e&&this.setFieldValue(this.VISITOR_ID,"VISITOR_ID")}},wO={init:function(){this.setColour(hO),this.appendDummyInput().appendField("MixIO").appendField(ge.Msg.MSG.catEthernet_clinet),this.setOutput(!0),this.setInputsInline(!0)}},kO={init:function(){this.setColour(hO),this.appendDummyInput().appendField("HTTP"+ge.Msg.MIXLY_Client),this.appendValueInput("addr").appendField(ge.Msg.DISPLAY_IMAGE_LET2),this.appendDummyInput().appendField(ge.Msg.MIXLY_REQUESTS_GET).appendField(ge.Msg.MIXLY_GET_CURRENT_TIME).appendField(ge.Msg.MIXLY_OPEN_DEBUG).appendField(new ge.FieldDropdown([[ge.Msg.MIXLY_TURTLE_WRITE_MOVE_TRUE,"True"],[ge.Msg.MIXLY_TURTLE_WRITE_MOVE_FALSE,"False"]]),"key"),this.setInputsInline(!0),this.setPreviousStatement(!0),this.setNextStatement(!0)}},HO={init:function(){this.setColour(hO),this.appendDummyInput().appendField("HTTP"+ge.Msg.MIXLY_Client).appendField(ge.Msg.MIXLY_GET).appendField(new ge.FieldDropdown([[ge.Msg.MIXLY_REQUESTS_LEN,"client_len"],[ge.Msg.MIXLY_REQUESTS_GET_LEN,"server_len"],[ge.Msg.MIXLY_REQUESTS_MESSAGE,"text"]]),"key"),this.setOutput(!0),this.setInputsInline(!0)}},WO={init:function(){this.setColour(hO),this.appendDummyInput().appendField("MQTT"+ge.Msg.MIXLY_Client),this.appendValueInput("addr").appendField(ge.Msg.MIXLY_CONNECTTO),this.appendDummyInput().appendField(ge.Msg.MIXLY_INIT_SUBSCRIBE).appendField(ge.Msg.MQTT_Topic).appendField(new ge.FieldDropdown([[ge.Msg.MIXLY_GET_CURRENT_TIME,""]]),"key").appendField(ge.Msg.MIXLY_OPEN_DEBUG).appendField(new ge.FieldDropdown([[ge.Msg.MIXLY_TURTLE_WRITE_MOVE_TRUE,"True"],[ge.Msg.MIXLY_TURTLE_WRITE_MOVE_FALSE,"False"]]),"key2"),this.setInputsInline(!0),this.setPreviousStatement(!0),this.setNextStatement(!0)}},KO={init:function(){this.setColour(hO),this.appendDummyInput().appendField("MQTT"+ge.Msg.MIXLY_Client).appendField(ge.Msg.MIXLY_GET).appendField(new ge.FieldDropdown([[ge.Msg.MIXLY_REQUESTS_LEN,"client_len"],[ge.Msg.MIXLY_REQUESTS_GET_LEN,"server_len"],[ge.Msg.MIXLY_REQUESTS_MESSAGE,"time_msg()"]]),"key"),this.setOutput(!0),this.setInputsInline(!0)}},JO=mO,qO=EO,QO=OO,zO=RO,jO=gO,$O={init:function(){this.setColour(hO),this.appendDummyInput().appendField(ge.Msg.MIXLY_CONNECT_OLLAMA),this.appendValueInput("SERVER").appendField(ge.Msg.MIXLY_EMQX_SERVER).setAlign(ge.inputs.Align.RIGHT),this.appendValueInput("NAME").appendField(ge.Msg.MODEL_NAME).setAlign(ge.inputs.Align.RIGHT),this.appendValueInput("NUMBER").appendField(ge.Msg.MIXLY_SET_MAXIMUM_HISTORICAL_SESSIONS_NUM),this.setInputsInline(!1),this.setPreviousStatement(!0),this.setNextStatement(!0)}},ZO=$O,eR={init:function(){this.setColour(hO),this.appendDummyInput().appendField(ge.Msg.MIXLY_CONNECT_OPENAI),this.appendValueInput("SERVER").appendField(ge.Msg.MIXLY_EMQX_SERVER).setAlign(ge.inputs.Align.RIGHT),this.appendValueInput("KEY").appendField(ge.Msg.MIXLY_API_PRIVATE_KEY).setAlign(ge.inputs.Align.RIGHT),this.appendValueInput("NAME").appendField(ge.Msg.MODEL_NAME).setAlign(ge.inputs.Align.RIGHT),this.appendValueInput("NUMBER").appendField(ge.Msg.MIXLY_SET_MAXIMUM_HISTORICAL_SESSIONS_NUM),this.setInputsInline(!1),this.setPreviousStatement(!0),this.setNextStatement(!0)}},tR={init:function(){this.setColour(hO),this.appendDummyInput().appendField(ge.Msg.MIXLY_LLM_CHAT),this.appendValueInput("TOPIC").appendField(ge.Msg.MIXLY_MIXGO_ESPNOW_SEND),this.appendValueInput("METHOD").appendField(ge.Msg.MIXLY_LLM_CONTENT_CALLBACK),this.setInputsInline(!0),this.setPreviousStatement(!0),this.setNextStatement(!0)}},iR={init:function(){this.setColour(hO),this.appendDummyInput().appendField(ge.Msg.MIXLY_LLM_CHAT),this.appendValueInput("TOPIC").appendField(ge.Msg.MIXLY_MIXGO_ESPNOW_SEND),this.appendDummyInput().appendField(ge.Msg.MIXPY_REQUESTS_GET_RESULT),this.setInputsInline(!0),this.setOutput(!0)}},nR={init:function(){this.setColour(hO),this.appendDummyInput().appendField("Ollama "+ge.Msg.MIXLY_EMPTY_HISTORY),this.setInputsInline(!0),this.setPreviousStatement(!0),this.setNextStatement(!0)}},sR={init:function(){this.setColour(0),this.appendDummyInput().appendField(`${ge.Msg.MIXLY_SETUP} TinyWebDB`),this.appendValueInput("ADDR").setAlign(ge.inputs.Align.RIGHT).appendField(ge.Msg.MIXLY_EMQX_SERVER),this.appendValueInput("USERNAME").setAlign(ge.inputs.Align.RIGHT).appendField(ge.Msg.MIXLY_EMQX_USERNAME),this.appendValueInput("PASSWORD").setAlign(ge.inputs.Align.RIGHT).appendField(ge.Msg.MIXLY_IOT_PASSWORD),this.setInputsInline(!1),this.setPreviousStatement(!0),this.setNextStatement(!0)}},_R={init:function(){this.setColour(0),this.appendDummyInput().appendField(`${ge.Msg.MIXLY_SETUP} TinyWebDB`),this.appendValueInput("MQTT").setAlign(ge.inputs.Align.RIGHT).appendField(`MixIO ${ge.Msg.MIXLY_Client}`),this.setInputsInline(!0),this.setPreviousStatement(!0),this.setNextStatement(!0)}},oR={init:function(){this.setColour(0),this.appendDummyInput().appendField("TinyWebDB"),this.appendValueInput("TAG").setAlign(ge.inputs.Align.RIGHT).appendField(ge.Msg.MIXLY_TINY_WEB_DB_UPDATE_VARIABLE),this.appendValueInput("VALUE").setAlign(ge.inputs.Align.RIGHT).appendField(ge.Msg.DICTS_ADD_VALUE),this.setInputsInline(!0),this.setPreviousStatement(!0),this.setNextStatement(!0)}},pR={init:function(){this.setColour(0),this.appendDummyInput().appendField("TinyWebDB"),this.appendValueInput("TAG").appendField(ge.Msg.MIXLY_TINY_WEB_DB_GET_VARIABLE),this.appendDummyInput().appendField(ge.Msg.DICTS_ADD_VALUE),this.setInputsInline(!0),this.setOutput(!0)}},aR={init:function(){this.setColour(0),this.appendDummyInput().appendField("TinyWebDB"),this.appendDummyInput().appendField(ge.Msg.MIXLY_TINY_WEB_DB_GET_VARIABLES_NUM),this.setInputsInline(!0),this.setOutput(!0)}},uR={init:function(){this.setColour(0),this.appendDummyInput().appendField("TinyWebDB").appendField(ge.Msg.MIXLY_TINY_WEB_DB_SEARCH_VARIABLES),this.appendValueInput("NO").setAlign(ge.inputs.Align.RIGHT).appendField(ge.Msg.MIXLY_TINY_WEB_DB_START_NUMBER),this.appendValueInput("COUNT").setAlign(ge.inputs.Align.RIGHT).appendField(ge.Msg.MIXLY_TINY_WEB_DB_VARIABLE_NUMBER),this.appendValueInput("TAG").setAlign(ge.inputs.Align.RIGHT).appendField(ge.Msg.MIXLY_TINY_WEB_DB_SEARCH_VARS),this.appendDummyInput().setAlign(ge.inputs.Align.RIGHT).appendField(new ge.FieldDropdown([[ge.Msg.MIXLY_TINY_WEB_DB_GET_VARIABLES_ALL,"both"],[ge.Msg.MIXLY_TINY_WEB_DB_GET_VARIABLES_TAG,"tag"],[ge.Msg.MIXLY_TINY_WEB_DB_GET_VARIABLES_VALUE,"value"]]),"DTYPE"),this.setInputsInline(!1),this.setOutput(!0)}},rR={init:function(){this.setColour(0),this.appendDummyInput().appendField("TinyWebDB"),this.appendValueInput("TAG").appendField(ge.Msg.MIXLY_TINY_WEB_DB_DELETE_VARIABLE),this.setInputsInline(!0),this.setPreviousStatement(!0),this.setNextStatement(!0)}},lR=225,dR={init:function(){this.setColour(lR),this.appendValueInput("VAR").setCheck("var"),this.appendDummyInput("").appendField(ge.Msg.MIXLY_NETWORK_INIT),this.appendDummyInput().appendField(ge.Msg.MIXLY_NETWORK_MODE).appendField(new ge.FieldDropdown([["STA","STA"],["AP","AP"]]),"mode"),this.setPreviousStatement(!0,null),this.setNextStatement(!0,null),this.setInputsInline(!0),this.setTooltip(ge.Msg.MIXLY_ESP32_NETWORK_INIT_TOOLTIP)}},IR={init:function(){this.setColour(lR),this.appendValueInput("VAR").setCheck("var"),this.appendDummyInput().appendField(new ge.FieldDropdown([[ge.Msg.MIXLY_NETWORK_WIFI_OPEN,"True"],[ge.Msg.MIXLY_NETWORK_WIFI_CLOSE,"False"]]),"op"),this.appendDummyInput("").appendField(ge.Msg.MIXLY_NETWORK_WIFI_FLAG),this.setPreviousStatement(!0,null),this.setNextStatement(!0,null),this.setInputsInline(!0);var e=this;this.setTooltip((function(){var t=e.getFieldValue("op"),i=ge.Msg.MIXLY_ESP32_NETWORK_OPEN_TOOLTIP;return{True:ge.Msg.MIXLY_NETWORK_WIFI_OPEN,False:ge.Msg.MIXLY_NETWORK_WIFI_CLOSE}[t]+i}))}},TR={init:function(){this.setColour(lR),this.appendValueInput("VAR").setCheck("var"),this.appendDummyInput("").appendField(ge.Msg.MIXLY_NETWORK_WIFI_IS_ACTIVE),this.setOutput(!0),this.setInputsInline(!0),this.setTooltip(ge.Msg.MIXLY_NETWORK_WIFI_IS_ACTIVE)}},MR={init:function(){this.setColour(lR),this.appendValueInput("VAR").setCheck("var"),this.appendDummyInput("").appendField(ge.Msg.MIXLY_NETWORK_WIFI_SCAN),this.setOutput(!0),this.setInputsInline(!0),this.setTooltip((function(){return ge.Msg.MIXLY_ESP32_NETWORK_SCAN_TOOLTIP+{0:"ssid",1:"bssid",2:"channel",3:"RSSI",4:"authmode",5:"hidden",all:ge.Msg.MIXLY_NETWORK_WIFI_SCAN_ATTRIBUTE}.all}))}},hR={init:function(){this.setColour(lR),this.appendValueInput("VAR").setCheck("var"),this.appendDummyInput("").appendField(ge.Msg.MIXLY_ESP32_NETWORK_CONNECT),this.appendValueInput("id").setCheck(String).appendField(ge.Msg.HTML_NAME),this.appendValueInput("password").setCheck(String).appendField(ge.Msg.HTML_PASSWORD),this.setPreviousStatement(!0),this.setNextStatement(!0),this.setInputsInline(!0),this.setTooltip(ge.Msg.MIXLY_ESP32_NETWORK_CONNECT_TOOLTIP)}},mR={init:function(){this.setColour(lR),this.appendValueInput("VAR").setCheck("var"),this.appendDummyInput("").appendField(ge.Msg.MIXLY_NETWORK_WIFI_CONNECT+ge.Msg.MIXLY_SYMBOL_QUESTION),this.setOutput(!0,Boolean),this.setInputsInline(!0),this.setTooltip(ge.Msg.MIXLY_ESP32_NETWORK_WIFI_CONNECT_TOOLTIP)}},ER={init:function(){this.setColour(lR),this.appendValueInput("VAR").setCheck("var"),this.appendDummyInput("").appendField(ge.Msg.MIXLY_ESP32_NETWORK_GET_WIFI),this.appendDummyInput("").appendField(new ge.FieldDropdown([[ge.Msg.MIXLY_ESP32_NETWORK_IP,"0"],[ge.Msg.MIXLY_ESP32_NETWORK_MASK,"1"],[ge.Msg.MIXLY_ESP32_NETWORK_GATEWAY,"2"],["DNS","3"]]),"mode"),this.setOutput(!0),this.setInputsInline(!0);var e=this;this.setTooltip((function(){var t=e.getFieldValue("mode");return ge.Msg.MIXLY_ESP32_NETWORK_GET_WIFI_TOOLTIP+{0:ge.Msg.MIXLY_ESP32_NETWORK_IP,1:ge.Msg.MIXLY_ESP32_NETWORK_MASK,2:ge.Msg.MIXLY_ESP32_NETWORK_GATEWAY,3:"DNS"}[t]}))}},OR={init:function(){this.setColour(lR),this.appendValueInput("VAR").setCheck("var"),this.appendDummyInput("").appendField(ge.Msg.MIXLY_ESP32_NETWORK_STOP_CONNECT),this.setPreviousStatement(!0,null),this.setNextStatement(!0,null),this.setInputsInline(!0),this.setTooltip(ge.Msg.MIXLY_ESP32_NETWORK_STOP_TOOLTIP)}},RR={init:function(){this.setColour(lR),this.appendValueInput("VAR").setCheck("var"),this.appendDummyInput("").appendField(ge.Msg.MIXLY_ESP32_NETWORK_GET_WIFI),this.appendDummyInput().appendField(new ge.FieldDropdown([[ge.Msg.MIXLY_NETWORK_WIFI_ESSID,"essid"],[ge.Msg.MIXLY_NETWORK_WIFI_CHANNEL,"channel"]]),"op"),this.setOutput(!0),this.setInputsInline(!0),this.setTooltip(ge.Msg.MIXLY_ESP32_NETWORK_GET_WIFI_TOOLTIP)}},cR={init:function(){this.setColour(lR),this.appendValueInput("VAR").setCheck("var"),this.appendDummyInput("").appendField(ge.Msg.LISTS_SET_INDEX_SET+ge.Msg.MIXLY_HOTSPOT),this.appendValueInput("essid").setCheck(String).appendField(ge.Msg.MIXLY_NAME),this.appendValueInput("password").setCheck(String).appendField(ge.Msg.MIXLY_EMQX_PASSWORD),this.appendValueInput("channel").setCheck(Number).appendField(ge.Msg.MIXLY_NETWORK_WIFI_CHANNEL),this.setPreviousStatement(!0),this.setNextStatement(!0),this.setInputsInline(!0),this.setTooltip(ge.Msg.MIXLY_ESP32_NETWORK_AP_CONNECT_TOOLTIP)}},gR={init:function(){this.setColour(lR),this.appendValueInput("VAR").setCheck("var"),this.appendDummyInput("").appendField(ge.Msg.MIXLY_ESP32_NETWORK_SERVER1),this.appendDummyInput("").appendField(ge.Msg.MIXLY_ESP32_NETWORK_SERVER2),this.setPreviousStatement(!0),this.setNextStatement(!0),this.setInputsInline(!0),this.setTooltip(ge.Msg.MIXLY_ESP32_NETWORK_SOCKET_CLOSE_TOOLTIP)}},CR={init:function(){this.setColour(lR),this.appendValueInput("VAR").appendField(ge.Msg.MIXLY_MICROPYTHON_SOCKET_INIT).setCheck("var"),this.appendDummyInput().appendField(ge.Msg.MIXLY_MICROPYTHON_SOCKET_TYPE).appendField(new ge.FieldDropdown([["TCP","TCP"],["UDP","UDP"]]),"mode"),this.setPreviousStatement(!0,null),this.setNextStatement(!0,null),this.setInputsInline(!0);var e=this;this.setTooltip((function(){var t=e.getFieldValue("mode");return ge.Msg.MIXLY_ESP32_NETWORK_SOCKET_INIT_TOOLTIP+{TCP:"TCP",UDP:"UDP"}[t]}))}},SR={init:function(){this.setColour(lR),this.appendValueInput("VAR").setCheck("var").appendField(ge.Msg.MIXLY_MICROPYTHON_SOCKET_LET_SOCKET),this.appendValueInput("address").appendField(ge.Msg.MIXLY_MICROPYTHON_SOCKET_BIND_TO_ADDRESS),this.setPreviousStatement(!0),this.setNextStatement(!0),this.setInputsInline(!0),this.setTooltip(ge.Msg.MIXLY_ESP32_NETWORK_SOCKET_BIND_TOOLTIP)}},AR={init:function(){this.setColour(lR),this.appendValueInput("VAR").setCheck("var").appendField(ge.Msg.MIXLY_MICROPYTHON_SOCKET_LET_SOCKET),this.appendValueInput("address").appendField(ge.Msg.MIXLY_MICROPYTHON_SOCKET_CONNECT_TO_ADDRESS),this.setPreviousStatement(!0),this.setNextStatement(!0),this.setInputsInline(!0),this.setTooltip(ge.Msg.MIXLY_ESP32_NETWORK_SOCKET_CONNECT_TOOLTIP)}},LR={init:function(){this.setColour(lR),this.appendValueInput("VAR").setCheck("var"),this.appendValueInput("queue").setCheck(Number).appendField(ge.Msg.MIXLY_MICROPYTHON_SOCKET_LISTEN).appendField(ge.Msg.MIXLY_MICROPYTHON_SOCKET_QUEUE),this.setPreviousStatement(!0),this.setNextStatement(!0),this.setInputsInline(!0),this.setTooltip(ge.Msg.MIXLY_ESP32_NETWORK_SOCKET_LISTEN_TOOLTIP)}},NR={init:function(){this.setColour(lR),this.appendValueInput("VAR").setCheck("var"),this.appendDummyInput().appendField(ge.Msg.MIXLY_MICROPYTHON_SOCKET_ACCEPT),this.setOutput(!0),this.setInputsInline(!0),this.setTooltip(ge.Msg.MIXLY_ESP32_NETWORK_SOCKET_ACCEPT_TOOLTIP)}},DR={init:function(){this.setColour(lR),this.appendValueInput("VAR").setCheck("var"),this.appendDummyInput().appendField(ge.Msg.MIXLY_MICROPYTHON_SOCKET_READLINE),this.setOutput(!0),this.setInputsInline(!0),this.setTooltip(ge.Msg.MIXLY_MICROPYTHON_SOCKET_READLINE_TOOLTIP)}},fR={init:function(){this.setColour(lR),this.appendValueInput("VAR").setCheck("var").appendField("TCP"),this.appendValueInput("size").setCheck(Number).appendField(ge.Msg.MIXLY_MICROPYTHON_SOCKET_RECEIVE),this.setOutput(!0),this.setInputsInline(!0),this.setTooltip(ge.Msg.MIXLY_ESP32_NETWORK_SOCKET_RECEIVE_TOOLTIP)}},FR={init:function(){this.setColour(lR),this.appendValueInput("VAR").setCheck("var").appendField("TCP"),this.appendValueInput("content").appendField(ge.Msg.MIXLY_MICROPYTHON_SOCKET_SEND),this.setPreviousStatement(!0),this.setNextStatement(!0),this.setInputsInline(!0),this.setTooltip(ge.Msg.MIXLY_ESP32_NETWORK_SOCKET_SEND_TOOLTIP)}},PR={init:function(){this.setColour(lR),this.appendValueInput("VAR").setCheck("var").appendField("UDP"),this.appendValueInput("size").setCheck(Number).appendField(ge.Msg.MIXLY_MICROPYTHON_SOCKET_RECEIVE),this.setOutput(!0),this.setInputsInline(!0),this.setTooltip(ge.Msg.MIXLY_ESP32_NETWORK_SOCKET_RECEIVE_FROM_TOOLTIP)}},vR={init:function(){this.setColour(lR),this.appendValueInput("VAR").setCheck("var").appendField("UDP"),this.appendValueInput("content").appendField(ge.Msg.MIXLY_MICROPYTHON_SOCKET_SEND),this.appendValueInput("address").appendField(ge.Msg.MIXLY_MICROPYTHON_SOCKET_TO),this.setPreviousStatement(!0),this.setNextStatement(!0),this.setInputsInline(!0),this.setTooltip(ge.Msg.MIXLY_ESP32_NETWORK_SOCKET_SEND_TO_TOOLTIP)}},YR={init:function(){this.setColour(lR),this.appendValueInput("VAR").setCheck("var"),this.appendDummyInput().appendField(ge.Msg.MIXLY_MICROPYTHON_SOCKET_CLOSE),this.setPreviousStatement(!0),this.setNextStatement(!0),this.setInputsInline(!0),this.setTooltip(ge.Msg.MIXLY_ESP32_NETWORK_SOCKET_CLOSE_TOOLTIP)}},XR={init:function(){this.setColour(lR),this.appendValueInput("DOMAIN").appendField(ge.Msg.DISPLAY_IMAGE_LET2).setCheck(String),this.appendDummyInput("").appendField(ge.Msg.blockpy_REQUESTS_GET).appendField(new ge.FieldTextInput("response"),"VAR"),this.setPreviousStatement(!0),this.setNextStatement(!0),this.setTooltip(ge.Msg.blockpy_REQUESTS_GET_TOOLTIP)},getVars:function(){return[this.getFieldValue("VAR")]},renameVar:function(e,t){ge.Names.equals(e,this.getFieldValue("VAR"))&&this.setTitleValue(t,"VAR")}},yR={init:function(){this.appendValueInput("VAL"),this.setColour(lR),this.appendDummyInput("").appendField(ge.Msg.MIXLY_MICROBIT_JS_GET).appendField(new ge.FieldDropdown(yR.ATTR),"ATTR"),this.setInputsInline(!0),this.setOutput(!0,String);var e=this;this.setTooltip((function(){var t=e.getFieldValue("DIR");return{clear:ge.Msg.MIXLY_TOOLTIP_TURTEL_CLEAR,reset:ge.Msg.MIXLY_TOOLTIP_TURTEL_RESET,home:ge.Msg.MIXLY_TOOLTIP_TURTEL_HOME}[t]}))},ATTR:[[ge.Msg.blockpy_REQUESTS_GET_ATTR_STATUS_CODE,"status_code"],[ge.Msg.blockpy_REQUESTS_GET_ATTR_TEXT,"text"],[ge.Msg.blockpy_REQUESTS_GET_ATTR_COOKIES,"cookies"],[ge.Msg.blockpy_REQUESTS_GET_ATTR_CONTENT,"content"]]},bR={init:function(){this.appendValueInput("VAR").appendField(ge.Msg.DISPLAY_IMAGE_LET2).setCheck(String),this.setColour(lR),this.appendDummyInput("").appendField(ge.Msg.blockpy_CONDUCT).appendField(new ge.FieldDropdown(bR.METHOD),"DIR"),this.appendDummyInput("").appendField(ge.Msg.blockpy_REQUESTS),this.setInputsInline(!0),this.setPreviousStatement(!0),this.setNextStatement(!0);var e=this;this.setTooltip((function(){var t=e.getFieldValue("DIR");return{forward:ge.Msg.MIXLY_TOOLTIP_TURTEL_FORWARD,backward:ge.Msg.MIXLY_TOOLTIP_TURTEL_BACKWARD}[t]}))},METHOD:[["post","post"],["put","put"],["delete","delete"],["head","head"],["option","option"]]},xR={init:function(){this.setColour(lR),this.appendDummyInput("").appendField(ge.Msg.MIXLY_GET_NTP+"(NTP)"),this.appendValueInput("data").appendField(ge.Msg.blynk_SERVER_ADD),this.setOutput(!0,"Tuple"),this.setInputsInline(!0)}},VR={init:function(){this.setColour(lR),this.appendDummyInput("").appendField(new ge.FieldDropdown([["ntp.aliyun.com","ntp.aliyun.com"],["ntp1.aliyun.com","ntp1.aliyun.com"],["ntp2.aliyun.com","ntp2.aliyun.com"],["ntp3.aliyun.com","ntp3.aliyun.com"],["ntp4.aliyun.com","ntp4.aliyun.com"],["ntp5.aliyun.com","ntp5.aliyun.com"],["ntp6.aliyun.com","ntp6.aliyun.com"],["ntp7.aliyun.com","ntp7.aliyun.com"],["time1.cloud.tencent.com","time1.cloud.tencent.com"],["time2.cloud.tencent.com","time2.cloud.tencent.com"],["time3.cloud.tencent.com","time3.cloud.tencent.com"],["time4.cloud.tencent.com","time4.cloud.tencent.com"],["time5.cloud.tencent.com","time5.cloud.tencent.com"]]),"op"),this.setOutput(!0)}},BR="#3288dd",GR={init:function(){this.setColour(BR),this.appendValueInput("URL").appendField(ge.Msg.DISPLAY_IMAGE_LET2).setCheck(String),this.appendDummyInput("").appendField(ge.Msg.blockpy_CONDUCT).appendField(new ge.FieldDropdown([["get","get"],["head","head"],["delete","delete"]]),"TYPE").appendField(ge.Msg.blockpy_REQUESTS).appendField(ge.Msg.MIXPY_REQUESTS_GET_RESULT),this.setInputsInline(!0),this.setOutput(!0),this.setTooltip("")}},UR={init:function(){this.setColour(BR),this.appendValueInput("URL").appendField(ge.Msg.DISPLAY_IMAGE_LET2).setCheck(String),this.appendDummyInput("").appendField(ge.Msg.blockpy_CONDUCT).appendField(new ge.FieldDropdown([["post","post"],["put","put"],["patch","patch"]]),"TYPE").appendField(ge.Msg.blockpy_REQUESTS),this.appendValueInput("data").appendField(ge.Msg.blockpy_REQUESTS+ge.Msg.OLED_STRING),this.appendDummyInput("").appendField(ge.Msg.MIXPY_REQUESTS_GET_RESULT),this.setInputsInline(!0),this.setOutput(!0),this.setTooltip("")}},wR={init:function(){this.appendValueInput("VAL"),this.setColour(BR),this.appendDummyInput("").appendField(ge.Msg.MIXLY_MICROBIT_JS_GET).appendField(new ge.FieldDropdown(wR.ATTR),"ATTR"),this.setInputsInline(!0),this.setOutput(!0,String)},ATTR:[[ge.Msg.blockpy_REQUESTS_GET_ATTR_TEXT,"text"],[ge.Msg.blockpy_REQUESTS_GET_ATTR_JSON,"json()"],[ge.Msg.blockpy_REQUESTS_GET_ATTR_STATUS_CODE,"status_code"],[ge.Msg.blockpy_REQUESTS_GET_ATTR_CONTENT,"content"],[ge.Msg.MIXPY_TEXT_ENCODE,"encoding"]]},kR={init:function(){this.setColour(BR),this.appendDummyInput().appendField(ge.Msg.MIXLY_ESP32_IOT_CONNECT_WIFI),this.appendValueInput("WIFINAME").setCheck(String).appendField(ge.Msg.HTML_NAME),this.appendValueInput("PASSWORD").setCheck(String).appendField(ge.Msg.HTML_PASSWORD),this.appendValueInput("TIMEOUT").setCheck(Number).appendField(ge.Msg.MIXLY_IR_TIMEOUT),this.appendDummyInput().appendField(ge.Msg.MIXLY_MILLIS),this.setInputsInline(!0),this.setPreviousStatement(!0),this.setNextStatement(!0),this.setTooltip(ge.Msg.MIXLY_ESP32_IOT_WIFI_CONNECT_TOOLTIP)}},HR={init:function(){this.setColour(BR),this.appendDummyInput().appendField(ge.Msg.MIXLY_ESP32_IOT_EMQX_CONNECT_TOOLTIP),this.appendValueInput("SERVER").setCheck(String).appendField(ge.Msg.MIXLY_EMQX_SERVER).setAlign(ge.inputs.Align.RIGHT),this.appendValueInput("PORT").setCheck(Number).appendField(ge.Msg.MIXLY_EMQX_PORT).setAlign(ge.inputs.Align.RIGHT),this.appendValueInput("CLIENT_ID").setCheck(String).appendField(ge.Msg.MIXLY_EMQX_CLIENT_ID).setAlign(ge.inputs.Align.RIGHT),this.appendValueInput("USERNAME").setCheck(String).appendField(ge.Msg.MIXLY_WIFI_USERNAME).setAlign(ge.inputs.Align.RIGHT),this.appendValueInput("PASSWORD").setCheck(String).appendField(ge.Msg.MIXLY_IOT_PASSWORD).setAlign(ge.inputs.Align.RIGHT),this.setPreviousStatement(!0),this.setNextStatement(!0)}},WR={init:function(){this.setColour(BR),this.appendValueInput("TOPIC").appendField(ge.Msg.MIXLY_EMQX_SUBSCRIBE+ge.Msg.MIXLY_MICROBIT_MSG).appendField(ge.Msg.MIXLY_EMQX_PUBLISH_TOPIC),this.appendValueInput("MESSAGE").appendField(ge.Msg.blockpy_set_of),this.setInputsInline(!0),this.setOutput(!0)}},KR={init:function(){this.setColour(BR),this.appendDummyInput().appendField("mqtt"),this.appendValueInput("TOPIC").appendField(ge.Msg.MIXLY_EMQX_SUBSCRIBE+ge.Msg.MIXLY_MICROBIT_MSG).appendField(ge.Msg.MIXLY_EMQX_PUBLISH_TOPIC),this.appendValueInput("METHOD").appendField(ge.Msg.MIXLY_EMQX_SET_METHOD),this.setInputsInline(!0),this.setPreviousStatement(!0),this.setNextStatement(!0)}},JR={init:function(){this.setColour(BR),this.appendDummyInput().appendField("mqtt"),this.appendValueInput("TOPIC").appendField(ge.Msg.MIXLY_EMQX_PUBLISH_NEW).appendField(ge.Msg.MIXLY_EMQX_PUBLISH_TOPIC),this.appendValueInput("MSG").appendField(ge.Msg.HTML_BODY),this.setInputsInline(!0),this.setPreviousStatement(!0),this.setNextStatement(!0)}},qR={init:function(){this.setColour(BR),this.appendDummyInput().appendField("mqtt"+ge.Msg.MIXLY_EMQX_IS_CONNECT),this.setInputsInline(!0),this.setOutput(!0)}},QR="#A58C5B",zR={init:function(){this.setColour(QR),this.appendValueInput("PIN",Number).appendField(ge.Msg.MIXLY_BUTTON).appendField(ge.Msg.MIXLY_PIN).setCheck(Number),this.appendDummyInput().appendField(ge.Msg.MIXLY_IS_PRESSED),this.appendValueInput("STAT").appendField(ge.Msg.MIXLY_ELECLEVEL),this.setOutput(!0,Boolean),this.setInputsInline(!0),this.setTooltip(ge.Msg.MIXLY_SENOR_IS_PRESSED)}},jR={init:function(){this.setColour(QR),this.appendValueInput("PIN",Number).appendField(ge.Msg.MIXLY_BUTTON).appendField(ge.Msg.MIXLY_PIN).setCheck(Number),this.appendDummyInput().appendField(ge.Msg.MIXLY_WAS_PRESSED),this.appendValueInput("STAT").appendField(ge.Msg.MIXLY_ELECLEVEL),this.setOutput(!0,Boolean),this.setInputsInline(!0),this.setTooltip(ge.Msg.MIXLY_SENOR_WAS_PRESSED)}},$R={init:function(){this.setColour(QR),this.appendValueInput("PIN",Number).appendField(ge.Msg.MIXLY_BUTTON).appendField(ge.Msg.MIXLY_PIN).setCheck(Number),this.appendDummyInput().appendField(ge.Msg.MIXLY_GET_PRESSES),this.appendValueInput("VAR").setCheck(Number).appendField(ge.Msg.MIXLY_GET_PRESSES_TIME),this.setOutput(!0,Number),this.setInputsInline(!0),this.setTooltip(ge.Msg.PROCEDURES_DEFRETURN_RETURN+ge.Msg.MIXLY_BUTTON+ge.Msg.MIXLY_GET_PRESSES)}},ZR={init:function(){this.setColour(QR),this.appendValueInput("PIN",Number).appendField(ge.Msg.MIXLY_BUTTON).appendField(ge.Msg.MIXLY_PIN).setCheck(Number),this.appendDummyInput("").appendField(ge.Msg.MIXLY_MODE).appendField(new ge.FieldDropdown([[ge.Msg.MIXLY_RISING,"machine.Pin.IRQ_RISING"],[ge.Msg.MIXLY_FALLING,"machine.Pin.IRQ_FALLING"],[ge.Msg.MIXLY_CHANGE,"(machine.Pin.IRQ_RISING | machine.Pin.IRQ_FALLING)"]]),"mode"),this.appendValueInput("DO").appendField(ge.Msg.MIXLY_DO),this.setPreviousStatement(!0),this.setNextStatement(!0),this.setTooltip(ge.Msg.MIXLY_TOOLTIP_INOUT_ATTACHINTERRUPT)}},ec={init:function(){this.setColour(QR),this.appendValueInput("SUB").appendField("MPU9250").setCheck("var"),this.appendDummyInput("").appendField(ge.Msg.MIXLY_MICROBIT_JS_CURRENT_GESTURE).appendField(new ge.FieldDropdown([[ge.Msg.MIXLY_MICROBIT_shake,"shake"],[ge.Msg.MIXLY_UP,"up"],[ge.Msg.MIXLY_DOWN,"down"],[ge.Msg.MIXLY_LEFT,"left"],[ge.Msg.MIXLY_RIGHT,"right"],[ge.Msg.MIXLY_MICROBIT_face_up,"face up"],[ge.Msg.MIXLY_MICROBIT_face_down,"face down"],[ge.Msg.MIXLY_MICROBIT_freefall,"freefall"],["3g","3g"],["6g","6g"],["8g","8g"]]),"gesture"),this.appendStatementInput("DO").appendField(ge.Msg.MIXLY_DO),this.setPreviousStatement(!0),this.setNextStatement(!0);var e=this;this.setTooltip((function(){var t=e.getFieldValue("gesture"),i=ge.Msg.MIXLY_MICROBIT_JS_CURRENT,n=ge.Msg.MSG.catSensor,s=ge.Msg.MIXLY_MICROBIT_JS_STATE,_=ge.Msg.MIXLY_MICROBIT_PERFORMANCE;return i+n+s+{shake:ge.Msg.MIXLY_MICROBIT_shake,up:ge.Msg.MIXLY_UP,down:ge.Msg.MIXLY_DOWN,left:ge.Msg.MIXLY_LEFT,right:ge.Msg.MIXLY_RIGHT,"face up":ge.Msg.MIXLY_MICROBIT_face_up,"face down":ge.Msg.MIXLY_MICROBIT_face_down,freefall:ge.Msg.MIXLY_MICROBIT_freefall,"3g":"3g","6g":"6g","8g":"8g"}[t]+_}))}},tc={init:function(){this.setColour(QR),this.appendValueInput("SUB").appendField(ge.Msg.MIXLY_ADXL345).setCheck("var"),this.appendDummyInput().appendField(ge.Msg.MIXLY_MICROBIT_JS_ACCELERATION).appendField(new ge.FieldDropdown([["x","x"],["y","y"],["z","z"],["(x,y,z)","values"]]),"key"),this.setOutput(!0,Number),this.setInputsInline(!0),this.setTooltip(ge.Msg.MIXLY_MICROBIT_JS_ACCELERATION);var e=this;this.setTooltip((function(){var t=e.getFieldValue("key"),i=ge.Msg.MIXLY_MICROBIT_PY_STORAGE_GET,n=ge.Msg.MIXLY_MICROBIT_Direction,s=ge.Msg.MIXLY_MICROBIT_JS_ACCELERATION1;return i+{x:"x",y:"y",z:"z","(x,y,z)":ge.Msg.MIXLY_MICROBIT_Shiliang_Direction}[t]+n+s}))}},ic={init:function(){this.setColour(QR),this.appendDummyInput().appendField(ge.Msg.MIXLY_MICROBIT_JS_LIGHT_LEVEL),this.setOutput(!0,Number),this.setInputsInline(!0),this.setTooltip(ge.Msg.MIXLY_ESP32_SENSOR_LIGHT_LEVEL_TOOLTIP)}},nc={init:function(){this.setColour(QR),this.appendValueInput("PIN",Number).appendField(new ge.FieldDropdown([["DHT11","DHT11"],["DHT22","DHT22"]]),"TYPE").appendField(ge.Msg.MIXLY_PIN).setCheck(Number),this.appendDummyInput("").appendField(new ge.FieldDropdown(nc.METHOD),"WHAT"),this.setOutput(!0,Number);var e=this;this.setTooltip((function(){var t=e.getFieldValue("WHAT");return{temperature:ge.Msg.MIXLY_TOOLTIP_BLOCKGROUP_GET_TEM,relative_humidity:ge.Msg.MIXLY_TOOLTIP_BLOCKGROUP_GET_HUM,tempandhum:ge.Msg.MIXLY_TOOLTIP_BLOCKGROUP_GET_TEM_HUM}[t]}))},METHOD:[[ge.Msg.MIXLY_GETTEMPERATUE,"temperature"],[ge.Msg.MIXLY_GETHUMIDITY,"humidity"]]},sc={init:function(){this.setColour(QR),this.appendDummyInput().appendField(ge.Msg.MIXLY_ESP32_EXTERN_LIGHT),this.appendValueInput("PIN",Number).appendField(ge.Msg.MIXLY_PIN).setCheck(Number),this.appendDummyInput().appendField(ge.Msg.MIXLY_ESP32_EXTERN_VALUE),this.setOutput(!0,Number),this.setInputsInline(!0),this.setTooltip(ge.Msg.ESP32_SENSOR_NIXGO_LIGHT_TOOLTIP)}},_c={init:function(){this.setColour(QR),this.appendDummyInput().appendField(ge.Msg.MIXLY_ESP32_EXTERN_SOUND),this.appendValueInput("PIN",Number).appendField(ge.Msg.MIXLY_PIN).setCheck(Number),this.appendDummyInput().appendField(ge.Msg.MIXLY_ESP32_EXTERN_VALUE),this.setOutput(!0,Number),this.setInputsInline(!0),this.setTooltip(ge.Msg.ESP32_SENSOR_NIXGO_SOUND_TOOLTIP)}},oc={init:function(){this.setColour(QR),this.appendDummyInput().appendField(ge.Msg.MIXLY_MICROBIT_PY_STORAGE_GET).appendField(new ge.FieldDropdown([[ge.Msg.TEXT_TRIM_LEFT,"left"],[ge.Msg.TEXT_TRIM_RIGHT,"right"]]),"direction").appendField(ge.Msg.MIXLY_ESP32_NEAR),this.setOutput(!0,Number),this.setInputsInline(!0);var e=this;this.setTooltip((function(){var t=e.getFieldValue("direction"),i=ge.Msg.MIXLY_ESP32_SENSOR_MIXGO_PIN_NEAR_TOOLTIP,n=ge.Msg.MIXLY_ESP32_NEAR;return i+{left:ge.Msg.TEXT_TRIM_LEFT,right:ge.Msg.TEXT_TRIM_RIGHT}[t]+n}))}},pc={init:function(){this.setColour(QR),this.appendValueInput("SUB").appendField(ge.Msg.MIXLY_ALTITUDE_SENSOR+" BMP280").setCheck("var"),this.appendDummyInput("").appendField(new ge.FieldDropdown([[ge.Msg.MIXLY_GETTEMPERATUE,"get_BMP_temperature()"],[ge.Msg.MIXLY_GETPRESSURE,"get_BMP_pressure()"]]),"key"),this.setOutput(!0,Number),this.setInputsInline(!0);var e=this;this.setTooltip((function(){var t=e.getFieldValue("key");return{"get_BMP_temperature()":ge.Msg.MIXLY_MICROBIT_SENSOR_BMP_temperature_TOOLTIP,"get_BMP_pressure()":ge.Msg.MIXLY_MICROBIT_SENSOR_BMP_press_TOOLTIP}[t]}))}},ac={init:function(){this.setColour(QR),this.appendValueInput("SUB").appendField(ge.Msg.MIXLY_TEMP_AND_HUMIDITY_SENSOR+" SHT20").setCheck("var"),this.appendDummyInput("").appendField(new ge.FieldDropdown([[ge.Msg.MIXLY_GETTEMPERATUE,"get_SHT_temperature()"],[ge.Msg.MIXLY_GETHUMIDITY,"get_SHT_relative_humidity()"]]),"key"),this.setOutput(!0,Number),this.setInputsInline(!0);var e=this;this.setTooltip((function(){var t=e.getFieldValue("key");return{"get_SHT_temperature()":ge.Msg.MIXLY_MICROBIT_SENSOR_SHT_temperature_TOOLTIP,"get_SHT_relative_humidity()":ge.Msg.MIXLY_MICROBIT_SENSOR_SHT_HUM_TOOLTIP}[t]}))}},uc={init:function(){this.setColour(QR),this.appendValueInput("PIN",Number).appendField("DS18X20 "+ge.Msg.MIXLY_PIN).setCheck(Number),this.appendDummyInput("").appendField(ge.Msg.MIXLY_GETTEMPERATUE),this.setInputsInline(!0),this.setOutput(!0,Number),this.setTooltip(ge.Msg.MIXLY_MICROBIT_SENSOR_DS18X20_TOOLTIP)}},rc={init:function(){this.setColour(QR),this.appendDummyInput("").appendField("LM35"+ge.Msg.MIXLY_TEMP),this.appendValueInput("PIN",Number).appendField(ge.Msg.MIXLY_PIN).setCheck(Number),this.appendDummyInput("").appendField(ge.Msg.MIXLY_GETTEMPERATUE),this.setInputsInline(!0),this.setOutput(!0,Number),this.setTooltip(ge.Msg.MIXLY_TOOLTIP_LM35)}},lc={init:function(){this.setColour(QR),this.appendValueInput("I2CSUB").appendField(ge.Msg.CONTROLS_FOR_INPUT_WITH+"I2C").setCheck("var"),this.appendValueInput("SUB").appendField(ge.Msg.MIXLY_MICROPYTHON_SOCKET_MAKE).setCheck("var"),this.appendDummyInput("").appendField(ge.Msg.MIXLY_SETUP+ge.Msg.LISTS_SET_INDEX_INPUT_TO).appendField(new ge.FieldDropdown([[ge.Msg.MIXLY_ESP32_EXTERN_LIGHT+"(LTR308ALS)","LTR308"],[ge.Msg.MIXLY_COLOR_SENSOR+"(LTR381RGB)","LTR381RGB"],[ge.Msg.MIXLY_COLOR_SENSOR+"(UCS12071)","UCS12071"],[ge.Msg.MIXLY_EXTERN_LIGHTUV+"(LTR390UV)","LTR390UV"],[ge.Msg.MIXLY_ALTITUDE_SENSOR+"(HP203X)","HP203X"],[ge.Msg.MIXLY_ALTITUDE_SENSOR+"(SPL06_001)","SPL06_001"],[ge.Msg.MIXLY_ALTITUDE_SENSOR+"(MS5611)","MS5611"],[ge.Msg.MIXLY_ALTITUDE_SENSOR+"(BMP280)","BMP280"],[ge.Msg.MIXLY_TEMP_AND_HUMIDITY_SENSOR+"(SHTC3)","SHTC3"],[ge.Msg.MIXLY_TEMP_AND_HUMIDITY_SENSOR+"(AHT21)","AHT21"],[ge.Msg.MIXLY_TEMP_AND_HUMIDITY_SENSOR+"(SHT20)","SHT20"],[ge.Msg.MIXLY_LASER_RANGE_SENSOR+"(VL53L0X)","VL53L0X"],[ge.Msg.MIXLY_GEOMAGNETIC_SENSOR+"(QMC5883L)","QMC5883L"],[ge.Msg.MIXLY_ESP32_MAX30102+"(MAX30102)","MAX30102"],[ge.Msg.HTML_COLOUR+"、"+ge.Msg.MIXLY_ENVIRONMENT_LIGHT+"、"+ge.Msg.MIXLY_NEXT+"、"+ge.Msg.MIXLY_ESP32_APDS9960+"(APDS9960)","APDS9960"],[ge.Msg.MIXLY_NINE_AXIS_SENSOR+"(MPU9250)","MPU9250"],[ge.Msg.MixGo_MPU9250+"(ADXL345)","ADXL345"],["RFID","RFID"],[ge.Msg.MIXLY_RADAR_SENSOR+"(CBR817)","CBR817"],[ge.Msg.MIXLY_AipSpeech_asr+"(CI130X)","CI130X"],[ge.Msg.MIXLY_TVOC_CO2_SENSOR+"(AGS10)","AGS10"]]),"key"),this.setInputsInline(!0),this.setPreviousStatement(!0,null),this.setNextStatement(!0,null)}},dc={init:function(){this.setColour(QR),this.appendValueInput("SUB").appendField(ge.Msg.MIXLY_RADAR+"CBR817").setCheck("var"),this.appendDummyInput("").appendField(ge.Msg.LISTS_SET_INDEX_SET+ge.Msg.MIXlY_INTERACTION),this.appendValueInput("VAR").appendField(ge.Msg.MIXLY_DETECTION_THRESHOLD),this.appendValueInput("VAR2").appendField(ge.Msg.MIXLY_DELAY_TIME),this.appendDummyInput().appendField("ms"),this.setPreviousStatement(!0),this.setNextStatement(!0),this.setInputsInline(!0),this.setTooltip(ge.Msg.MIXLY_THRESHOLD_TOOLTIP+" ; "+ge.Msg.MIXLY_DELAY_TIME_RANGE)}},Ic={init:function(){this.setColour(QR),this.appendDummyInput("").appendField(ge.Msg.MIXLY_RADAR).appendField(ge.Msg.LISTS_SET_INDEX_SET+ge.Msg.MIXlY_INTERACTION),this.appendValueInput("VAR").appendField(ge.Msg.MIXLY_DETECTION_THRESHOLD),this.appendValueInput("VAR2").appendField(ge.Msg.MIXLY_DELAY_TIME),this.appendDummyInput().appendField("ms"),this.setPreviousStatement(!0),this.setNextStatement(!0),this.setInputsInline(!0),this.setTooltip(ge.Msg.MIXLY_THRESHOLD_TOOLTIP+" ; "+ge.Msg.MIXLY_DELAY_TIME_RANGE)}},Tc={init:function(){this.setColour(QR),this.appendValueInput("SUB").appendField(ge.Msg.MIXLY_RADAR+"CBR817").setCheck("var"),this.appendDummyInput("").appendField(ge.Msg.MIXLY_GET_TO_INTERACTION),this.setOutput(!0),this.setInputsInline(!0)}},Mc={init:function(){this.setColour(QR),this.appendDummyInput("").appendField(ge.Msg.MIXLY_RADAR).appendField(ge.Msg.MIXLY_GET_TO_INTERACTION),this.setOutput(!0),this.setInputsInline(!0)}},hc={init:function(){this.setColour(QR),this.appendValueInput("SUB").appendField(ge.Msg.MIXLY_AipSpeech_asr+"CI130X").setCheck("var"),this.appendDummyInput("").appendField(ge.Msg.MIXLY_IDENTIFY_ONCE_AND_SAVE),this.setPreviousStatement(!0),this.setNextStatement(!0),this.setInputsInline(!0)}},mc={init:function(){this.setColour(QR),this.appendValueInput("SUB").appendField(ge.Msg.MIXLY_AipSpeech_asr+"CI130X").setCheck("var"),this.appendDummyInput("").appendField(ge.Msg.MIXLY_GET).appendField(new ge.FieldDropdown([[ge.Msg.MIXLY_HELLO_XIAOZHI,"1"],[ge.Msg.MIXLY_XIAOZHIXIAOZHI,"2"],[ge.Msg.MIXLY_THE_FIRST,"3"],[ge.Msg.MIXLY_THE_SECOND,"4"],[ge.Msg.MIXLY_THE_THIRD,"5"],[ge.Msg.MIXLY_THE_FOURTH,"6"],[ge.Msg.MIXLY_THE_FIFTH,"7"],[ge.Msg.MIXLY_THE_SIXTH,"8"],[ge.Msg.MIXLY_THE_SEVENTH,"9"],[ge.Msg.MIXLY_THE_EIGHTH,"10"],[ge.Msg.MIXLY_THE_NINTH,"11"],[ge.Msg.MIXLY_THE_TENTH,"12"],[ge.Msg.MIXLY_THE_ELEVENTH,"13"],[ge.Msg.MIXLY_THE_TWELFTH,"14"],[ge.Msg.MIXLY_THE_13TH,"15"],[ge.Msg.MIXLY_THE_14TH,"16"],[ge.Msg.MIXLY_THE_15TH,"17"],[ge.Msg.MIXLY_THE_16TH,"18"],[ge.Msg.MIXLY_THE_17TH,"19"],[ge.Msg.MIXLY_THE_18TH,"20"],[ge.Msg.MIXLY_THE_19TH,"21"],[ge.Msg.MIXLY_THE_20TH,"22"],[ge.Msg.MIXLY_Turn_on_the_lights,"23"],[ge.Msg.MIXLY_Turn_off_the_lights,"24"],[ge.Msg.MIXLY_Turn_up_the_brightness,"25"],[ge.Msg.MIXLY_Turn_down_the_brightness,"26"],[ge.Msg.MIXLY_Set_it_to_red,"27"],[ge.Msg.MIXLY_Set_it_to_orange,"28"],[ge.Msg.MIXLY_Set_it_to_yellow,"29"],[ge.Msg.MIXLY_Set_it_to_green,"30"],[ge.Msg.MIXLY_Set_it_to_cyan,"31"],[ge.Msg.MIXLY_Set_it_to_blue,"32"],[ge.Msg.MIXLY_Set_it_to_purple,"33"],[ge.Msg.MIXLY_Set_it_to_white,"34"],[ge.Msg.MIXLY_Turn_on_the_fan,"35"],[ge.Msg.MIXLY_Turn_off_the_fan,"36"],[ge.Msg.MIXLY_First_gear,"37"],[ge.Msg.MIXLY_Wind_speed_second,"38"],[ge.Msg.MIXLY_Third_gear,"39"],[ge.Msg.MIXLY_Previous,"40"],[ge.Msg.MIXLY_Next_page,"41"],[ge.Msg.MIXLY_Show_smiley_face,"42"],[ge.Msg.MIXLY_Show_crying_face,"43"],[ge.Msg.MIXLY_Show_love,"44"],[ge.Msg.MIXLY_Close_display,"45"],[ge.Msg.MIXLY_Start_execution,"46"],[ge.Msg.MIXLY_FORWARD,"47"],[ge.Msg.MIXLY_BACKWARD,"48"],[ge.Msg.MIXLY_TURNLEFT,"49"],[ge.Msg.MIXLY_TURNRIGHT,"50"],[ge.Msg.MIXLY_STOP,"51"],[ge.Msg.MIXLY_Accelerate,"52"],[ge.Msg.MIXLY_retard,"53"],[ge.Msg.ROTATION_FORWARD,"54"],[ge.Msg.ROTATION_BACKWARD,"55"],[ge.Msg.MIXLY_Query_temperature,"56"],[ge.Msg.MIXLY_Query_humidity,"57"],[ge.Msg.MIXLY_Query_brightness,"58"],[ge.Msg.MIXLY_Query_sound,"59"],[ge.Msg.MIXLY_Query_time,"60"],[ge.Msg.MIXLY_Query_distance,"61"],[ge.Msg.MIXLY_Query_pressure,"62"],[ge.Msg.MIXLY_Query_key,"63"],[ge.Msg.MIXLY_Query_touch,"64"],[ge.Msg.MIXLY_Query_color,"65"]]),"cmd").appendField(ge.Msg.MIXLY_WHETHER+ge.Msg.MIXLY_BE_IDENTIFIED),this.setOutput(!0),this.setInputsInline(!0)}},Ec={init:function(){this.setColour(QR),this.appendValueInput("SUB").appendField(ge.Msg.MIXLY_AipSpeech_asr+"CI130X").setCheck("var"),this.appendDummyInput("").appendField(ge.Msg.MIXLY_GET).appendField(new ge.FieldDropdown([[ge.Msg.MIXLY_RECOGNIZED_STATE,"status1"],[ge.Msg.MIXLY_WHETHER_BROADCAST,"status2"],[ge.Msg.MIXLY_THE_RECOGNIZED_CMD,"result"]]),"key"),this.setOutput(!0),this.setInputsInline(!0),this.setTooltip(ge.Msg.MIXLY_CI130X_GET_THE_RECOGNIZED_STATE_TOOLTIP)}},Oc={init:function(){this.setColour(QR),this.appendValueInput("SUB").appendField(ge.Msg.MIXLY_AipSpeech_asr+"CI130X").setCheck("var"),this.appendDummyInput("").appendField(ge.Msg.MIXLY_MP3_PLAY).appendField(new ge.FieldDropdown([[ge.Msg.MIXLY_MICROBIT_JS_INOUT_PULL_NONE,"None"],[ge.Msg.MIXLY_WIND_SPEED,"154"],[ge.Msg.MIXLY_HYETAL,"155"],[ge.Msg.MIXLY_TEMPERATURE,"156"],[ge.Msg.MIXLY_Humidity,"157"],[ge.Msg.MIXLY_Altitude,"158"],[ge.Msg.MIXLY_SOUND,"159"],[ge.Msg.MIXLY_BRIGHTNESS,"160"],[ge.Msg.ME_GO_HALL_SENSOR_DISTANCE,"161"],[ge.Msg.MIXLY_SERVO,"162"],[ge.Msg.MIXLY_MICROBIT_JS_BY_ANGLE,"163"],[ge.Msg.MIXLY_BUTTON2,"164"],[ge.Msg.MIXLY_ESP32_TOUCH,"165"],[ge.Msg.MIXLY_PAY,"166"],[ge.Msg.MIXLY_CARSH_CHANGE,"167"],[ge.Msg.MIXLY_COUNTDOWN,"168"],[ge.Msg.MIXLY_TIMING,"169"],[ge.Msg.MIXLY_AT_THE_MOMENT,"170"],[ge.Msg.MIXLY_MICROBIT_JS_CURRENT_GESTURE,"171"],[ge.Msg.MIXLY_FORWARD,"172"],[ge.Msg.MIXLY_BACKWARD,"173"],[ge.Msg.MIXLY_TURNLEFT,"174"],[ge.Msg.MIXLY_TURNRIGHT,"175"],[ge.Msg.MIXLY_STOP,"176"],[ge.Msg.MIXLY_Accelerate,"177"],[ge.Msg.MIXLY_retard,"178"],[ge.Msg.ROTATION_FORWARD,"179"],[ge.Msg.ROTATION_BACKWARD,"180"],[ge.Msg.TUPLE_JOIN,"181"],[ge.Msg.MIXLY_SHOW,"182"],[ge.Msg.MIXLY_LAMPLIGHT,"183"],[ge.Msg.MIXLY_ACCELERATION,"184"]]),"star"),this.appendValueInput("NUM").appendField(ge.Msg.MIXLY_NUMBER),this.appendDummyInput("").appendField(ge.Msg.MIXLY_UNIT).appendField(new ge.FieldDropdown([[ge.Msg.MIXLY_MICROBIT_JS_INOUT_PULL_NONE,"None"],[ge.Msg.MIXLY_YEAR,"117"],[ge.Msg.MIXLY_MONTH,"118"],[ge.Msg.MIXLY_DAY,"119"],[ge.Msg.MIXLY_HOUR,"120"],[ge.Msg.MIXLY_MINUTE,"121"],[ge.Msg.MIXLY_SECOND,"122"],[ge.Msg.MIXLY_WEEK2,"123"],[ge.Msg.MIXLY_RMB_UNIT,"124"],[ge.Msg.blockpy_setheading_degree,"125"],[ge.Msg.MIXLY_GEAR,"126"],[ge.Msg.MIXLY_LAYER,"127"],[ge.Msg.MIXLY_GRAM,"128"],[ge.Msg.MIXLY_METER,"129"],[ge.Msg.MIXLY_CENTIMETER,"130"],[ge.Msg.MIXLY_MILLIMETER,"131"],[ge.Msg.MIXLY_LUMEN,"132"],[ge.Msg.MIXLY_DECIBEL,"133"],[ge.Msg.MIXLY_hectopascal,"134"],[ge.Msg.MIXLY_PERCENT,"135"],[ge.Msg.MIXLY_CELSIUS,"136"],[ge.Msg.MIXLY_METER_PER_SEC,"137"],[ge.Msg.MIXLY_MICROBIT_Turn_on_display,"138"],[ge.Msg.MIXLY_MICROBIT_Turn_off_display,"139"],[ge.Msg.MIXLY_SUCCESS,"140"],[ge.Msg.MIXLY_FAILED,"141"],[ge.Msg.MIXLY_WRONG,"142"],[ge.Msg.MIXLY_GOOD,"143"],[ge.Msg.MIXLY_blockpy_set_add,"144"],[ge.Msg.MIXLY_DECREASE,"145"],[ge.Msg.COLOUR_RGB_RED,"146"],[ge.Msg.COLOUR_RGB_ORANGE,"147"],[ge.Msg.COLOUR_YELLOW,"148"],[ge.Msg.COLOUR_RGB_GREEN,"149"],[ge.Msg.COLOUR_CYAN,"150"],[ge.Msg.COLOUR_RGB_BLUE,"151"],[ge.Msg.COLOUR_RGB_PURPLE,"152"],[ge.Msg.COLOUR_RGB_WHITE,"153"]]),"end"),this.setPreviousStatement(!0),this.setNextStatement(!0),this.setInputsInline(!0)}},Rc={init:function(){this.setColour(QR),this.appendValueInput("SUB").appendField(ge.Msg.MIXLY_AipSpeech_asr+"CI130X").setCheck("var"),this.appendDummyInput("").appendField(ge.Msg.LISTS_SET_INDEX_SET+ge.Msg.MIXLY_SYSTEM+ge.Msg.MIXLY_CMD).appendField(new ge.FieldDropdown([[ge.Msg.MILXY_ENTER_WAKE_UP,"1"],[ge.Msg.MIXLY_INCREASE_VOLUME,"202"],[ge.Msg.MIXLY_REDUCE_VOLUME,"203"],[ge.Msg.MIXLY_MAX_VOLUME,"204"],[ge.Msg.MIXLY_MINIMUM,"205"],[ge.Msg.MIXLY_OPEN_RESPONSE,"206"],[ge.Msg.MIXLY_CLOSE_RESPONSE,"207"],[ge.Msg.MIXLY_QUIT_WAKE_UP,"208"]]),"cmd"),this.setPreviousStatement(!0),this.setNextStatement(!0),this.setInputsInline(!0)}},cc={init:function(){this.setColour(QR),this.appendDummyInput().appendField(ge.Msg.MIXLY_ESP32_MAX30102+" MAX30102"),this.appendValueInput("SUB").setCheck("var"),this.appendDummyInput().appendField(ge.Msg.MIXLY_GET).appendField(new ge.FieldDropdown([[ge.Msg.MIXLY_ESP32_MAX30102_IR,"[0]"],[ge.Msg.MIXLY_ESP32_MAX30102_RED,"[1]"],[ge.Msg.MIXLY_ESP32_MAX30102_IR+","+ge.Msg.MIXLY_ESP32_MAX30102_RED,""]]),"key"),this.setOutput(!0,Number),this.setInputsInline(!0)}},gc={init:function(){this.setColour(QR),this.appendDummyInput().appendField(ge.Msg.MIXLY_ESP32_APDS9960+" APDS9960"),this.appendValueInput("SUB").setCheck("var"),this.appendDummyInput().appendField(ge.Msg.MIXLY_GET).appendField(new ge.FieldDropdown([[ge.Msg.MIXLY_ESP32_APDS9960_COLOR,"color"],[ge.Msg.MIXLY_ESP32_APDS9960_GESTURE,"gesture"],[ge.Msg.MIXLY_ESP32_APDS9960_APPROACH,"proximity"]]),"key"),this.setOutput(!0,Number),this.setInputsInline(!0)}},Cc={init:function(){this.setColour(QR),this.appendDummyInput().appendField(ge.Msg.MIXLY_ESP32_EXTERN_LIGHT+" LTR308ALS"),this.appendValueInput("SUB").setCheck("var"),this.appendDummyInput().appendField(ge.Msg.MIXLY_GET_LIGHT_INTENSITY),this.setOutput(!0,Number),this.setInputsInline(!0)}},Sc={init:function(){this.setColour(QR),this.appendValueInput("SUB").appendField(ge.Msg.HTML_COLOUR+ge.Msg.MSG.catSensor+" LTR381RGB").setCheck("var"),this.appendDummyInput("").appendField(new ge.FieldDropdown([[ge.Msg.MIXLY_GET+ge.Msg.HTML_COLOUR,"[2]"],[ge.Msg.MIXLY_GET+ge.Msg.MIXLY_IR_STRENGTH,"[1]"],[ge.Msg.MIXLY_GET+ge.Msg.MIXLY_LIGHT_STRENGTH,"[0]"]]),"key"),this.setOutput(!0,Number),this.setInputsInline(!0)}},Ac={init:function(){this.setColour(QR),this.appendValueInput("SUB").appendField(ge.Msg.HTML_COLOUR+ge.Msg.MSG.catSensor+" UCS12071").setCheck("var"),this.appendDummyInput("").appendField(new ge.FieldDropdown([[ge.Msg.MIXLY_GET+"RGB"+ge.Msg.HTML_COLOUR,"0"],[ge.Msg.MIXLY_GET+ge.Msg.MIXLY_RGB_RAW,"1"],[ge.Msg.MIXLY_GET_ENV_LIGHT+ge.Msg.MIXLY_BRIGHTNESS,"2"],[ge.Msg.GET_IR_STRENGTH+ge.Msg.MIXLY_BRIGHTNESS,"3"]]),"key"),this.setOutput(!0,Number),this.setInputsInline(!0)}},Lc={init:function(){this.setColour(QR),this.appendValueInput("SUB").appendField(ge.Msg.MIXLY_EXTERN_LIGHTUV+" LTR390UV").setCheck("var"),this.appendDummyInput().appendField(new ge.FieldDropdown([[ge.Msg.MIXLY_GET_ENV_LIGHT,"E"],[ge.Msg.MIXLY_GET_ULTRAVIOLET,"U"]]),"key"),this.setOutput(!0,Number),this.setInputsInline(!0)}},Nc={init:function(){this.setColour(QR),this.appendDummyInput().appendField(ge.Msg.MIXLY_LASER_RANGE+" VL53L0X"),this.appendValueInput("SUB").setCheck("var"),this.appendDummyInput().appendField(ge.Msg.MIXLY_GET_DISTANCE+"(mm)"),this.setOutput(!0,Number),this.setInputsInline(!0)}},Dc={init:function(){this.setColour(QR),this.appendValueInput("SUB").appendField(ge.Msg.MIXLY_TEM_HUM+" SHTC3").setCheck("var"),this.appendDummyInput("").appendField(new ge.FieldDropdown([[ge.Msg.MIXLY_GETTEMPERATUE,"temperature"],[ge.Msg.MIXLY_GETHUMIDITY,"humidity"]]),"key"),this.setOutput(!0,Number),this.setInputsInline(!0);var e=this;this.setTooltip((function(){var t=e.getFieldValue("key");return{temperature:ge.Msg.MIXLY_MICROBIT_SENSOR_SHT_temperature_TOOLTIP,humidity:ge.Msg.MIXLY_MICROBIT_SENSOR_SHT_HUM_TOOLTIP}[t]}))}},fc={init:function(){this.setColour(QR),this.appendValueInput("SUB").appendField(ge.Msg.MIXLY_TEM_HUM+" AHT21").setCheck("var"),this.appendDummyInput("").appendField(new ge.FieldDropdown([[ge.Msg.MIXLY_GETTEMPERATUE,"temperature"],[ge.Msg.MIXLY_GETHUMIDITY,"humidity"]]),"key"),this.setOutput(!0,Number),this.setInputsInline(!0);var e=this;this.setTooltip((function(){var t=e.getFieldValue("key");return{temperature:ge.Msg.MIXLY_MICROBIT_SENSOR_SHT_temperature_TOOLTIP,relative_humidity:ge.Msg.MIXLY_MICROBIT_SENSOR_SHT_HUM_TOOLTIP}[t]}))}},Fc={init:function(){this.setColour(QR),this.appendValueInput("SUB").appendField(ge.Msg.MIXLY_Altitude+ge.Msg.MSG.catSensor+" HP203X").setCheck("var"),this.appendDummyInput("").appendField(new ge.FieldDropdown([[ge.Msg.MIXLY_GETPRESSURE,"pressure()"],[ge.Msg.MIXLY_GETTEMPERATUE,"temperature()"],[ge.Msg.MIXLY_GET_ALTITUDE,"altitude()"]]),"key"),this.setOutput(!0,Number),this.setInputsInline(!0)}},Pc={init:function(){this.setColour(QR),this.appendValueInput("SUB").appendField(ge.Msg.MIXLY_Altitude+ge.Msg.MSG.catSensor+" SPL06_001").setCheck("var"),this.appendDummyInput("").appendField(new ge.FieldDropdown([[ge.Msg.MIXLY_GETPRESSURE,"pressure()"],[ge.Msg.MIXLY_GETTEMPERATUE,"temperature()"],[ge.Msg.MIXLY_GET_ALTITUDE,"altitude()"]]),"key"),this.setOutput(!0,Number),this.setInputsInline(!0)}},vc={init:function(){this.setColour(QR),this.appendValueInput("SUB").appendField(ge.Msg.MIXLY_Altitude+ge.Msg.MSG.catSensor+" MS5611").setCheck("var"),this.appendDummyInput("").appendField(new ge.FieldDropdown([[ge.Msg.MIXLY_GETPRESSURE,"pressure()"],[ge.Msg.MIXLY_GETTEMPERATUE,"temperature()"],[ge.Msg.MIXLY_GET_ALTITUDE,"altitude()"]]),"key"),this.setOutput(!0,Number),this.setInputsInline(!0)}},Yc={init:function(){this.setColour(QR),this.appendValueInput("SUB").appendField(ge.Msg.MIXLY_Altitude+ge.Msg.MSG.catSensor+" MS5611").setCheck("var"),this.appendValueInput("VAR").appendField(ge.Msg.MIXLY_REF_TO_PRESSURE),this.appendDummyInput().appendField(ge.Msg.MIXLY_CAL_TO_ALTITUDE),this.setOutput(!0,Number),this.setInputsInline(!0)}},Xc={init:function(){this.setColour(QR),this.appendValueInput("SUB").appendField(ge.Msg.MIXLY_MIXGOPE_FIELD+ge.Msg.MSG.catSensor+" QMC5883L").setCheck("var"),this.appendDummyInput("").appendField(ge.Msg.MIXLY_MICROBIT_JS_GET).appendField(new ge.FieldDropdown([[ge.Msg.MIXLY_MICROBIT_JS_BY_ANGLE,"get_bearing()"],[ge.Msg.MIXLY_TEMPERATURE,"get_temp()"]]),"key"),this.setOutput(!0,Number),this.setInputsInline(!0)}},yc={init:function(){this.setColour(QR),this.appendValueInput("SUB").appendField("MPU9250").setCheck("var"),this.appendDummyInput("").appendField(ge.Msg.MIXLY_MICROBIT_JS_CURRENT_GESTURE).appendField(new ge.FieldDropdown([[ge.Msg.MIXLY_MICROBIT_shake,"shake"],[ge.Msg.MIXLY_UP,"up"],[ge.Msg.MIXLY_DOWN,"down"],[ge.Msg.MIXLY_LEFT,"left"],[ge.Msg.MIXLY_RIGHT,"right"],[ge.Msg.MIXLY_MICROBIT_face_up,"face up"],[ge.Msg.MIXLY_MICROBIT_face_down,"face down"]]),"gesture"),this.setOutput(!0);var e=this;this.setTooltip((function(){var t=e.getFieldValue("gesture"),i=ge.Msg.MIXLY_MICROBIT_JS_CURRENT,n=ge.Msg.MSG.catSensor,s=ge.Msg.MIXLY_MICROBIT_JS_STATE,_=ge.Msg.MIXLY_MICROBIT_PERFORMANCE;return i+n+s+{shake:ge.Msg.MIXLY_MICROBIT_shake,up:ge.Msg.MIXLY_UP,down:ge.Msg.MIXLY_DOWN,left:ge.Msg.MIXLY_LEFT,right:ge.Msg.MIXLY_RIGHT,"face up":ge.Msg.MIXLY_MICROBIT_face_up,"face down":ge.Msg.MIXLY_MICROBIT_face_down}[t]+_}))}},bc={init:function(){this.setColour(QR),this.appendValueInput("SUB").appendField(ge.Msg.MIXLY_NINE_AXIS_SENSOR+" MPU9250").setCheck("var"),this.appendDummyInput().appendField(ge.Msg.MIXLY_MICROBIT_JS_ACCELERATION).appendField(new ge.FieldDropdown([["x","x"],["y","y"],["z","z"],["(x,y,z)","values"]]),"key"),this.setOutput(!0,Number),this.setInputsInline(!0),this.setTooltip(ge.Msg.MIXLY_MICROBIT_JS_ACCELERATION);var e=this;this.setTooltip((function(){var t=e.getFieldValue("key"),i=ge.Msg.MIXLY_MICROBIT_PY_STORAGE_GET,n=ge.Msg.MIXLY_MICROBIT_Direction,s=ge.Msg.MIXLY_MICROBIT_JS_ACCELERATION1;return i+{x:"x",y:"y",z:"z","(x,y,z)":ge.Msg.MIXLY_MICROBIT_Shiliang_Direction}[t]+n+s}))}},xc={init:function(){this.setColour(QR),this.appendValueInput("SUB").appendField(ge.Msg.MIXLY_NINE_AXIS_SENSOR+" MPU9250").setCheck("var"),this.appendDummyInput().appendField(ge.Msg.MIXLY_MICROBIT_JS_GET+ge.Msg.MIXLY_MICROBIT_JS_FIELD_STRENGTH).appendField(new ge.FieldDropdown([["x","x"],["y","y"],["z","z"],["(x,y,z)","values"]]),"key"),this.setOutput(!0,Number),this.setInputsInline(!0);var e=this;this.setTooltip((function(){var t=e.getFieldValue("key"),i=ge.Msg.MIXLY_MICROBIT_PY_STORAGE_GET,n=ge.Msg.MIXLY_MICROBIT_Direction,s=ge.Msg.MIXLY_MICROBIT_JS_FIELD_STRENGTH;return i+{x:"x",y:"y",z:"z","(x,y,z)":ge.Msg.MIXLY_MICROBIT_Shiliang_Direction}[t]+n+s}))}},Vc={init:function(){this.setColour(QR),this.appendValueInput("SUB").appendField(ge.Msg.MIXLY_NINE_AXIS_SENSOR+" MPU9250").setCheck("var"),this.appendDummyInput().appendField(ge.Msg.MIXLY_MICROBIT_PY_STORAGE_GET+ge.Msg.MIXLY_ESP32_SENOR_GYRO).appendField(new ge.FieldDropdown([["x","x"],["y","y"],["z","z"],["(x,y,z)","values"]]),"key"),this.setOutput(!0,Number),this.setInputsInline(!0);var e=this;this.setTooltip((function(){var t=e.getFieldValue("key"),i=ge.Msg.MIXLY_MICROBIT_PY_STORAGE_GET,n=ge.Msg.MIXLY_MICROBIT_Direction,s=ge.Msg.MIXLY_ESP32_SENOR_GYRO;return i+{x:"x",y:"y",z:"z","(x,y,z)":ge.Msg.MIXLY_MICROBIT_Shiliang_Direction}[t]+n+s}))}},Bc={init:function(){this.setColour(QR),this.appendValueInput("SUB").appendField(ge.Msg.MIXLY_NINE_AXIS_SENSOR+" MPU9250").setCheck("var"),this.appendDummyInput().appendField(ge.Msg.MIXLY_MICROBIT_JS_CALIBRATE_COMPASS),this.setPreviousStatement(!0),this.setNextStatement(!0),this.setInputsInline(!0),this.setTooltip(ge.Msg.MIXLY_MICROBIT_JS_CALIBRATE_COMPASS)}},Gc={init:function(){this.setColour(QR),this.appendValueInput("SUB").appendField(ge.Msg.MIXLY_NINE_AXIS_SENSOR+" MPU9250").setCheck("var"),this.appendDummyInput().appendField(ge.Msg.MIXLY_GETTEMPERATUE),this.setOutput(!0,Number),this.setInputsInline(!0),this.setTooltip(ge.Msg.MIXLY_GETTEMPERATUE)}},Uc={init:function(){this.setColour(QR),this.appendValueInput("SUB").appendField("MPU9250").setCheck("var"),this.appendDummyInput().appendField(ge.Msg.MIXLY_MICROBIT_JS_GET_COMPASS).appendField(new ge.FieldDropdown([[ge.Msg.MIXLY_MICROBIT_JS_FIELD_STRENGTH,"strength"],[ge.Msg.MIXLY_MICROBIT_JS_BY_ANGLE,"heading"]]),"compass"),this.setOutput(!0,Number),this.setInputsInline(!0);var e=this;this.setTooltip((function(){var t=e.getFieldValue("compass");return ge.Msg.MIXLY_MICROBIT_JS_GET_COMPASS+{strength:ge.Msg.MIXLY_MICROBIT_JS_FIELD_STRENGTH,heading:ge.Msg.MIXLY_MICROBIT_JS_BY_ANGLE}[t]}))}},wc={init:function(){this.setColour(QR),this.appendValueInput("SUB").appendField("MPU9250").setCheck("var"),this.appendDummyInput().appendField(ge.Msg.MIXLY_MICROBIT_Reset_COMPASS),this.setPreviousStatement(!0),this.setNextStatement(!0),this.setInputsInline(!0),this.setTooltip(ge.Msg.MIXLY_MICROBIT_Reset_COMPASS)}},kc={init:function(){this.setColour(QR),this.appendValueInput("SPISUB").appendField(ge.Msg.CONTROLS_FOR_INPUT_WITH+"SPI").setCheck("var"),this.appendValueInput("PINSUB").appendField("CS"),this.appendValueInput("SUB").appendField(ge.Msg.MIXLY_MICROPYTHON_SOCKET_MAKE).setCheck("var"),this.appendDummyInput("").appendField(ge.Msg.MIXLY_SETUP+ge.Msg.LISTS_SET_INDEX_INPUT_TO).appendField(new ge.FieldDropdown([["RFID","RFID"],["WS-LoRa","Weather"]]),"key"),this.setInputsInline(!0),this.setPreviousStatement(!0,null),this.setNextStatement(!0,null),this.setFieldValue("RFID","key")}},Hc={init:function(){this.setColour(QR),this.appendDummyInput().appendField("RFID"+ge.Msg.MIXLY_RFID_READ_CARD),this.appendValueInput("SUB").setCheck("var"),this.appendValueInput("SECTOR").appendField(ge.Msg.MIXLY_LIST_INDEX),this.appendDummyInput("").appendField(new ge.FieldDropdown([[ge.Msg.MIXLY_RFID_READ_CARD_UID,"id"],[ge.Msg.MIXLY_MICROBIT_PY_STORAGE_ALL,"content"],[ge.Msg.MIXLY_ALL,"ALL"]]),"key"),this.setOutput(!0,Number),this.setInputsInline(!0)}},Wc={init:function(){this.setColour(QR),this.appendDummyInput().appendField("RFID"+ge.Msg.MIXLY_RFID_READ_CARD),this.appendValueInput("SUB").setCheck("var"),this.appendDummyInput("").appendField(ge.Msg.MIXLY_RFID_READ_CARD_UID),this.setOutput(!0,Number),this.setInputsInline(!0)}},Kc={init:function(){this.setColour(QR),this.appendDummyInput().appendField("RFID"+ge.Msg.MIXLY_RFID_READ_CARD),this.appendValueInput("SUB").setCheck("var"),this.appendValueInput("SECTOR").appendField(ge.Msg.MIXLY_LIST_INDEX),this.appendDummyInput("").appendField(ge.Msg.MIXLY_MICROBIT_PY_STORAGE_ALL),this.setOutput(!0,"Tuple"),this.setInputsInline(!0)}},Jc={init:function(){this.setColour(QR),this.appendDummyInput().appendField(ge.Msg.MIXLY_COMMUNICATION_RFID_WRITE),this.appendValueInput("SUB").setCheck("var"),this.appendValueInput("SECTOR").appendField(ge.Msg.MIXLY_LIST_INDEX),this.appendValueInput("CONTENT").appendField(ge.Msg.MIXLY_COMMUNICATION_WRITE_NUM),this.setInputsInline(!0),this.setPreviousStatement(!0,null),this.setNextStatement(!0,null)}},qc={init:function(){this.setColour(QR),this.appendDummyInput().appendField(ge.Msg.MIXLY_COMMUNICATION_RFID_WRITE),this.appendValueInput("SUB").setCheck("var"),this.appendValueInput("SECTOR").appendField(ge.Msg.MIXLY_LIST_INDEX),this.appendValueInput("CONTENT").appendField(ge.Msg.MIXLY_COMMUNICATION_WRITE_NUM),this.appendDummyInput().appendField(ge.Msg.RETURN_SUCCESS_OR_NOT),this.setInputsInline(!0),this.setOutput(!0,Boolean)}},Qc={init:function(){this.setColour(QR),this.appendDummyInput().appendField("RFID"),this.appendValueInput("SUB").setCheck("var"),this.appendDummyInput("").appendField(new ge.FieldDropdown([[ge.Msg.MIXLY_RFID_SCAN_OK,"0"],[ge.Msg.MIXLY_RFID_SCAN_NOTAGERR,"1"],[ge.Msg.MIXLY_RFID_SCAN_ERROR,"2"]]),"key"),this.setOutput(!0,Number),this.setInputsInline(!0)}},zc={init:function(){this.setColour(QR),this.appendValueInput("SUB").appendField("无线气象站 WS-LoRa").setCheck("var"),this.appendDummyInput("").appendField(ge.Msg.MIXLY_MICROBIT_JS_GET).appendField(new ge.FieldDropdown([["全部(元组)","data()[0]"],["全部(json)","data()[1]"],["全部(json,附带位置信息)","data()[2]"],["编号","data()[0][0]"],["电量","data()[0][1]"],["风速","data()[0][2]"],["阵风","data()[0][3]"],["风向","data()[0][4]"],["雨量","data()[0][5]"],["温度","data()[0][6]"],["湿度","data()[0][7]"],["光照","data()[0][8]"],["紫外线","data()[0][9]"],["大气压","data()[0][10]"],["信号强度","data()[0][11]"],["信噪比","data()[0][12]"]]),"key"),this.setOutput(!0,Number),this.setInputsInline(!0),this.setTooltip("返回气象数据元组 data= (设备id,电池状态,风速m/s,阵风m/s,风向°,雨量mm,温度℃,湿度%,光照Lux,UVI,大气压Pa,信号强度dB,信噪比dB)")}},jc={init:function(){this.setColour(QR),this.appendValueInput("SUB").appendField("无线气象站 WS-LoRa").setCheck("var"),this.appendDummyInput("").appendField(ge.Msg.MIXLY_SERIAL_AVAILABLE),this.setOutput(!0,Number),this.setInputsInline(!0)}},$c={init:function(){this.setColour(QR),this.appendValueInput("SUB").appendField("无线气象站 WS-LoRa").setCheck("var"),this.appendValueInput("BASE").appendField("以主题"),this.appendDummyInput("").appendField("串口发送至MixIO"),this.setInputsInline(!0),this.setPreviousStatement(!0,null),this.setNextStatement(!0,null)}},Zc={init:function(){this.setColour(QR),this.appendValueInput("SUB").appendField("无线气象站 WS-LoRa").setCheck("var"),this.itemCount_=2,this.updateShape_(),this.setPreviousStatement(!1),this.setNextStatement(!1),this.setInputsInline(!0),this.setMutator(new ge.icons.MutatorIcon(["weather_set_label_item"],this)),this.setPreviousStatement(!0),this.setNextStatement(!0),this.setTooltip()},mutationToDom:function(){var e=document.createElement("mutation");return e.setAttribute("items",this.itemCount_),e},domToMutation:function(e){this.itemCount_=parseInt(e.getAttribute("items"),10),this.updateShape_()},decompose:function(e){var t=e.newBlock("weather_set_label_container");t.initSvg();for(var i=t.getInput("STACK").connection,n=0;n>6),i.push(128|63&_)):(2048<=_&&_<=55295||57344<=_&&_<=65535)&&(n+=3,i.push(224|15&_>>12),i.push(128|63&_>>6),i.push(128|63&_))}for(s=0;s>8,255&n].concat(i)}(e,!0),i="",n=0;n=0?"0x700000":["mixgo_sant"].indexOf(n)>=0?"0xE00000":"0x3A0000","32x12 Matrix"==o?(t.definitions_.import_matrix32x12="import matrix32x12",i=s+" = matrix32x12.Matrix("+_+", font_address="+p+")\n"):"16x8 Matrix"==o&&(t.definitions_.import_matrix16x8="import matrix16x8",i=s+" = matrix16x8.Matrix("+_+")\n"),i},yP=function(e,t){return t.valueToCode(this,"SUB",t.ORDER_ATOMIC)+".shows("+t.valueToCode(this,"data",t.ORDER_ASSIGNMENT)+")\n"},bP=function(e,t){return t.valueToCode(this,"SUB",t.ORDER_ATOMIC)+".shows("+t.valueToCode(this,"data",t.ORDER_ASSIGNMENT)+", space="+t.valueToCode(this,"space",t.ORDER_ASSIGNMENT)+", center="+this.getFieldValue("center")+")\n"},xP=function(e,t){return t.valueToCode(this,"SUB",t.ORDER_ATOMIC)+".frame("+t.valueToCode(this,"data",t.ORDER_ASSIGNMENT)+")\n"},VP=function(e,t){return t.valueToCode(this,"SUB",t.ORDER_ATOMIC)+".frame("+t.valueToCode(this,"data",t.ORDER_ASSIGNMENT)+", delay="+t.valueToCode(this,"time",t.ORDER_ASSIGNMENT)+")\n"},BP=function(e,t){return t.valueToCode(this,"SUB",t.ORDER_ATOMIC)+".scroll("+t.valueToCode(this,"data",t.ORDER_ASSIGNMENT)+")\n"},GP=function(e,t){return t.valueToCode(this,"SUB",t.ORDER_ATOMIC)+".scroll("+t.valueToCode(this,"data",t.ORDER_ASSIGNMENT)+", speed="+t.valueToCode(this,"time",t.ORDER_ASSIGNMENT)+", space="+t.valueToCode(this,"space",t.ORDER_ASSIGNMENT)+")\n"},UP=function(e,t){var i=t.valueToCode(this,"SUB",t.ORDER_ATOMIC);return i+".fill(0)\n"+i+".show()\n"},wP=function(e,t){return t.valueToCode(this,"SUB",t.ORDER_ATOMIC)+"."+e.getFieldValue("OP")+"("+t.valueToCode(e,"val",t.ORDER_ATOMIC)+")\n"},kP=function(e,t){return[t.valueToCode(this,"SUB",t.ORDER_ATOMIC)+".pixel(int("+t.valueToCode(e,"x",t.ORDER_ATOMIC)+"), int("+t.valueToCode(e,"y",t.ORDER_ATOMIC)+"))",t.ORDER_ATOMIC]},HP=function(e,t){var i=t.valueToCode(this,"SUB",t.ORDER_ATOMIC);return i+".pixel(int("+t.valueToCode(this,"x",t.ORDER_ASSIGNMENT)+"), int("+t.valueToCode(this,"y",t.ORDER_ASSIGNMENT)+"), "+t.valueToCode(this,"STAT",t.ORDER_ATOMIC)+")\n"+i+".show()\n"},WP=function(e,t){return[t.valueToCode(this,"SUB",t.ORDER_ATOMIC)+".get_brightness()",t.ORDER_ATOMIC]},KP=function(e,t){return t.valueToCode(this,"SUB",t.ORDER_ATOMIC)+".set_brightness("+t.valueToCode(this,"x",t.ORDER_ASSIGNMENT)+")\n"},JP=function(e,t){return[t.valueToCode(this,"SUB",t.ORDER_ATOMIC)+"."+e.getFieldValue("image"),t.ORDER_ATOMIC]},qP=function(e,t){return[t.valueToCode(this,"SUB",t.ORDER_ATOMIC)+".map_"+e.getFieldValue("OP")+"("+t.valueToCode(e,"A",t.ORDER_ATOMIC)+", "+t.valueToCode(e,"B",t.ORDER_ATOMIC)+")",t.ORDER_ATOMIC]},QP=function(e,t){return[t.valueToCode(this,"SUB",t.ORDER_ATOMIC)+".map_invert("+t.valueToCode(e,"A",t.ORDER_ATOMIC)+")",t.ORDER_ATOMIC]},zP=function(e,t){t.definitions_.import_machine="import machine",t.definitions_.import_ssd1306="import ssd1306";var i=t.valueToCode(this,"I2CSUB",t.ORDER_ATOMIC);return t.valueToCode(this,"SUB",t.ORDER_ATOMIC)+" = ssd1306.SSD1306_I2C("+t.valueToCode(this,"row",t.ORDER_ATOMIC)+", "+t.valueToCode(this,"column",t.ORDER_ATOMIC)+", "+i+")\n"},jP=function(e,t){return t.definitions_.import_machine="import machine",t.definitions_.import_ssd1306="import ssd1306",t.valueToCode(this,"VAR",t.ORDER_ATOMIC)+".show_str("+(t.valueToCode(this,"Text_line1",t.ORDER_ASSIGNMENT)||"''")+", "+(t.valueToCode(this,"Text_line2",t.ORDER_ASSIGNMENT)||"''")+", "+(t.valueToCode(this,"Text_line3",t.ORDER_ASSIGNMENT)||"''")+", "+(t.valueToCode(this,"Text_line4",t.ORDER_ASSIGNMENT)||"''")+")\n"},$P=function(e,t){return t.definitions_.import_machine="import machine",t.definitions_.import_ssd1306="import ssd1306",t.valueToCode(this,"VAR",t.ORDER_ATOMIC)+".show_line("+t.valueToCode(this,"x1",t.ORDER_ATOMIC)+", "+t.valueToCode(this,"y1",t.ORDER_ATOMIC)+", "+t.valueToCode(this,"x2",t.ORDER_ATOMIC)+", "+t.valueToCode(this,"y2",t.ORDER_ATOMIC)+", 1)\n"},ZP=function(e,t){t.definitions_.import_machine="import machine",t.definitions_.import_ssd1306="import ssd1306";var i=t.valueToCode(this,"VAR",t.ORDER_ATOMIC),n=t.valueToCode(this,"x",t.ORDER_ATOMIC),s=t.valueToCode(this,"y",t.ORDER_ATOMIC),_=t.valueToCode(this,"width",t.ORDER_ATOMIC),o=t.valueToCode(this,"height",t.ORDER_ATOMIC),p="TRUE"==this.getFieldValue("fill")?"True":"False",a=this.getFieldValue("OP");switch(p){case"True":return i+".show_fill_rect("+n+", "+s+", "+_+", "+o+", "+a+")\n";case"False":return i+".show_rect("+n+", "+s+", "+_+", "+o+", "+a+")\n"}},ev=function(e,t){t.definitions_.import_machine="import machine",t.definitions_.import_ssd1306="import ssd1306";var i=t.valueToCode(this,"VAR",t.ORDER_ATOMIC),n=t.valueToCode(this,"x",t.ORDER_ATOMIC),s=t.valueToCode(this,"y",t.ORDER_ATOMIC),_=t.valueToCode(this,"length",t.ORDER_ATOMIC);return i+".show_"+this.getFieldValue("direction")+"("+n+", "+s+", "+_+", 1)\n"},tv=function(e,t){return["ON"==this.getFieldValue("ONOFF")?"1":"0",t.ORDER_ATOMIC]},iv=function(e,t){t.definitions_.import_matrix="import matrix";var i=e.getFieldValue("OP");return[t.valueToCode(e,"img",t.ORDER_ATOMIC)+".shift_"+i+"("+t.valueToCode(e,"val",t.ORDER_ATOMIC)+")",t.ORDER_ATOMIC]},nv=function(e,t){var i=t.valueToCode(this,"SUB",t.ORDER_ATOMIC);return t.definitions_.import_ssd1306="import ssd1306",t.definitions_.import_machine="import machine",i+".show_fill("+this.getFieldValue("key")+")\n"},sv=function(e,t){return["matrix.Image."+this.getFieldValue("ANIMATION"),t.ORDER_ATOMIC]},_v=function(e,t){var i=t.valueToCode(this,"VAR",t.ORDER_ATOMIC);t.definitions_.import_machine="import machine",t.definitions_.import_ssd1306="import ssd1306";var n=t.valueToCode(this,"x",t.ORDER_ATOMIC),s=t.valueToCode(this,"y",t.ORDER_ATOMIC),_=t.valueToCode(this,"r",t.ORDER_ATOMIC),o="TRUE"==this.getFieldValue("fill")?"True":"False",p=this.getFieldValue("OP");switch(o){case"True":return i+".show_fill_circle("+n+", "+s+", "+_+", "+p+")\n";case"False":return i+".show_circle("+n+", "+s+", "+_+", "+p+")\n"}},ov=function(e,t){var i=t.valueToCode(this,"VAR",t.ORDER_ATOMIC);t.definitions_.import_machine="import machine",t.definitions_.import_ssd1306="import ssd1306";var n=t.valueToCode(this,"x0",t.ORDER_ATOMIC),s=t.valueToCode(this,"y0",t.ORDER_ATOMIC),_=t.valueToCode(this,"x1",t.ORDER_ATOMIC),o=t.valueToCode(this,"y1",t.ORDER_ATOMIC),p=t.valueToCode(this,"x2",t.ORDER_ATOMIC),a=t.valueToCode(this,"y2",t.ORDER_ATOMIC),u="TRUE"==this.getFieldValue("fill")?"True":"False",r=this.getFieldValue("OP");switch(u){case"True":return i+".show_fill_triangle("+n+", "+s+", "+_+", "+o+", "+p+", "+a+", "+r+")\n";case"False":return i+".show_triangle("+n+", "+s+", "+_+", "+o+", "+p+", "+a+", "+r+")\n"}},pv=function(e,t){return t.definitions_.import_machine="import machine",t.definitions_.import_ssd1306="import ssd1306",t.valueToCode(this,"VAR",t.ORDER_ATOMIC)+".show_bitmap("+t.valueToCode(this,"START_X",t.ORDER_ATOMIC)+", "+t.valueToCode(this,"START_Y",t.ORDER_ATOMIC)+", "+t.valueToCode(this,"bitmap_name",t.ORDER_ATOMIC)+","+t.valueToCode(this,"WIDTH",t.ORDER_ATOMIC)+","+t.valueToCode(this,"HEIGHT",t.ORDER_ATOMIC)+")\n"},av=function(e,t){return t.definitions_.import_machine="import machine",t.definitions_.import_ssd1306="import ssd1306",t.valueToCode(this,"VAR",t.ORDER_ATOMIC)+".show_pixel("+t.valueToCode(this,"POS_X",t.ORDER_ATOMIC)+", "+t.valueToCode(this,"POS_Y",t.ORDER_ATOMIC)+")\n"},uv=function(e,t){var i,n=t.valueToCode(this,"SUB",t.ORDER_ATOMIC),s=t.valueToCode(this,"CLK",t.ORDER_ATOMIC),_=t.valueToCode(this,"DIO",t.ORDER_ATOMIC),o=this.getFieldValue("key");return"TM1650"==o?(t.definitions_.import_tm1650="import tm1650",i=n+" = tm1650."+o+"(clk="+s+",dio="+_+")\n"):"TM1637"==o&&(t.definitions_.import_tm1637="import tm1637",i=n+" = tm1637."+o+"(clk="+s+",dio="+_+")\n"),i},rv=function(e,t){return t.valueToCode(this,"VAR",t.ORDER_ATOMIC)+"."+this.getFieldValue("STAT")+"()\n"},lv=function(e,t){return t.valueToCode(this,"VAR",t.ORDER_ATOMIC)+".shownum("+t.valueToCode(this,"VALUE",t.ORDER_ATOMIC)+")\n"},dv=function(e,t){return t.valueToCode(this,"VAR",t.ORDER_ATOMIC)+".showDP("+t.valueToCode(this,"NO",t.ORDER_ATOMIC)+", "+t.valueToCode(this,"STAT",t.ORDER_ATOMIC)+")\n"},Iv=function(e,t){return t.valueToCode(this,"VAR",t.ORDER_ATOMIC)+".intensity("+t.valueToCode(this,"VALUE",t.ORDER_ATOMIC)+")\n"},Tv=function(e,t){t.definitions_.import_st7789="import st7789";var i=Ce.Boards.getSelectedBoardKey().split(":")[2],n="";n=["mpython","mixgo_pe","mixgo_nova"].indexOf(i)>=0?"0x700000":["mixgo_sant"].indexOf(i)>=0?"0xE00000":"0x3A0000";var s=t.valueToCode(this,"SUB",t.ORDER_ATOMIC),_=t.valueToCode(this,"SPISUB",t.ORDER_ATOMIC),o=t.valueToCode(this,"PINCS",t.ORDER_ATOMIC),p=t.valueToCode(this,"PINDC",t.ORDER_ATOMIC);return s+" = st7789.ST7789("+_+", "+t.valueToCode(this,"WIDTH",t.ORDER_ATOMIC)+", "+t.valueToCode(this,"HEIGHT",t.ORDER_ATOMIC)+", dc_pin="+p+", cs_pin="+o+", rotation="+this.getFieldValue("rotate")+", font_address="+n+")\n"},Mv=function(e,t){t.definitions_.import_st7789="import st7789";var i=t.valueToCode(this,"SUB",t.ORDER_ATOMIC),n=t.valueToCode(this,"data",t.ORDER_ASSIGNMENT),s=t.valueToCode(this,"x",t.ORDER_ASSIGNMENT),_=t.valueToCode(this,"y",t.ORDER_ASSIGNMENT),o=t.valueToCode(this,"size",t.ORDER_ASSIGNMENT),p=t.valueToCode(this,"VAR",t.ORDER_ATOMIC);if("0x"==p.slice(0,2))var a=i+".image("+n+", x="+s+", y="+_+", size="+o+", color="+p+")\n";else{const e=p.match(/\d+/g);var u="0x"+((parseInt(e[0])<<16)+(parseInt(e[1])<<8)+parseInt(e[2])).toString(16).padStart(4,"0");a=i+".image("+n+", x= "+s+",y="+_+", size="+o+", color=0x"+((16252928&u)>>8|(64512&u)>>5|(255&u)>>3).toString(16)+")\n"}return a},hv=function(e,t){var i="0x"+this.getFieldValue("COLOR").slice(1);return["0x"+((16252928&i)>>8|(64512&i)>>5|(255&i)>>3).toString(16),t.ORDER_ATOMIC]},mv=function(e,t){t.definitions_.import_st7789="import st7789";var i=t.valueToCode(this,"SUB",t.ORDER_ATOMIC),n=t.valueToCode(this,"data",t.ORDER_ASSIGNMENT),s=t.valueToCode(this,"x",t.ORDER_ASSIGNMENT),_=t.valueToCode(this,"y",t.ORDER_ASSIGNMENT),o=t.valueToCode(this,"size",t.ORDER_ASSIGNMENT),p=t.valueToCode(this,"space",t.ORDER_ASSIGNMENT),a=t.valueToCode(this,"VAR",t.ORDER_ATOMIC),u=this.getFieldValue("center");if("0x"==a.slice(0,2))var r=i+".shows("+n+", x="+s+", y="+_+", size="+o+", space="+p+", center="+u+", color="+a+")\n";else{const e=a.match(/\d+/g);var l="0x"+((parseInt(e[0])<<16)+(parseInt(e[1])<<8)+parseInt(e[2])).toString(16).padStart(4,"0");r=i+".shows("+n+", x="+s+", y="+_+", size="+o+", space="+p+", center="+u+", color=0x"+((16252928&l)>>8|(64512&l)>>5|(255&l)>>3).toString(16)+")\n"}return r},Ev=function(e,t){t.definitions_.import_st7789="import st7789";var i=t.valueToCode(this,"SUB",t.ORDER_ATOMIC),n=t.valueToCode(this,"data",t.ORDER_ASSIGNMENT),s=t.valueToCode(this,"size",t.ORDER_ASSIGNMENT),_=t.valueToCode(this,"time",t.ORDER_ASSIGNMENT),o=t.valueToCode(this,"VAR",t.ORDER_ATOMIC);if("0x"==o.slice(0,2))var p=i+".frame("+n+", size="+s+", delay="+_+", color="+o+")\n";else{const e=o.match(/\d+/g);var a="0x"+((parseInt(e[0])<<16)+(parseInt(e[1])<<8)+parseInt(e[2])).toString(16).padStart(4,"0");p=i+".frame("+n+", size="+s+", delay="+_+", color=0x"+((16252928&a)>>8|(64512&a)>>5|(255&a)>>3).toString(16)+")\n"}return p},Ov=function(e,t){t.definitions_.import_st7789="import st7789";var i=t.valueToCode(this,"SUB",t.ORDER_ATOMIC),n=t.valueToCode(this,"data",t.ORDER_ASSIGNMENT),s=t.valueToCode(this,"y",t.ORDER_ASSIGNMENT),_=t.valueToCode(this,"size",t.ORDER_ASSIGNMENT),o=t.valueToCode(this,"time",t.ORDER_ASSIGNMENT),p=t.valueToCode(this,"space",t.ORDER_ASSIGNMENT),a=t.valueToCode(this,"VAR",t.ORDER_ATOMIC);if("0x"==a.slice(0,2))var u=i+".scroll("+n+", y="+s+", size="+_+", speed="+o+", space="+p+", color="+a+")\n";else{const e=a.match(/\d+/g);var r="0x"+((parseInt(e[0])<<16)+(parseInt(e[1])<<8)+parseInt(e[2])).toString(16).padStart(4,"0");u=i+".scroll("+n+", y="+s+", size="+_+", speed="+o+", space="+p+", color=0x"+((16252928&r)>>8|(64512&r)>>5|(255&r)>>3).toString(16)+")\n"}return u},Rv=function(e,t){return t.definitions_.import_st7789="import st7789",t.valueToCode(this,"SUB",t.ORDER_ATOMIC)+".fill(st7789."+this.getFieldValue("key")+")\n"},cv=function(e,t){t.definitions_.import_st7789="import st7789";var i=t.valueToCode(this,"SUB",t.ORDER_ATOMIC),n=t.valueToCode(this,"x1",t.ORDER_ATOMIC),s=t.valueToCode(this,"y1",t.ORDER_ATOMIC),_=t.valueToCode(this,"x2",t.ORDER_ATOMIC),o=t.valueToCode(this,"y2",t.ORDER_ATOMIC),p=t.valueToCode(this,"VAR",t.ORDER_ATOMIC);if("0x"==p.slice(0,2))var a=i+".line("+n+", "+s+", "+_+", "+o+", color="+p+")\n";else{const e=p.match(/\d+/g);var u="0x"+((parseInt(e[0])<<16)+(parseInt(e[1])<<8)+parseInt(e[2])).toString(16).padStart(4,"0");a=i+".line("+n+", "+s+", "+_+", "+o+", color=0x"+((16252928&u)>>8|(64512&u)>>5|(255&u)>>3).toString(16)+")\n"}return a},gv=function(e,t){var i=t.valueToCode(this,"SUB",t.ORDER_ATOMIC),n=t.valueToCode(this,"I2CSUB",t.ORDER_ATOMIC),s=this.getFieldValue("key"),_=t.valueToCode(this,"ADDR",t.ORDER_ATOMIC);return t.definitions_.import_i2clcd="import i2clcd",i+" = i2clcd.LCD("+n+", lcd_width="+s+", i2c_addr="+_+")\n"},Cv=function(e,t){return t.definitions_.import_i2clcd="import i2clcd",t.valueToCode(this,"SUB",t.ORDER_ATOMIC)+".shows("+t.valueToCode(this,"data",t.ORDER_ASSIGNMENT)+", column="+t.valueToCode(this,"x",t.ORDER_ASSIGNMENT)+", line="+t.valueToCode(this,"y",t.ORDER_ASSIGNMENT)+",center = "+this.getFieldValue("center")+")\n"},Sv=function(e,t){return t.definitions_.import_i2clcd="import i2clcd",t.valueToCode(this,"SUB",t.ORDER_ATOMIC)+".print("+t.valueToCode(this,"data",t.ORDER_ASSIGNMENT)+", column="+t.valueToCode(this,"x",t.ORDER_ASSIGNMENT)+", line="+t.valueToCode(this,"y",t.ORDER_ASSIGNMENT)+", delay="+t.valueToCode(this,"time",t.ORDER_ASSIGNMENT)+")\n"},Av=function(e,t){return t.definitions_.import_i2clcd="import i2clcd",t.valueToCode(this,"SUB",t.ORDER_ATOMIC)+".backlight("+this.getFieldValue("key")+")\n"},Lv=function(e,t){return t.definitions_.import_i2clcd="import i2clcd",t.valueToCode(this,"SUB",t.ORDER_ATOMIC)+".clear()\n"},Nv=function(e,t){var i=t.valueToCode(this,"SUB",t.ORDER_ATOMIC),n=t.valueToCode(this,"I2CSUB",t.ORDER_ATOMIC),s=t.valueToCode(this,"ADDR",t.ORDER_ATOMIC),_=this.getFieldValue("driver"),o=Ce.Boards.getSelectedBoardKey().split(":")[2],p="";return p=["mpython","mixgo_pe","mixgo_nova"].indexOf(o)>=0?"0x700000":["mixgo_sant"].indexOf(o)>=0?"0xE00000":"0x3A0000",t.definitions_.import_oled128x64="import oled128x64",i+" = oled128x64.OLED("+n+", address="+s+", font_address="+p+", types="+_+")\n"},Dv=function(e,t){return t.definitions_.import_oled128x64="import oled128x64",t.valueToCode(this,"SUB",t.ORDER_ATOMIC)+".image("+t.valueToCode(this,"data",t.ORDER_ASSIGNMENT)+")\n"},fv=function(e,t){return t.definitions_.import_oled128x64="import oled128x64",t.valueToCode(this,"SUB",t.ORDER_ATOMIC)+".image("+t.valueToCode(this,"data",t.ORDER_ASSIGNMENT)+", x="+t.valueToCode(this,"x",t.ORDER_ASSIGNMENT)+", y="+t.valueToCode(this,"y",t.ORDER_ASSIGNMENT)+", size="+t.valueToCode(this,"size",t.ORDER_ASSIGNMENT)+")\n"},Fv=function(e,t){return t.definitions_.import_oled128x64="import oled128x64",t.valueToCode(this,"SUB",t.ORDER_ATOMIC)+".shows("+t.valueToCode(this,"data",t.ORDER_ASSIGNMENT)+")\n"},Pv=function(e,t){return t.definitions_.import_oled128x64="import oled128x64",t.valueToCode(this,"SUB",t.ORDER_ATOMIC)+".shows("+t.valueToCode(this,"data",t.ORDER_ASSIGNMENT)+", x="+t.valueToCode(this,"x",t.ORDER_ASSIGNMENT)+", y="+t.valueToCode(this,"y",t.ORDER_ASSIGNMENT)+", size="+t.valueToCode(this,"size",t.ORDER_ASSIGNMENT)+", space="+t.valueToCode(this,"space",t.ORDER_ASSIGNMENT)+", center="+this.getFieldValue("center")+")\n"},vv=function(e,t){return t.definitions_.import_oled128x64="import oled128x64",t.valueToCode(this,"SUB",t.ORDER_ATOMIC)+".frame("+t.valueToCode(this,"data",t.ORDER_ASSIGNMENT)+")\n"},Yv=function(e,t){return t.definitions_.import_oled128x64="import oled128x64",t.valueToCode(this,"SUB",t.ORDER_ATOMIC)+".frame("+t.valueToCode(this,"data",t.ORDER_ASSIGNMENT)+", size="+t.valueToCode(this,"size",t.ORDER_ASSIGNMENT)+", delay="+t.valueToCode(this,"time",t.ORDER_ASSIGNMENT)+")\n"},Xv=function(e,t){return t.definitions_.import_oled128x64="import oled128x64",t.valueToCode(this,"SUB",t.ORDER_ATOMIC)+".scroll("+t.valueToCode(this,"data",t.ORDER_ASSIGNMENT)+")\n"},yv=function(e,t){return t.definitions_.import_oled128x64="import oled128x64",t.valueToCode(this,"SUB",t.ORDER_ATOMIC)+".scroll("+t.valueToCode(this,"data",t.ORDER_ASSIGNMENT)+", y="+t.valueToCode(this,"y",t.ORDER_ASSIGNMENT)+", size="+t.valueToCode(this,"size",t.ORDER_ASSIGNMENT)+", speed="+t.valueToCode(this,"time",t.ORDER_ASSIGNMENT)+", space="+t.valueToCode(this,"space",t.ORDER_ASSIGNMENT)+")\n"},bv=function(e,t){t.definitions_.import_oled128x64="import oled128x64";var i=t.valueToCode(this,"SUB",t.ORDER_ATOMIC);return i+".fill(0)\n"+i+".show()\n"},xv=function(e,t){return t.definitions_.import_oled128x64="import oled128x64",t.valueToCode(this,"SUB",t.ORDER_ATOMIC)+"."+e.getFieldValue("OP")+"("+t.valueToCode(e,"val",t.ORDER_ATOMIC)+")\n"},Vv=function(e,t){return t.definitions_.import_oled128x64="import oled128x64",[t.valueToCode(this,"SUB",t.ORDER_ATOMIC)+".pixel(int("+t.valueToCode(e,"x",t.ORDER_ATOMIC)+"), int("+t.valueToCode(e,"y",t.ORDER_ATOMIC)+"))",t.ORDER_ATOMIC]},Bv=function(e,t){t.definitions_.import_oled128x64="import oled128x64";var i=t.valueToCode(this,"SUB",t.ORDER_ATOMIC);return i+".pixel(int("+t.valueToCode(this,"x",t.ORDER_ASSIGNMENT)+"), int("+t.valueToCode(this,"y",t.ORDER_ASSIGNMENT)+"), "+t.valueToCode(this,"STAT",t.ORDER_ATOMIC)+")\n"+i+".show()\n"},Gv=function(e,t){t.definitions_.import_oled128x64="import oled128x64";var i=t.valueToCode(this,"SUB",t.ORDER_ATOMIC),n=t.valueToCode(e,"x",t.ORDER_ATOMIC),s=t.valueToCode(e,"y",t.ORDER_ATOMIC),_=t.valueToCode(e,"w",t.ORDER_ATOMIC),o=t.valueToCode(e,"h",t.ORDER_ATOMIC),p=e.getFieldValue("state");return i+"."+e.getFieldValue("shape")+"("+n+", "+s+", "+_+", "+o+", "+p+")\n"+i+".show()\n"},Uv=function(e,t){t.definitions_.import_oled128x64="import oled128x64";var i=t.valueToCode(this,"SUB",t.ORDER_ATOMIC),n=t.valueToCode(e,"x",t.ORDER_ATOMIC),s=t.valueToCode(e,"y",t.ORDER_ATOMIC),_=t.valueToCode(e,"length",t.ORDER_ATOMIC),o=e.getFieldValue("state");return i+"."+("0"==e.getFieldValue("dir_h_v")?"v":"h")+"line("+n+", "+s+", "+_+", "+o+")\n"+i+".show()\n"},wv=function(e,t){t.definitions_.import_oled128x64="import oled128x64";var i=t.valueToCode(this,"SUB",t.ORDER_ATOMIC);return i+".line("+t.valueToCode(e,"x1",t.ORDER_ATOMIC)+", "+t.valueToCode(e,"y1",t.ORDER_ATOMIC)+", "+t.valueToCode(e,"x2",t.ORDER_ATOMIC)+", "+t.valueToCode(e,"y2",t.ORDER_ATOMIC)+", "+e.getFieldValue("state")+")\n"+i+".show()\n"},kv=function(e,t){var i=Ce.Boards.getSelectedBoardKey().split(":")[2],n=t.valueToCode(this,"data",t.ORDER_ASSIGNMENT);if("Python ESP32-S3"===Ce.JSFuncs.getPlatform()){t.definitions_["import_"+i+"_onboard_tft"]="from "+i+" import onboard_tft";var s="onboard_tft.image("+(n=t.valueToCode(this,"data",t.ORDER_ASSIGNMENT))+", color=0xffff,sync="+(t.valueToCode(this,"boolean",t.ORDER_ATOMIC)||"True")+")\n"}else if("educore"==i){t.definitions_["import_"+i+"_oled"]="from "+i+" import oled";s="oled.print("+n+")\n"}else{t.definitions_["import_"+i+"_onboard_matrix"]="from "+i+" import onboard_matrix";s="onboard_matrix.shows("+n+")\n"}return s},Hv=function(e,t){var i=Ce.Boards.getSelectedBoardKey().split(":")[2],n=t.valueToCode(this,"data",t.ORDER_ASSIGNMENT),s=t.valueToCode(this,"space",t.ORDER_ASSIGNMENT),_=this.getFieldValue("center");if("mixgo_sant"==i||"mixgo_nova"==i||"mixgo_soar"==i)return t.definitions_["import_"+i+"_onboard_tft"]="from "+i+" import onboard_tft","onboard_tft.shows("+n+", space="+s+", center="+_+",sync="+(t.valueToCode(this,"boolean",t.ORDER_ATOMIC)||"True")+")\n";if("educore"==i){t.definitions_["import_"+i+"_oled"]="from "+i+" import oled"}return t.definitions_["import_"+i+"_onboard_matrix"]="from "+i+" import onboard_matrix","onboard_matrix.shows("+n+", space="+s+", center="+_+")\n"},Wv=function(e,t){var i=Ce.Boards.getSelectedBoardKey().split(":")[2],n=t.valueToCode(this,"data",t.ORDER_ASSIGNMENT);if("mpython"==i||"educore"==i){t.definitions_["import_"+i+"_onboard_oled"]="from "+i+" import onboard_oled";var s="onboard_oled.frame("+n+")\n"}else if("Python ESP32-S3"===Ce.JSFuncs.getPlatform()){t.definitions_["import_"+i+"_onboard_tft"]="from "+i+" import onboard_tft";s="onboard_tft.frame("+(n=t.valueToCode(this,"data",t.ORDER_ASSIGNMENT))+", color=0xffff)\n"}else{t.definitions_["import_"+i+"_onboard_matrix"]="from "+i+" import onboard_matrix";s="onboard_matrix.frame("+n+")\n"}return s},Kv=function(e,t){var i=Ce.Boards.getSelectedBoardKey().split(":")[2],n=t.valueToCode(this,"data",t.ORDER_ASSIGNMENT),s=t.valueToCode(this,"time",t.ORDER_ASSIGNMENT);if("mpython"==i||"educore"==i){t.definitions_["import_"+i+"_onboard_oled"]="from "+i+" import onboard_oled";var _="onboard_oled.frame("+(n=t.valueToCode(this,"data",t.ORDER_ASSIGNMENT))+", delay="+s+")\n"}else if("Python ESP32-S3"===Ce.JSFuncs.getPlatform()){t.definitions_["import_"+i+"_onboard_tft"]="from "+i+" import onboard_tft";_="onboard_tft.frame("+n+", size=5 , delay="+s+", color=0xffff)\n"}else{t.definitions_["import_"+i+"_onboard_matrix"]="from "+i+" import onboard_matrix";_="onboard_matrix.frame("+n+", delay="+s+")\n"}return _},Jv=function(e,t){var i=Ce.Boards.getSelectedBoardKey().split(":")[2];if("mpython"==i||"educore"==i){t.definitions_["import_"+i+"_onboard_oled"]="from "+i+" import onboard_oled";var n="onboard_oled.scroll("+t.valueToCode(this,"data",t.ORDER_ASSIGNMENT)+")\n"}else if("Python ESP32-S3"===Ce.JSFuncs.getPlatform()){t.definitions_["import_"+i+"_onboard_tft"]="from "+i+" import onboard_tft";n="onboard_tft.scroll("+t.valueToCode(this,"data",t.ORDER_ASSIGNMENT)+", color=0xffff)\n"}else{t.definitions_["import_"+i+"_onboard_matrix"]="from "+i+" import onboard_matrix";n="onboard_matrix.scroll("+t.valueToCode(this,"data",t.ORDER_ASSIGNMENT)+")\n"}return n},qv=function(e,t){var i=Ce.Boards.getSelectedBoardKey().split(":")[2],n=t.valueToCode(this,"data",t.ORDER_ASSIGNMENT),s=t.valueToCode(this,"time",t.ORDER_ASSIGNMENT),_=t.valueToCode(this,"space",t.ORDER_ASSIGNMENT);if("mpython"==i||"educore"==i){t.definitions_["import_"+i+"_onboard_oled"]="from "+i+" import onboard_oled";var o="onboard_oled.scroll("+n+", speed="+s+", space="+_+")\n"}else if("Python ESP32-S3"===Ce.JSFuncs.getPlatform()){t.definitions_["import_"+i+"_onboard_tft"]="from "+i+" import onboard_tft";o="onboard_tft.scroll("+n+", y=0, size=5, speed="+s+", space="+_+", color=0xffff)\n"}else{t.definitions_["import_"+i+"_onboard_matrix"]="from "+i+" import onboard_matrix";o="onboard_matrix.scroll("+n+", speed="+s+", space="+_+")\n"}return o},Qv=function(e,t){var i=Ce.Boards.getSelectedBoardKey().split(":")[2];return t.definitions_["import_"+i+"_onboard_matrix"]="from "+i+" import onboard_matrix","onboard_matrix.scroll_way("+this.getFieldValue("way")+")\n"},zv=function(e,t){var i=Ce.Boards.getSelectedBoardKey().split(":")[2];t.definitions_["import_"+i+"_onboard_tft"]="from "+i+" import onboard_tft";var n=t.valueToCode(this,"data",t.ORDER_ASSIGNMENT),s=t.valueToCode(this,"y",t.ORDER_ASSIGNMENT),_=t.valueToCode(this,"size",t.ORDER_ASSIGNMENT),o=t.valueToCode(this,"time",t.ORDER_ASSIGNMENT),p=t.valueToCode(this,"space",t.ORDER_ASSIGNMENT),a=t.valueToCode(this,"VAR",t.ORDER_ATOMIC);if("0x"==a.slice(0,2))var u="onboard_tft.scroll("+n+", y="+s+", size="+_+", speed="+o+", space="+p+", color="+a+")\n";else{const e=a.match(/\d+/g);var r="0x"+((parseInt(e[0])<<16)+(parseInt(e[1])<<8)+parseInt(e[2])).toString(16).padStart(4,"0");u="onboard_tft.scroll("+n+", y="+s+", size="+_+", speed="+o+", space="+p+", color=0x"+((16252928&r)>>8|(64512&r)>>5|(255&r)>>3).toString(16)+")\n"}return u},jv=function(e,t){var i=Ce.Boards.getSelectedBoardKey().split(":")[2];return t.definitions_["import_"+i+"_onboard_matrix"]="from "+i+" import onboard_matrix",["onboard_matrix."+e.getFieldValue("image"),t.ORDER_ATOMIC]},$v=function(e,t){var i=Ce.Boards.getSelectedBoardKey().split(":")[2];if("Python ESP32-S3"===Ce.JSFuncs.getPlatform()){const i=e.getFieldValue("image").split(".");if(2!==i.length)throw Error("pin value error");t.definitions_[`import_${i[0]}_${i[1]}`]=`from ${i[0]} import ${i[1]}`;var n=i[1]}else{t.definitions_["import_"+i+"_onboard_matrix"]="from "+i+" import onboard_matrix";n="onboard_matrix."+e.getFieldValue("image")}return[n,t.ORDER_ATOMIC]},Zv=function(e,t){var i={"#000000":"0","#ff0000":"1"};function n(e){let t="";if(e.length%2==1&&(e="0"+e),e.length<8){let t=8-e.length;for(let i=1;i<=t;i++)e="0"+e}for(let i=1;i<=e.length;i++)i%2==0&&i!==e.length?t=t+e[i-1]+",0x":t+=e[i-1];return"0x"+t}let s=[];for(let t=0;t<12;t++){let _="",o=0,p=0;for(let n=0;n<32;n++)n<8?p=7-n:n<16?p=23-n:n<24?p=39-n:n<32&&(p=55-n),o+=Number(i[e.getFieldValue(t+"-"+n)])*Math.pow(2,31-p);_+=n(o.toString(16)),s.unshift(_)}let _=[];for(let e=0;e>8|(64512&r)>>5|(255&r)>>3).toString(16)+",sync="+a+")\n"}return u},xY=function(e,t){var i=Ce.Boards.getSelectedBoardKey().split(":")[2];return t.definitions_["import_"+i+"_onboard_tft"]="from "+i+" import onboard_tft","onboard_tft.picture("+t.valueToCode(this,"x",t.ORDER_ASSIGNMENT)+","+t.valueToCode(this,"y",t.ORDER_ASSIGNMENT)+","+t.valueToCode(this,"direct",t.ORDER_ASSIGNMENT)+")\n"},VY=function(e,t){var i=Ce.Boards.getSelectedBoardKey().split(":")[2];t.definitions_["import_"+i+"_onboard_tft"]="from "+i+" import onboard_tft";var n=t.valueToCode(this,"data",t.ORDER_ASSIGNMENT),s=t.valueToCode(this,"x",t.ORDER_ASSIGNMENT),_=t.valueToCode(this,"y",t.ORDER_ASSIGNMENT),o=t.valueToCode(this,"size",t.ORDER_ASSIGNMENT),p=t.valueToCode(this,"space",t.ORDER_ASSIGNMENT),a=this.getFieldValue("center"),u=t.valueToCode(this,"boolean",t.ORDER_ATOMIC)||"True",r=t.valueToCode(this,"VAR",t.ORDER_ATOMIC);if("0x"==r.slice(0,2))var l="onboard_tft.shows("+n+", x="+s+", y="+_+", size="+o+", space="+p+", center="+a+", color="+r+",sync="+u+")\n";else{const e=r.match(/\d+/g);var d="0x"+((parseInt(e[0])<<16)+(parseInt(e[1])<<8)+parseInt(e[2])).toString(16).padStart(4,"0");l="onboard_tft.shows("+n+", x="+s+", y="+_+", size="+o+", space="+p+", center="+a+", color=0x"+((16252928&d)>>8|(64512&d)>>5|(255&d)>>3).toString(16)+",sync="+u+")\n"}return l},BY=function(e,t){var i=Ce.Boards.getSelectedBoardKey().split(":")[2];t.definitions_["import_"+i+"_onboard_tft"]="from "+i+" import onboard_tft";var n=t.valueToCode(this,"data",t.ORDER_ASSIGNMENT),s=t.valueToCode(this,"size",t.ORDER_ASSIGNMENT),_=t.valueToCode(this,"time",t.ORDER_ASSIGNMENT),o=t.valueToCode(this,"VAR",t.ORDER_ATOMIC);if("0x"==o.slice(0,2))var p="onboard_tft.frame("+n+", size="+s+", delay="+_+", color="+o+")\n";else{const e=o.match(/\d+/g);var a="0x"+((parseInt(e[0])<<16)+(parseInt(e[1])<<8)+parseInt(e[2])).toString(16).padStart(4,"0");p="onboard_tft.frame("+n+", size="+s+", delay="+_+", color=0x"+((16252928&a)>>8|(64512&a)>>5|(255&a)>>3).toString(16)+")\n"}return p},GY=function(e,t){var i=Ce.Boards.getSelectedBoardKey().split(":")[2];t.definitions_["import_"+i+"_onboard_tft"]="from "+i+" import onboard_tft";var n=t.valueToCode(e,"x",t.ORDER_ATOMIC),s=t.valueToCode(e,"y",t.ORDER_ATOMIC),_=t.valueToCode(e,"w",t.ORDER_ATOMIC),o=t.valueToCode(e,"h",t.ORDER_ATOMIC),p=t.valueToCode(this,"VAR",t.ORDER_ATOMIC),a=e.getFieldValue("shape"),u=t.valueToCode(this,"boolean",t.ORDER_ATOMIC)||"True";if("0x"==p.slice(0,2))var r="onboard_tft."+a+"("+n+", "+s+", "+_+", "+o+", "+p+",sync="+u+")\n";else{const e=p.match(/\d+/g);var l="0x"+((parseInt(e[0])<<16)+(parseInt(e[1])<<8)+parseInt(e[2])).toString(16).padStart(4,"0");r="onboard_tft."+a+"("+n+", "+s+", "+_+", "+o+", 0x"+((16252928&l)>>8|(64512&l)>>5|(255&l)>>3).toString(16)+",sync="+u+")\n"}return r},UY=function(e,t){var i=Ce.Boards.getSelectedBoardKey().split(":")[2];t.definitions_["import_"+i+"_onboard_tft"]="from "+i+" import onboard_tft";var n=t.valueToCode(e,"x",t.ORDER_ATOMIC),s=t.valueToCode(e,"y",t.ORDER_ATOMIC),_=t.valueToCode(e,"length",t.ORDER_ATOMIC),o=t.valueToCode(this,"VAR",t.ORDER_ATOMIC),p=e.getFieldValue("dir_h_v"),a=t.valueToCode(this,"boolean",t.ORDER_ATOMIC)||"True";if("0x"==o.slice(0,2))var u="onboard_tft."+("0"==p?"v":"h")+"line("+n+", "+s+", "+_+", "+o+",sync="+a+")\n";else{const e=o.match(/\d+/g);var r="0x"+((parseInt(e[0])<<16)+(parseInt(e[1])<<8)+parseInt(e[2])).toString(16).padStart(4,"0");u="onboard_tft."+("0"==p?"v":"h")+"line("+n+", "+s+", "+_+", 0x"+((16252928&r)>>8|(64512&r)>>5|(255&r)>>3).toString(16)+",sync="+a+")\n"}return u},wY=function(e,t){var i=Ce.Boards.getSelectedBoardKey().split(":")[2];t.definitions_["import_"+i+"_onboard_tft"]="from "+i+" import onboard_tft";var n=t.valueToCode(e,"x1",t.ORDER_ATOMIC),s=t.valueToCode(e,"y1",t.ORDER_ATOMIC),_=t.valueToCode(e,"x2",t.ORDER_ATOMIC),o=t.valueToCode(e,"y2",t.ORDER_ATOMIC),p=t.valueToCode(this,"VAR",t.ORDER_ATOMIC),a=t.valueToCode(this,"boolean",t.ORDER_ATOMIC)||"True";if("0x"==p.slice(0,2))var u="onboard_tft.line("+n+", "+s+", "+_+", "+o+", "+p+",sync="+a+")\n";else{const e=p.match(/\d+/g);var r="0x"+((parseInt(e[0])<<16)+(parseInt(e[1])<<8)+parseInt(e[2])).toString(16).padStart(4,"0");u="onboard_tft.line("+n+", "+s+", "+_+", "+o+", 0x"+((16252928&r)>>8|(64512&r)>>5|(255&r)>>3).toString(16)+",sync="+a+")\n"}return u},kY=function(e,t){var i=Ce.Boards.getSelectedBoardKey().split(":")[2];return t.definitions_["import_"+i+"_onboard_tft"]="from "+i+" import onboard_tft",["onboard_tft.pixel(int("+t.valueToCode(e,"x",t.ORDER_ATOMIC)+"), int("+t.valueToCode(e,"y",t.ORDER_ATOMIC)+"))",t.ORDER_ATOMIC]},HY=function(e,t){var i=Ce.Boards.getSelectedBoardKey().split(":")[2];t.definitions_["import_"+i+"_onboard_tft"]="from "+i+" import onboard_tft";var n=t.valueToCode(this,"x",t.ORDER_ASSIGNMENT),s=t.valueToCode(this,"y",t.ORDER_ASSIGNMENT),_=t.valueToCode(this,"VAR",t.ORDER_ATOMIC),o=t.valueToCode(this,"boolean",t.ORDER_ATOMIC)||"True";if("0x"==_.slice(0,2))var p="onboard_tft.pixel(int("+n+"), int("+s+"), "+_+",sync="+o+")\n";else{const e=_.match(/\d+/g);var a="0x"+((parseInt(e[0])<<16)+(parseInt(e[1])<<8)+parseInt(e[2])).toString(16).padStart(4,"0");p="onboard_tft.pixel(int("+n+"), int("+s+"), 0x"+((16252928&a)>>8|(64512&a)>>5|(255&a)>>3).toString(16)+",sync="+o+")\n"}return p},WY=function(e,t){var i=Ce.Boards.getSelectedBoardKey().split(":")[2];t.definitions_["import_"+i+"_onboard_tft"]="from "+i+" import onboard_tft";var n=t.valueToCode(this,"VAR",t.ORDER_ASSIGNMENT),s=t.valueToCode(this,"boolean",t.ORDER_ATOMIC)||"True";if("0x"==n.slice(0,2))var _="onboard_tft.fill("+n+",sync="+s+")\n";else{const e=n.match(/\d+/g);var o="0x"+((parseInt(e[0])<<16)+(parseInt(e[1])<<8)+parseInt(e[2])).toString(16).padStart(4,"0");_="onboard_tft.fill(0x"+((16252928&o)>>8|(64512&o)>>5|(255&o)>>3).toString(16)+",sync="+s+")\n"}return _},KY=function(e,t){var i=Ce.Boards.getSelectedBoardKey().split(":")[2];t.definitions_["import_"+i+"_Clock"]="from "+i+" import Clock";var n=t.valueToCode(this,"x",t.ORDER_ASSIGNMENT),s=t.valueToCode(this,"y",t.ORDER_ASSIGNMENT),_=t.valueToCode(this,"size",t.ORDER_ASSIGNMENT),o=t.valueToCode(this,"SUB",t.ORDER_ASSIGNMENT),p=t.valueToCode(this,"VAR",t.ORDER_ATOMIC);if("0x"==p.slice(0,2))var a=o+"=Clock("+n+", "+s+", "+_+", "+p+")\n";else{const e=p.match(/\d+/g);var u="0x"+((parseInt(e[0])<<16)+(parseInt(e[1])<<8)+parseInt(e[2])).toString(16).padStart(4,"0");a=o+"=Clock("+n+", "+s+", "+_+", 0x"+((16252928&u)>>8|(64512&u)>>5|(255&u)>>3).toString(16)+")\n"}return a},JY=function(e,t){var i=Ce.Boards.getSelectedBoardKey().split(":")[2];return t.definitions_["import_"+i+"_Clock"]="from "+i+" import Clock",t.valueToCode(this,"SUB",t.ORDER_ASSIGNMENT)+".set_rtctime()\n"},qY=function(e,t){var i=Ce.Boards.getSelectedBoardKey().split(":")[2];return t.definitions_["import_"+i+"_Clock"]="from "+i+" import Clock",t.valueToCode(this,"SUB",t.ORDER_ASSIGNMENT)+".set_time("+t.valueToCode(this,"h",t.ORDER_ASSIGNMENT)+", "+t.valueToCode(this,"m",t.ORDER_ASSIGNMENT)+", "+t.valueToCode(this,"s",t.ORDER_ASSIGNMENT)+")\n"},QY=function(e,t){var i=Ce.Boards.getSelectedBoardKey().split(":")[2];return t.definitions_["import_"+i+"_Clock"]="from "+i+" import Clock",t.valueToCode(this,"SUB",t.ORDER_ASSIGNMENT)+".draw_clock()\n"},zY=function(e,t){var i=Ce.Boards.getSelectedBoardKey().split(":")[2];t.definitions_["import_"+i+"_Clock"]="from "+i+" import Clock";var n=t.valueToCode(this,"SUB",t.ORDER_ASSIGNMENT),s=t.valueToCode(this,"VAR",t.ORDER_ATOMIC);if("0x"==s.slice(0,2))var _=n+".clear("+s+")\n";else{const e=s.match(/\d+/g);var o="0x"+((parseInt(e[0])<<16)+(parseInt(e[1])<<8)+parseInt(e[2])).toString(16).padStart(4,"0");_=n+".clear(0x"+((16252928&o)>>8|(64512&o)>>5|(255&o)>>3).toString(16)+")\n"}return _},jY=function(e,t){var i=Ce.Boards.getSelectedBoardKey().split(":")[2];t.definitions_["import_"+i+"_onboard_tft"]="from "+i+" import onboard_tft";var n=t.valueToCode(e,"x",t.ORDER_ATOMIC),s=t.valueToCode(e,"y",t.ORDER_ATOMIC),_=t.valueToCode(e,"r",t.ORDER_ATOMIC),o=t.valueToCode(this,"VAR",t.ORDER_ATOMIC),p=e.getFieldValue("shape"),a=t.valueToCode(this,"boolean",t.ORDER_ATOMIC)||"True";if("0x"==o.slice(0,2))var u="onboard_tft.ellipse("+n+", "+s+", "+_+", "+_+", "+o+", "+p+",sync="+a+")\n";else{const e=o.match(/\d+/g);var r="0x"+((parseInt(e[0])<<16)+(parseInt(e[1])<<8)+parseInt(e[2])).toString(16).padStart(4,"0");u="onboard_tft.ellipse("+n+", "+s+", "+_+", "+_+", 0x"+((16252928&r)>>8|(64512&r)>>5|(255&r)>>3).toString(16)+", "+p+",sync="+a+")\n"}return u},$Y=function(e,t){var i=Ce.Boards.getSelectedBoardKey().split(":")[2];if("Python ESP32-S3"===Ce.JSFuncs.getPlatform()){t.definitions_["import_"+i+"_onboard_tft"]="from "+i+" import onboard_tft";var n="onboard_tft.pointern(angle="+t.valueToCode(this,"angle",t.ORDER_ASSIGNMENT)+")\n"}else{t.definitions_["import_"+i+"_onboard_matrix"]="from "+i+" import onboard_matrix";n="onboard_matrix.pointern(angle="+t.valueToCode(this,"angle",t.ORDER_ASSIGNMENT)+")\n"}return n},ZY=function(e,t){var i=Ce.Boards.getSelectedBoardKey().split(":")[2];t.definitions_["import_"+i+"_onboard_tft"]="from "+i+" import onboard_tft";var n=t.valueToCode(this,"angle",t.ORDER_ASSIGNMENT),s=t.valueToCode(this,"VAR",t.ORDER_ATOMIC);if("0x"==s.slice(0,2));else{const e=s.match(/\d+/g);var _="0x"+((parseInt(e[0])<<16)+(parseInt(e[1])<<8)+parseInt(e[2])).toString(16).padStart(4,"0");((16252928&_)>>8|(64512&_)>>5|(255&_)>>3).toString(16)}return"onboard_tft.pointern(angle="+n+")\n"},eX=function(e,t){var i=Ce.Boards.getSelectedBoardKey().split(":")[2];t.definitions_["import_"+i+"_onboard_tft"]="from "+i+" import onboard_tft";var n=t.valueToCode(this,"data",t.ORDER_ASSIGNMENT),s=t.valueToCode(this,"x",t.ORDER_ASSIGNMENT),_=t.valueToCode(this,"y",t.ORDER_ASSIGNMENT),o=t.valueToCode(this,"size",t.ORDER_ASSIGNMENT),p=t.valueToCode(this,"VAR",t.ORDER_ATOMIC),a=t.valueToCode(this,"boolean",t.ORDER_ATOMIC)||"True";if("0x"==p.slice(0,2))var u="onboard_tft.texts("+n+", x="+s+", y="+_+", size="+o+", color="+p+",sync="+a+")\n";else{const e=p.match(/\d+/g);var r="0x"+((parseInt(e[0])<<16)+(parseInt(e[1])<<8)+parseInt(e[2])).toString(16).padStart(4,"0");u="onboard_tft.texts("+n+", x="+s+", y="+_+", size="+o+", color=0x"+((16252928&r)>>8|(64512&r)>>5|(255&r)>>3).toString(16)+",sync="+a+")\n"}return u},tX=kv,iX=aY,nX=_Y,sX=aY,_X=uY,oX=tY,pX=function(e,t){var i=this.getFieldValue("path"),n=this.getFieldValue("module");return t.definitions_["import_"+i+"_"+n]="from "+i+" import "+n,""},aX=function(e,t){var i=this.getFieldValue("module");return t.definitions_["import_"+i]="import "+i,""},uX=function(e,t){for(var i=this.getFieldValue("NAME"),n=new Array(this.itemCount_),s=0;s {\n"+t.statementToCode(this,"do")+"})\n"},RG=function(){return"control.reset()\n"},cG=function(e,t){return"control.waitMicros("+(t.valueToCode(this,"data",t.ORDER_ATOMIC)||Ce.Profile.default.serial)+")\n"},gG=function(e,t){return"control.raiseEvent("+(t.valueToCode(this,"system_event_bus_source",t.ORDER_ATOMIC)||Ce.Profile.default.serial)+", "+(t.valueToCode(this,"system_event_bus_value",t.ORDER_ATOMIC)||Ce.Profile.default.serial)+")\n"},CG=function(e,t){return"control.onEvent("+(t.valueToCode(this,"system_event_bus_source",t.ORDER_ATOMIC)||Ce.Profile.default.serial)+", "+(t.valueToCode(this,"system_event_bus_value",t.ORDER_ATOMIC)||Ce.Profile.default.serial)+", () => {\n"+t.statementToCode(this,"do")+")\n"},SG=function(e,t){return["control.eventTimestamp()",t.ORDER_ATOMIC]},AG=function(e,t){return["control.eventValue()",t.ORDER_ATOMIC]},LG=function(e,t){return[this.getFieldValue("key"),t.ORDER_ATOMIC]},NG=function(e,t){return[this.getFieldValue("key"),t.ORDER_ATOMIC]},DG=function(e,t){return["control.deviceName()",t.ORDER_ATOMIC]},fG=function(e,t){return["control.deviceSerialNumber()",t.ORDER_ATOMIC]},FG=function(e,t){return"panic("+(t.valueToCode(this,"STATUS_CODE",t.ORDER_ATOMIC)||"1000")+")\n"},PG=function(e,t){switch(t.definitions_.import_time="import time",this.getFieldValue("Time")){case"ms":return["time.ticks_ms()",t.ORDER_ATOMIC];case"us":return["time.ticks_us()",t.ORDER_ATOMIC]}},vG=function(){return"while True:\n pass\n"},YG=function(e,t){return t.definitions_.import_mixgo="import mixgo","reset()\n"},XG=function(e,t){return t.definitions_.import_os="import os","os.uname()"},yG=function(e,t){t.definitions_.import_time="import time";var i=t.valueToCode(this,"DELAY_TIME",t.ORDER_ATOMIC)||"1000";switch(this.getFieldValue("Time")){case"s":return"time.sleep("+i+")\n";case"ms":return"time.sleep_ms("+i+")\n";case"us":return"time.sleep_us("+i+")\n"}},bG=function(e,t){t.definitions_.import_time="import time";var i=t.valueToCode(this,"DELAY_TIME",t.ORDER_ATOMIC)||"1000";switch(this.getFieldValue("Time")){case"s":return"time.sleep("+i+")\n";case"ms":return"time.sleep_ms("+i+")\n";case"us":return"time.sleep_us("+i+")\n"}},xG=function(e,t){return t.definitions_.import_mixgo="import mixgo",(t.valueToCode(this,"VAR",t.ORDER_NONE)||"None")+".init(period="+(t.valueToCode(this,"period",t.ORDER_NONE)||"0")+", mode=Timer."+(t.valueToCode(this,"mode",t.ORDER_NONE)||"None")+", callback="+(t.valueToCode(this,"callback",t.ORDER_NONE)||"None")+")\n"},VG=function(e,t){return t.definitions_.import_machine="import machine",(t.valueToCode(this,"VAR",t.ORDER_NONE)||"None")+" = machine.Timer("+(t.valueToCode(this,"PIN",t.ORDER_NONE)||"None")+",period = "+(t.valueToCode(this,"period",t.ORDER_NONE)||"0")+", mode=machine.Timer."+this.getFieldValue("mode")+", callback="+(t.valueToCode(this,"callback",t.ORDER_NONE)||"None")+")\n"},BG=function(e,t){return t.definitions_.import_time="import time",["time.ticks_diff("+(t.valueToCode(this,"END",t.ORDER_NONE)||"0")+", "+(t.valueToCode(this,"START",t.ORDER_NONE)||"0")+")",t.ORDER_ATOMIC]},GG=function(e,t){var i=t.valueToCode(this,"SUB",t.ORDER_ATOMIC);return t.definitions_.import_machine="import machine",i+" = machine.Timer(0)\n"},UG=function(e,t){return t.definitions_.import_machine="import machine",(t.valueToCode(this,"VAR",t.ORDER_NONE)||"None")+".init(period = "+(t.valueToCode(this,"period",t.ORDER_NONE)||"0")+", mode=machine.Timer."+this.getFieldValue("mode")+", callback="+(t.valueToCode(this,"callback",t.ORDER_NONE)||"None")+")\n"},wG=function(e,t){return t.definitions_.import_machine="import machine","wdt = machine.WDT(timeout= "+(t.valueToCode(this,"period",t.ORDER_NONE)||"0")+")\n"},kG=function(e,t){t.definitions_.import_machine="import machine";return"wdt.feed()\n"},HG=function(e,t){t.definitions_.import_machine="import machine";return"machine.reset()\n"},WG=function(e,t){t.definitions_.import_bitbot_onboard_bot51="from bitbot import onboard_bot51";return"onboard_bot51.shutdown()\n"},KG=GG,JG=UG,qG=BG,QG=yG,zG=function(e,t){return t.definitions_.import_seniverse_api="import seniverse_api",["seniverse_api."+this.getFieldValue("mode")+"("+t.valueToCode(this,"key",t.ORDER_ATOMIC)+", "+t.valueToCode(this,"addr",t.ORDER_ATOMIC)+")",t.ORDER_ATOMIC]},jG=function(e,t){return t.definitions_.import_seniverse_api="import seniverse_api",["seniverse_api."+this.getFieldValue("mode")+"("+t.valueToCode(this,"key",t.ORDER_ATOMIC)+", "+t.valueToCode(this,"addr",t.ORDER_ATOMIC)+", "+t.valueToCode(this,"day",t.ORDER_ATOMIC)+")",t.ORDER_ATOMIC]},$G=function(e,t){return t.definitions_.import_seniverse_api="import seniverse_api",["seniverse_api.weather_hourly("+t.valueToCode(this,"key",t.ORDER_ATOMIC)+", "+t.valueToCode(this,"addr",t.ORDER_ATOMIC)+", "+t.valueToCode(this,"hour",t.ORDER_ATOMIC)+")",t.ORDER_ATOMIC]},ZG=function(e,t){return t.definitions_["import_seniverse_api*"]="from seniverse_api import *",this.getFieldValue("mode")+".request("+t.valueToCode(this,"key",t.ORDER_ATOMIC)+", "+t.valueToCode(this,"addr",t.ORDER_ATOMIC)+")\n"},eU=function(e,t){t.definitions_["import_seniverse_api*"]="from seniverse_api import *";var i=this.getFieldValue("content");if("none"==i)var n="Weather_now.analysis()";else n='Weather_now.analysis("'+i+'")';return[n,t.ORDER_ATOMIC]},tU=function(e,t){t.definitions_["import_seniverse_api*"]="from seniverse_api import *";var i=this.getFieldValue("content");if("none"==i)var n="Air_now.analysis()";else n='Air_now.analysis("'+i+'")';return[n,t.ORDER_ATOMIC]},iU=function(e,t){t.definitions_["import_seniverse_api*"]="from seniverse_api import *";var i=this.getFieldValue("content");if("none"==i)var n="Weather_alarm.analysis()";else n='Weather_alarm.analysis("'+i+'")';return[n,t.ORDER_ATOMIC]},nU=function(e,t){t.definitions_["import_seniverse_api*"]="from seniverse_api import *";var i=this.getFieldValue("content");if("none"==i)var n="Life_suggestion.analysis()";else n='Life_suggestion.analysis("'+i+'")';return[n,t.ORDER_ATOMIC]},sU=function(e,t){t.definitions_["import_seniverse_api*"]="from seniverse_api import *";var i=this.getFieldValue("content");if("none"==i)var n="Tide_daily.analysis()";else n='Tide_daily.analysis("'+i+'")';return[n,t.ORDER_ATOMIC]},_U=function(e,t){t.definitions_["import_seniverse_api*"]="from seniverse_api import *";var i=this.getFieldValue("content");if("none"==i)var n="Location_search.analysis()";else n='Location_search.analysis("'+i+'")';return[n,t.ORDER_ATOMIC]},oU=function(e,t){return t.definitions_["import_seniverse_api*"]="from seniverse_api import *",this.getFieldValue("mode")+".request("+t.valueToCode(this,"key",t.ORDER_ATOMIC)+", "+t.valueToCode(this,"addr",t.ORDER_ATOMIC)+", "+t.valueToCode(this,"day",t.ORDER_ATOMIC)+")\n"},pU=function(e,t){t.definitions_["import_seniverse_api*"]="from seniverse_api import *";var i=this.getFieldValue("content"),n=t.valueToCode(this,"day",t.ORDER_ATOMIC);if("none"==i)var s="Weather_daily.analysis("+n+")";else s="Weather_daily.analysis("+n+', "'+i+'")';return[s,t.ORDER_ATOMIC]},aU=function(e,t){t.definitions_["import_seniverse_api*"]="from seniverse_api import *";var i=this.getFieldValue("content"),n=t.valueToCode(this,"day",t.ORDER_ATOMIC);if("none"==i)var s="Air_daily.analysis("+n+")";else s="Air_daily.analysis("+n+', "'+i+'")';return[s,t.ORDER_ATOMIC]},uU=function(e,t){t.definitions_["import_seniverse_api*"]="from seniverse_api import *";var i=this.getFieldValue("content"),n=t.valueToCode(this,"day",t.ORDER_ATOMIC);if("none"==i)var s="Geo_sun.analysis("+n+")";else s="Geo_sun.analysis("+n+', "'+i+'")';return[s,t.ORDER_ATOMIC]},rU=function(e,t){t.definitions_["import_seniverse_api*"]="from seniverse_api import *";var i=this.getFieldValue("content"),n=t.valueToCode(this,"day",t.ORDER_ATOMIC);if("none"==i)var s="Geo_moon.analysis("+n+")";else s="Geo_moon.analysis("+n+', "'+i+'")';return[s,t.ORDER_ATOMIC]},lU='
\r\n
{{-d.title}}
\r\n
\r\n {{# if (d.message) { }}\r\n

\r\n {{-d.message}}\r\n

\r\n {{# } }}\r\n
\r\n
',{XML:dU}=Ce,IU=dU.render(lU,{title:"烧录速度",message:"要选择烧录速度,请更改“Burn Speed”,此值将用于向设备烧录代码。如果在用较高的烧录速度时出现问题,请尝试减小此值,这可能是由于外部串行到USB芯片的限制。"}),{XML:TU}=Ce,MU=TU.render(lU,{title:"燒錄速度",message:"要選擇燒錄速度,請更改“Burn Speed”,此值將用於向設備燒錄程式碼。如果在用較高的燒錄速度時出現問題,請嘗試减小此值,這可能是由於外部串列到USB晶片的限制。"}),{XML:hU}=Ce,mU=hU.render(lU,{title:"Burn Speed",message:"To select the flashing speed, change the Burn Speed. This value will be used for flashing the code to the device. If you have issues while flashing the device at high speed, try to decrease this value. This could be due to the external serial-to-USB chip limitations."}),EU=new ge.Generator("Python");EU.INDENT=" ",EU.addReservedWords("False,None,True,and,as,assert,break,class,continue,def,del,elif,else,except,exec,finally,for,from,global,if,import,in,is,lambda,nonlocal,not,or,pass,print,raise,return,try,while,with,yield,NotImplemented,Ellipsis,__debug__,quit,exit,copyright,license,credits,ArithmeticError,AssertionError,AttributeError,BaseException,BlockingIOError,BrokenPipeError,BufferError,BytesWarning,ChildProcessError,ConnectionAbortedError,ConnectionError,ConnectionRefusedError,ConnectionResetError,DeprecationWarning,EOFError,Ellipsis,EnvironmentError,Exception,FileExistsError,FileNotFoundError,FloatingPointError,FutureWarning,GeneratorExit,IOError,ImportError,ImportWarning,IndentationError,IndexError,InterruptedError,IsADirectoryError,KeyError,KeyboardInterrupt,LookupError,MemoryError,ModuleNotFoundError,NameError,NotADirectoryError,NotImplemented,NotImplementedError,OSError,OverflowError,PendingDeprecationWarning,PermissionError,ProcessLookupError,RecursionError,ReferenceError,ResourceWarning,RuntimeError,RuntimeWarning,StandardError,StopAsyncIteration,StopIteration,SyntaxError,SyntaxWarning,SystemError,SystemExit,TabError,TimeoutError,TypeError,UnboundLocalError,UnicodeDecodeError,UnicodeEncodeError,UnicodeError,UnicodeTranslateError,UnicodeWarning,UserWarning,ValueError,Warning,ZeroDivisionError,_,__build_class__,__debug__,__doc__,__import__,__loader__,__name__,__package__,__spec__,abs,all,any,apply,ascii,basestring,bin,bool,buffer,bytearray,bytes,callable,chr,classmethod,cmp,coerce,compile,complex,copyright,credits,delattr,dict,dir,divmod,enumerate,eval,exec,execfile,exit,file,filter,float,format,frozenset,getattr,globals,hasattr,hash,help,hex,id,input,int,intern,isinstance,issubclass,iter,len,license,list,locals,long,map,max,memoryview,min,next,object,oct,open,ord,pow,print,property,quit,range,raw_input,reduce,reload,repr,reversed,round,set,setattr,slice,sorted,staticmethod,str,sum,super,tuple,type,unichr,unicode,vars,xrange,zip"),EU.ORDER_ATOMIC=0,EU.ORDER_COLLECTION=1,EU.ORDER_STRING_CONVERSION=1,EU.ORDER_UNARY_POSTFIX=1,EU.ORDER_UNARY_PREFIX=2,EU.ORDER_MEMBER=2.1,EU.ORDER_FUNCTION_CALL=2.2,EU.ORDER_EXPONENTIATION=3,EU.ORDER_UNARY_SIGN=4,EU.ORDER_BITWISE_NOT=4,EU.ORDER_MULTIPLICATIVE=5,EU.ORDER_ADDITIVE=6,EU.ORDER_BITWISE_SHIFT=7,EU.ORDER_BITWISE_AND=8,EU.ORDER_BITWISE_XOR=9,EU.ORDER_BITWISE_OR=10,EU.ORDER_RELATIONAL=11,EU.ORDER_EQUALITY=11,EU.ORDER_LOGICAL_NOT=12,EU.ORDER_LOGICAL_AND=13,EU.ORDER_LOGICAL_OR=14,EU.ORDER_ASSIGNMENT=14,EU.ORDER_CONDITIONAL=15,EU.ORDER_LAMBDA=16,EU.ORDER_NONE=99,EU.ORDER_OVERRIDES=[[EU.ORDER_FUNCTION_CALL,EU.ORDER_MEMBER],[EU.ORDER_FUNCTION_CALL,EU.ORDER_FUNCTION_CALL],[EU.ORDER_MEMBER,EU.ORDER_MEMBER],[EU.ORDER_MEMBER,EU.ORDER_FUNCTION_CALL]],EU.init=function(){EU.PASS=this.INDENT+"pass\n",EU.definitions_=Object.create(null),EU.functionNames_=Object.create(null),EU.setups_=Object.create(null),EU.loops_=Object.create(null),EU.codeEnd_=Object.create(null),EU.variableDB_?EU.variableDB_.reset():EU.variableDB_=new Ne(EU.RESERVED_WORDS_)},EU.finish=function(e){""!==e&&(e=(e=e.replace(/\n/g,"\n")).replace(/\n\s+$/,"\n"));var t=[],i=[],n=[];for(var s in this.definitions_){var _=this.definitions_[s];0===s.indexOf("import")?t.push(_):0===s.indexOf("var_declare")?i.push(_):n.push(_)}t.length&&t.push("\n"),i.length&&i.push("\n"),n.length&&n.push("\n");var o=[];for(var s in EU.functions_)o.push(EU.functions_[s]);o.length&&o.push("\n");var p=[];for(var s in EU.setups_)p.push(EU.setups_[s]);p.length&&p.push("\n");var a=[];for(var s in EU.loops_)a.push(EU.loops_[s]);var u=[];for(var s in EU.codeEnd_)u.push(EU.codeEnd_[s]);0!==u.length&&u.push("\n");let r="";return r=a.length>0?t.join("\n")+i.join("\n")+n.join("\n")+o.join("\n")+p.join("")+e+"while True:\n"+a.join("")+u.join("\n"):t.join("\n")+i.join("\n")+n.join("\n")+o.join("\n")+p.join("")+e+u.join("\n"),r},EU.scrubNakedValue=function(e){return e+"\n"},EU.quote_=function(e){var t="'";return-1!==(e=e.replace(/\\/g,"\\\\").replace(/\n/g,"\\\n")).indexOf("'")&&(-1===e.indexOf('"')?t='"':e=e.replace(/'/g,"\\'")),t+e+t},EU.multiline_quote_=function(e){return"'''"+(e=e.replace(/'''/g,"\\'\\'\\'"))+"'''"},EU.scrub_=function(e,t,i){var n="";if(!e.outputConnection||!e.outputConnection.targetConnection){(_=e.getCommentText())&&(_=ge.utils.string.wrap(_,EU.COMMENT_WRAP-3),n+=EU.prefixLines(_+"\n","# "));for(var s=0;s0?"int("+p+" + "+s+")":s<0?"int("+p+" - "+-s+")":"int("+p+")",n&&(p="-"+p)),p};const OU={};OU.mpython={description:"MicroPython[EDUCORE Edu Core]",digital_pin:Ce.Profile.generate(["0-10","18"]),input_pin:Ce.Profile.generate(["0-10","18"]),output_pin:Ce.Profile.generate(["0-10","18"]),pwm_input:Ce.Profile.generate(["0-10","18"],"pwm","pwm"),analog_input:Ce.Profile.generate(["0-4"],"adc","adc"),pwm_output:Ce.Profile.generate(["0-10","18"],"pwm","pwm"),analog_output:Ce.Profile.generate(["0-4"],"adc","adc"),espnow_channel:Ce.Profile.generate(["1-13"]),haskylens_model:Ce.Profile.generate(["0-4"]),digital:Ce.Profile.generate(["0-10","18"],"pin","pin"),pwm_pin:Ce.Profile.generate(["0-10","18"]),pwm:Ce.Profile.generate(["0-10","18"],"pwm","pwm"),analog_pin:Ce.Profile.generate(["0-4"]),analog:Ce.Profile.generate(["0-4"],"adc","adc"),button:[["B1","B1key"],["B2","B2key"],["A1","A1key"],["A2","A2key"],["A3","A3key"],["A4","A4key"]],buttonB:[["B1","B1key"],["B2","B2key"]],axis:Ce.Profile.generate(["0-4"]),exlcdh:Ce.Profile.generate(["0-11"]),exlcdv:Ce.Profile.generate(["0-7"]),brightness:Ce.Profile.generate(["0-9"]),tts_voice:Ce.Profile.generate(["0-16"]),tts_builtin_music:Ce.Profile.generate(["0-47"]),tts_bgmusic:Ce.Profile.generate(["0-15"]),builtinimg:[["HEART","onboard_matrix.HEART"],["HEART_SMALL","onboard_matrix.HEART_SMALL"],["HAPPY","onboard_matrix.HAPPY"],["SAD","onboard_matrix.SAD"],["SMILE","onboard_matrix.SMILE"],["ANGRY","onboard_matrix.ANGRY"],["NO","onboard_matrix.NO"],["YES","onboard_matrix.YES"],["DOOR_OPEN","onboard_matrix.DOOR_OPEN"],["DOOR_OPENING","onboard_matrix.DOOR_OPENING"],["DOOR_CLOSE","onboard_matrix.DOOR_CLOSE"]],builtinimg_extern:[["HEART","matrix32x12.Matrix.HEART"],["HEART_SMALL","matrix32x12.Matrix.HEART_SMALL"],["HAPPY","matrix32x12.Matrix.HAPPY"],["SAD","matrix32x12.Matrix.SAD"],["SMILE","matrix32x12.Matrix.SMILE"],["SILLY","matrix32x12.Matrix.SILLY"],["FABULOUS","matrix32x12.Matrix.FABULOUS"],["SURPRISED","matrix32x12.Matrix.SURPRISED"],["ASLEEP","matrix32x12.Matrix.ASLEEP"],["ANGRY","matrix32x12.Matrix.ANGRY"],["CONFUSED","matrix32x12.Matrix.CONFUSED"],["NO","matrix32x12.Matrix.NO"],["YES","matrix32x12.Matrix.YES"],["LEFT_ARROW","matrix32x12.Matrix.LEFT_ARROW"],["RIGHT_ARROW","matrix32x12.Matrix.RIGHT_ARROW"],["DRESS","matrix32x12.Matrix.DRESS"],["TRANSFORMERS","matrix32x12.Matrix.TRANSFORMERS"],["SCISSORS","matrix32x12.Matrix.SCISSORS"],["EXIT","matrix32x12.Matrix.EXIT"],["TREE","matrix32x12.Matrix.TREE"],["PACMAN","matrix32x12.Matrix.PACMAN"],["TARGET","matrix32x12.Matrix.TARGET"],["TSHIRT","matrix32x12.Matrix.TSHIRT"],["ROLLERSKATE","matrix32x12.Matrix.ROLLERSKATE"],["DUCK","matrix32x12.Matrix.DUCK"],["HOUSE","matrix32x12.Matrix.HOUSE"],["TORTOISE","matrix32x12.Matrix.TORTOISE"],["BUTTERFLY","matrix32x12.Matrix.BUTTERFLY"],["STICKFIGURE","matrix32x12.Matrix.STICKFIGURE"],["GHOST","matrix32x12.Matrix.GHOST"],["PITCHFORK","matrix32x12.Matrix.PITCHFORK"],["onboard_music_QUAVERS","matrix32x12.Matrix.onboard_music_QUAVERS"],["onboard_music_QUAVER","matrix32x12.Matrix.onboard_music_QUAVER"],["onboard_music_CROTCHET","matrix32x12.Matrix.onboard_music_CROTCHET"],["COW","matrix32x12.Matrix.COW"],["RABBIT","matrix32x12.Matrix.RABBIT"],["SQUARE_SMALL","matrix32x12.Matrix.SQUARE_SMALL"],["SQUARE","matrix32x12.Matrix.SQUARE"],["DIAMOND_SMALL","matrix32x12.Matrix.DIAMOND_SMALL"],["DIAMOND","matrix32x12.Matrix.DIAMOND"],["CHESSBOARD","matrix32x12.Matrix.CHESSBOARD"],["TRIANGLE_LEFT","matrix32x12.Matrix.TRIANGLE_LEFT"],["TRIANGLE","matrix32x12.Matrix.TRIANGLE"],["SNAKE","matrix32x12.Matrix.SNAKE"],["UMBRELLA","matrix32x12.Matrix.UMBRELLA"],["SKULL","matrix32x12.Matrix.SKULL"],["GIRAFFE","matrix32x12.Matrix.GIRAFFE"],["SWORD","matrix32x12.Matrix.SWORD"]],imglist:[["ALL_CLOCKS","matrix.Image.ALL_CLOCKS"],["ALL_ARROWS","matrix.Image.ALL_ARROWS"]],playlist:[["DADADADUM","onboard_music.DADADADUM"],["BIRTHDAY","onboard_music.BIRTHDAY"],["BA_DING","onboard_music.BA_DING"],["JUMP_UP","onboard_music.JUMP_UP"],["JUMP_DOWN","onboard_music.JUMP_DOWN"],["POWER_UP","onboard_music.POWER_UP"],["POWER_DOWN","onboard_music.POWER_DOWN"]],playlist_extern:[["DADADADUM","DADADADUM"],["ENTERTAINER","ENTERTAINER"],["PRELUDE","PRELUDE"],["ODE","ODE"],["NYAN","NYAN"],["RINGTONE","RINGTONE"],["FUNK","FUNK"],["BLUES","BLUES"],["BIRTHDAY","BIRTHDAY"],["WEDDING","WEDDING"],["FUNERAL","FUNERAL"],["PUNCHLINE","PUNCHLINE"],["PYTHON","PYTHON"],["BADDY","BADDY"],["CHASE","CHASE"],["BA_DING","BA_DING"],["WAWAWAWAA","WAWAWAWAA"],["JUMP_UP","JUMP_UP"],["JUMP_DOWN","JUMP_DOWN"],["POWER_UP","POWER_UP"],["POWER_DOWN","POWER_DOWN"]],tone_notes:[["NOTE_C3","131"],["NOTE_D3","147"],["NOTE_E3","165"],["NOTE_F3","175"],["NOTE_G3","196"],["NOTE_A3","220"],["NOTE_B3","247"],["NOTE_C4","262"],["NOTE_D4","294"],["NOTE_E4","330"],["NOTE_F4","349"],["NOTE_G4","392"],["NOTE_A4","440"],["NOTE_B4","494"],["NOTE_C5","523"],["NOTE_D5","587"],["NOTE_E5","659"],["NOTE_F5","698"],["NOTE_G5","784"],["NOTE_A5","880"],["NOTE_B5","988"]],serial_pin:[["pin0","0"],["pin1","1"],["pin2","2"],["pin8","8"],["pin12","12"],["pin13","13"],["pin14","14"],["pin15","15"],["pin16","16"]],radio_power:[["0","0"],["1","1"],["2","2"],["3","3"],["4","4"],["5","5"],["6","6"],["7","7"]],radio_datarate:[["1Mbit","RATE_1MBIT"],["250Kbit","RATE_250KBIT"],["2Mbit","RATE_2MBIT"]],one_more:[["ONE_SHOT","ONE_SHOT"],["PERIODIC","PERIODIC"]],digital_dot:[["0","0"],["1","1"],["2","2"]]},OU["ESP32C2 Generic(2M)"]={description:"MicroPython[ESP32C3 MixGo CC]",digital_pin:Ce.Profile.generate(["0-11","18-21"]),input_pin:Ce.Profile.generate(["0-11","18-21"]),output_pin:Ce.Profile.generate(["0-11","18-21"]),pwm_input:Ce.Profile.generate(["0-11","18-21"],"pwm","pwm"),analog_input:Ce.Profile.generate(["0-5"],"adc","adc"),pwm_output:Ce.Profile.generate(["0-11","18-21"],"pwm","pwm"),analog_output:Ce.Profile.generate(["0-5"],"adc","adc"),espnow_channel:Ce.Profile.generate(["1-13"]),haskylens_model:Ce.Profile.generate(["0-4"]),digital:Ce.Profile.generate(["0-11","18-21"],"pin","pin"),pwm_pin:Ce.Profile.generate(["0-11","18-21"]),pwm:Ce.Profile.generate(["0-11","18-21"],"pwm","pwm"),analog_pin:Ce.Profile.generate(["0-5"]),analog:Ce.Profile.generate(["0-5"],"adc","adc"),button:[["B1","B1key"],["B2","B2key"],["A1","A1key"],["A2","A2key"],["A3","A3key"],["A4","A4key"]],buttonB:[["B1","B1key"],["B2","B2key"]],axis:Ce.Profile.generate(["0-4"]),exlcdh:Ce.Profile.generate(["0-31"]),exlcdv:Ce.Profile.generate(["0-11"]),brightness:Ce.Profile.generate(["0-9"]),tts_voice:Ce.Profile.generate(["0-16"]),tts_builtin_music:Ce.Profile.generate(["0-47"]),tts_bgmusic:Ce.Profile.generate(["0-15"]),builtinimg:[["HEART","onboard_matrix.HEART"],["HEART_SMALL","onboard_matrix.HEART_SMALL"],["HAPPY","onboard_matrix.HAPPY"],["SAD","onboard_matrix.SAD"],["SMILE","onboard_matrix.SMILE"],["SILLY","onboard_matrix.SILLY"],["FABULOUS","onboard_matrix.FABULOUS"],["SURPRISED","onboard_matrix.SURPRISED"],["ASLEEP","onboard_matrix.ASLEEP"],["ANGRY","onboard_matrix.ANGRY"],["CONFUSED","onboard_matrix.CONFUSED"],["NO","onboard_matrix.NO"],["YES","onboard_matrix.YES"]],builtinimg_extern:[["HEART","matrix32x12.Matrix.HEART"],["HEART_SMALL","matrix32x12.Matrix.HEART_SMALL"],["HAPPY","matrix32x12.Matrix.HAPPY"],["SAD","matrix32x12.Matrix.SAD"],["SMILE","matrix32x12.Matrix.SMILE"],["SILLY","matrix32x12.Matrix.SILLY"],["FABULOUS","matrix32x12.Matrix.FABULOUS"],["SURPRISED","matrix32x12.Matrix.SURPRISED"],["ASLEEP","matrix32x12.Matrix.ASLEEP"],["ANGRY","matrix32x12.Matrix.ANGRY"],["CONFUSED","matrix32x12.Matrix.CONFUSED"],["NO","matrix32x12.Matrix.NO"],["YES","matrix32x12.Matrix.YES"],["LEFT_ARROW","matrix32x12.Matrix.LEFT_ARROW"],["RIGHT_ARROW","matrix32x12.Matrix.RIGHT_ARROW"],["DRESS","matrix32x12.Matrix.DRESS"],["TRANSFORMERS","matrix32x12.Matrix.TRANSFORMERS"],["SCISSORS","matrix32x12.Matrix.SCISSORS"],["EXIT","matrix32x12.Matrix.EXIT"],["TREE","matrix32x12.Matrix.TREE"],["PACMAN","matrix32x12.Matrix.PACMAN"],["TARGET","matrix32x12.Matrix.TARGET"],["TSHIRT","matrix32x12.Matrix.TSHIRT"],["ROLLERSKATE","matrix32x12.Matrix.ROLLERSKATE"],["DUCK","matrix32x12.Matrix.DUCK"],["HOUSE","matrix32x12.Matrix.HOUSE"],["TORTOISE","matrix32x12.Matrix.TORTOISE"],["BUTTERFLY","matrix32x12.Matrix.BUTTERFLY"],["STICKFIGURE","matrix32x12.Matrix.STICKFIGURE"],["GHOST","matrix32x12.Matrix.GHOST"],["PITCHFORK","matrix32x12.Matrix.PITCHFORK"],["onboard_music_QUAVERS","matrix32x12.Matrix.onboard_music_QUAVERS"],["onboard_music_QUAVER","matrix32x12.Matrix.onboard_music_QUAVER"],["onboard_music_CROTCHET","matrix32x12.Matrix.onboard_music_CROTCHET"],["COW","matrix32x12.Matrix.COW"],["RABBIT","matrix32x12.Matrix.RABBIT"],["SQUARE_SMALL","matrix32x12.Matrix.SQUARE_SMALL"],["SQUARE","matrix32x12.Matrix.SQUARE"],["DIAMOND_SMALL","matrix32x12.Matrix.DIAMOND_SMALL"],["DIAMOND","matrix32x12.Matrix.DIAMOND"],["CHESSBOARD","matrix32x12.Matrix.CHESSBOARD"],["TRIANGLE_LEFT","matrix32x12.Matrix.TRIANGLE_LEFT"],["TRIANGLE","matrix32x12.Matrix.TRIANGLE"],["SNAKE","matrix32x12.Matrix.SNAKE"],["UMBRELLA","matrix32x12.Matrix.UMBRELLA"],["SKULL","matrix32x12.Matrix.SKULL"],["GIRAFFE","matrix32x12.Matrix.GIRAFFE"],["SWORD","matrix32x12.Matrix.SWORD"]],imglist:[["ALL_CLOCKS","matrix.Image.ALL_CLOCKS"],["ALL_ARROWS","matrix.Image.ALL_ARROWS"]],playlist:[["DADADADUM","onboard_music.DADADADUM"],["ENTERTAINER","onboard_music.ENTERTAINER"],["PRELUDE","onboard_music.PRELUDE"],["ODE","onboard_music.ODE"],["NYAN","onboard_music.NYAN"],["RINGTONE","onboard_music.RINGTONE"],["FUNK","onboard_music.FUNK"],["BLUES","onboard_music.BLUES"],["BIRTHDAY","onboard_music.BIRTHDAY"],["WEDDING","onboard_music.WEDDING"],["FUNERAL","onboard_music.FUNERAL"],["PUNCHLINE","onboard_music.PUNCHLINE"],["PYTHON","onboard_music.PYTHON"],["BADDY","onboard_music.BADDY"],["CHASE","onboard_music.CHASE"],["BA_DING","onboard_music.BA_DING"],["WAWAWAWAA","onboard_music.WAWAWAWAA"],["JUMP_UP","onboard_music.JUMP_UP"],["JUMP_DOWN","onboard_music.JUMP_DOWN"],["POWER_UP","onboard_music.POWER_UP"],["POWER_DOWN","onboard_music.POWER_DOWN"]],playlist_extern:[["DADADADUM","DADADADUM"],["ENTERTAINER","ENTERTAINER"],["PRELUDE","PRELUDE"],["ODE","ODE"],["NYAN","NYAN"],["RINGTONE","RINGTONE"],["FUNK","FUNK"],["BLUES","BLUES"],["BIRTHDAY","BIRTHDAY"],["WEDDING","WEDDING"],["FUNERAL","FUNERAL"],["PUNCHLINE","PUNCHLINE"],["PYTHON","PYTHON"],["BADDY","BADDY"],["CHASE","CHASE"],["BA_DING","BA_DING"],["WAWAWAWAA","WAWAWAWAA"],["JUMP_UP","JUMP_UP"],["JUMP_DOWN","JUMP_DOWN"],["POWER_UP","POWER_UP"],["POWER_DOWN","POWER_DOWN"]],tone_notes:[["NOTE_C3","131"],["NOTE_D3","147"],["NOTE_E3","165"],["NOTE_F3","175"],["NOTE_G3","196"],["NOTE_A3","220"],["NOTE_B3","247"],["NOTE_C4","262"],["NOTE_D4","294"],["NOTE_E4","330"],["NOTE_F4","349"],["NOTE_G4","392"],["NOTE_A4","440"],["NOTE_B4","494"],["NOTE_C5","523"],["NOTE_D5","587"],["NOTE_E5","659"],["NOTE_F5","698"],["NOTE_G5","784"],["NOTE_A5","880"],["NOTE_B5","988"]],serial_pin:[["pin0","0"],["pin1","1"],["pin2","2"],["pin8","8"],["pin12","12"],["pin13","13"],["pin14","14"],["pin15","15"],["pin16","16"]],radio_power:[["0","0"],["1","1"],["2","2"],["3","3"],["4","4"],["5","5"],["6","6"],["7","7"]],radio_datarate:[["1Mbit","RATE_1MBIT"],["250Kbit","RATE_250KBIT"],["2Mbit","RATE_2MBIT"]],one_more:[["ONE_SHOT","ONE_SHOT"],["PERIODIC","PERIODIC"]],digital_dot:[["0","0"],["1","1"],["2","2"]]};const RU=OU,cU=20,gU={init:function(){this.setColour(cU),this.appendDummyInput("").appendField(new ge.FieldDropdown([[ge.Msg.MIXLY_HIGH,"HIGH"],[ge.Msg.MIXLY_LOW,"LOW"]]),"BOOL"),this.setOutput(!0,Boolean),this.setTooltip(ge.Msg.MIXLY_ESP32_INOUT_HIGHLOW_TOOLTIP)}},CU={init:function(){this.setColour(cU),this.appendValueInput("PIN",Number).appendField(ge.Msg.MIXLY_Digital_PINMODEOUT).setCheck(Number),this.appendValueInput("STAT").appendField(ge.Msg.MIXLY_STAT).setCheck([Number,Boolean]),this.setPreviousStatement(!0,null),this.setNextStatement(!0,null),this.setInputsInline(!0),this.setTooltip(ge.Msg.MIXLY_ESP32_INOUT_DIGITAL_WRITE_TOOLTIP)}},SU={init:function(){this.setColour(cU),this.appendValueInput("PIN",Number).appendField(ge.Msg.MIXLY_MICROBIT_PY_STORAGE_GET).appendField(ge.Msg.MIXLY_Digital_PINMODEIN).setCheck(Number),this.appendDummyInput().appendField(ge.Msg.MIXLY_ESP32_MACHINE_VALUE),this.setInputsInline(!0),this.setOutput(!0,[Boolean,Number]),this.setTooltip(ge.Msg.MIXLY_ESP32_INOUT_DIGITAL_READ_TOOLTIP)}},AU={init:function(){this.setColour(cU),this.appendValueInput("PIN",Number).appendField("DAC"+ge.Msg.MIXLY_Analog_PINMODEOUT).setCheck(Number),this.appendValueInput("NUM",Number).appendField(ge.Msg.MIXLY_VALUE2).setCheck(Number),this.setInputsInline(!0),this.setPreviousStatement(!0,null),this.setNextStatement(!0,null),this.setTooltip(ge.Msg.MIXLY_ESP32_INOUT_ANALOG_WRITE_TOOLTIP)}},LU={init:function(){this.setColour(cU),this.appendValueInput("PIN",Number).appendField(ge.Msg.MIXLY_Analog_PINMODEOUT).setCheck(Number),this.appendDummyInput().appendField(ge.Msg.MIXLY_MICROBIT_JS_PERIOD_MIL).appendField(new ge.FieldDropdown([[ge.Msg.MIXLY_mSecond,"period"],[ge.Msg.MIXLY_uSecond,"period_microseconds"]]),"key"),this.appendValueInput("NUM",Number).appendField(ge.Msg.MIXLY_STAT).setCheck(Number),this.setInputsInline(!0),this.setPreviousStatement(!0,null),this.setNextStatement(!0,null),this.setTooltip(ge.Msg.MIXLY_ESP32_INOUT_ANALOG_WRITE_SET_TOOLTIP)}},NU={init:function(){this.setColour(cU),this.appendValueInput("PIN",Number).appendField(ge.Msg.MIXLY_Analog_PINMODEIN).setCheck(Number),this.appendDummyInput("").appendField(ge.Msg.MIXLY_ESP32_REF_VOLTAGE+ge.Msg.MIXLY_STAT).appendField(new ge.FieldDropdown([["3.3V","machine.ADC.ATTN_11DB"],["2.2V","machine.ADC.ATTN_6DB"],["1.5V","machine.ADC.ATTN_2_5DB"],["1.2V","machine.ADC.ATTN_0DB"]]),"atten"),this.setInputsInline(!0),this.setPreviousStatement(!0,null),this.setNextStatement(!0,null),this.setTooltip(ge.Msg.MIXLY_ESP32_INOUT_ANALOG_ATTEN_TOOLTIP)}},DU={init:function(){this.setColour(cU),this.appendValueInput("pin").appendField(ge.Msg.MIXLY_MICROBIT_PY_STORAGE_GET).appendField(ge.Msg.MIXLY_ESP32_TOUCH_SENSOR),this.appendDummyInput().appendField(ge.Msg.MIXLY_ESP32_MACHINE_VALUE),this.setOutput(!0,Number),this.setInputsInline(!0),this.setTooltip(ge.Msg.MIXLY_ESP32_INOUT_PIN_PRESSED_TOOLTIP)}},fU={init:function(){this.setColour(20),this.appendValueInput("PIN",Number).appendField(ge.Msg.MIXLY_ATTACHINTERRUPT_PIN).setCheck(Number),this.appendDummyInput("").appendField(ge.Msg.MIXLY_MODE).appendField(new ge.FieldDropdown([[ge.Msg.MIXLY_RISING,"machine.Pin.IRQ_RISING"],[ge.Msg.MIXLY_FALLING,"machine.Pin.IRQ_FALLING"],[ge.Msg.MIXLY_CHANGE,"(machine.Pin.IRQ_RISING | machine.Pin.IRQ_FALLING)"]]),"mode"),this.appendValueInput("DO").appendField(ge.Msg.MIXLY_DO),this.setPreviousStatement(!0),this.setNextStatement(!0),this.setTooltip(ge.Msg.MIXLY_ESP32_INOUT_PIN_ATTACHINTERRUPT_TOOLTIP)}},FU={init:function(){this.setColour(20),this.appendDummyInput().appendField(ge.Msg.MIXLY_SETUP).appendField(new ge.FieldTextInput("pin#"),"PIN_OBJ"),this.appendDummyInput("").appendField(ge.Msg.MIXLY_MICROPYTHON_AS).appendField(new ge.FieldDropdown([[ge.Msg.MIXLY_Digital_PINMODEOUT,"machine.Pin.OUT"],[ge.Msg.MIXLY_Digital_PINMODEIN,"machine.Pin.IN"],[ge.Msg.MIXLY_PINMODEPULLUP,"machine.Pin.IN, machine.Pin.PULL_UP"],[ge.Msg.MIXLY_PINMODEPULLDOWN,"machine.Pin.IN, machine.Pin.PULL_DOWN"]]),"MODE"),this.appendValueInput("PIN",Number).appendField(ge.Msg.MIXLY_PIN).setCheck(Number),this.setPreviousStatement(!0,null),this.setNextStatement(!0,null),this.setInputsInline(!0),this.setTooltip(ge.Msg.MIXLY_ESP32_INOUT_DIGITAL_INIT_TOOLTIP)},getVars:function(){return["pin#"==this.getFieldValue("PIN_OBJ")?null:this.getFieldValue("PIN_OBJ")]},renameVar:function(e,t){ge.Names.equals(e,this.getFieldValue("PIN_OBJ"))&&this.setTitleValue(t,"PIN_OBJ")}},PU={init:function(){this.setColour(cU),this.appendDummyInput("").appendField(ge.Msg.MIXLY_SETUP).appendField(new ge.FieldTextInput("dac#"),"PIN_OBJ").appendField(ge.Msg.MIXLY_MICROPYTHON_AS),this.appendDummyInput("").appendField("DAC"+ge.Msg.MIXLY_Analog_PINMODEOUT),this.appendValueInput("PIN",Number).appendField(ge.Msg.MIXLY_PIN).setCheck(Number),this.setInputsInline(!0),this.setPreviousStatement(!0,null),this.setNextStatement(!0,null),this.setTooltip(ge.Msg.MIXLY_ESP32_INOUT_ANALOG_WRITE_INIT_TOOLTIP)},getVars:function(){return["dac#"==this.getFieldValue("PIN_OBJ")?null:this.getFieldValue("PIN_OBJ")]},renameVar:function(e,t){ge.Names.equals(e,this.getFieldValue("PIN_OBJ"))&&this.setTitleValue(t,"PIN_OBJ")}},vU={init:function(){this.setColour(cU),this.appendDummyInput("").appendField(ge.Msg.MIXLY_SETUP).appendField(new ge.FieldTextInput("tc#"),"PIN_OBJ").appendField(ge.Msg.MIXLY_MICROPYTHON_AS),this.appendDummyInput("").appendField(ge.Msg.MIXLY_ESP32_TOUCH_SENSOR),this.appendValueInput("PIN",Number).appendField(ge.Msg.MIXLY_PIN).setCheck(Number),this.setInputsInline(!0),this.setPreviousStatement(!0,null),this.setNextStatement(!0,null),this.setTooltip(ge.Msg.MIXLY_ESP32_INOUT_PIN_PRESSED_INIT_TOOLTIP)},getVars:function(){return["tc#"==this.getFieldValue("PIN_OBJ")?null:this.getFieldValue("PIN_OBJ")]},renameVar:function(e,t){ge.Names.equals(e,this.getFieldValue("PIN_OBJ"))&&this.setTitleValue(t,"PIN_OBJ")}},YU={init:function(){this.setColour(cU),this.appendValueInput("PIN",Number).appendField("PWM"+ge.Msg.MIXLY_Analog_PINMODEOUT).setCheck(Number),this.appendValueInput("NUM",Number).appendField(ge.Msg.MIXLY_FREQUENCY+ge.Msg.MIXLY_STAT).setCheck(Number),this.setInputsInline(!0),this.setPreviousStatement(!0,null),this.setNextStatement(!0,null),this.setTooltip(ge.Msg.MIXLY_ESP32_INOUT_PWM_ANALOG_WRITE_SET_FREQ_TOOLTIP)}},XU=FU,yU=vU,bU=DU,xU=fU,VU=40,BU={init:function(){if("mixgo_me"==Ce.Boards.getSelectedBoardKey().split(":")[2])var e="ME G1";this.setColour(VU),this.appendDummyInput("").appendField(e).appendField(ge.Msg.MIXLY_TEM_HUM+" AHT21").appendField(new ge.FieldDropdown([[ge.Msg.MIXLY_GETTEMPERATUE,"temperature"],[ge.Msg.MIXLY_GETHUMIDITY,"humidity"]]),"key"),this.setOutput(!0,Number),this.setInputsInline(!0);var t=this;this.setTooltip((function(){var e=t.getFieldValue("key");return{temperature:ge.Msg.MIXLY_MICROBIT_SENSOR_SHT_temperature_TOOLTIP,relative_humidity:ge.Msg.MIXLY_MICROBIT_SENSOR_SHT_HUM_TOOLTIP}[e]}))}},GU={init:function(){if("mixgo_me"==Ce.Boards.getSelectedBoardKey().split(":")[2])var e="ME G1";this.setColour(VU),this.appendDummyInput("").appendField(e).appendField(ge.Msg.MIXLY_Altitude+ge.Msg.MSG.catSensor+" HP203X").appendField(new ge.FieldDropdown([[ge.Msg.MIXLY_GETPRESSURE,"pressure()"],[ge.Msg.MIXLY_GETTEMPERATUE,"temperature()"],[ge.Msg.MIXLY_GET_ALTITUDE,"altitude()"]]),"key"),this.setOutput(!0,Number),this.setInputsInline(!0)}},UU={init:function(){if("mixgo_me"==Ce.Boards.getSelectedBoardKey().split(":")[2])var e="ME G1";this.setColour(VU),this.appendDummyInput().appendField(e).appendField(ge.Msg.MIXLY_MIXGO_NOVA_POTENTIAL_NUM),this.setOutput(!0,Number),this.setInputsInline(!0)}},wU={init:function(){if("mixgo_me"==Ce.Boards.getSelectedBoardKey().split(":")[2])var e="ME G1";this.setColour(VU),this.appendDummyInput().appendField(e).appendField("RFID"+ge.Msg.MIXLY_RFID_READ_CARD),this.appendDummyInput("").appendField(ge.Msg.MIXLY_RFID_READ_CARD_UID),this.setOutput(!0,Number),this.setInputsInline(!0)}},kU={init:function(){if("mixgo_me"==Ce.Boards.getSelectedBoardKey().split(":")[2])var e="ME G1";this.setColour(VU),this.appendDummyInput().appendField(e).appendField("RFID"+ge.Msg.MIXLY_RFID_READ_CARD),this.appendValueInput("SECTOR").appendField(ge.Msg.MIXLY_LIST_INDEX),this.appendDummyInput("").appendField(ge.Msg.MIXLY_MICROBIT_PY_STORAGE_ALL),this.setOutput(!0,Number),this.setInputsInline(!0)}},HU={init:function(){if("mixgo_me"==Ce.Boards.getSelectedBoardKey().split(":")[2])var e="ME G1";this.setColour(VU),this.appendDummyInput().appendField(e).appendField(ge.Msg.MIXLY_COMMUNICATION_RFID_WRITE),this.appendValueInput("SECTOR").appendField(ge.Msg.MIXLY_LIST_INDEX),this.appendValueInput("CONTENT").appendField(ge.Msg.MIXLY_COMMUNICATION_WRITE_NUM),this.setInputsInline(!0),this.setPreviousStatement(!0,null),this.setNextStatement(!0,null)}},WU={init:function(){if("mixgo_me"==Ce.Boards.getSelectedBoardKey().split(":")[2])var e="ME G1";this.setColour(VU),this.appendDummyInput().appendField(e).appendField(ge.Msg.MIXLY_COMMUNICATION_RFID_WRITE),this.appendValueInput("SECTOR").appendField(ge.Msg.MIXLY_LIST_INDEX),this.appendValueInput("CONTENT").appendField(ge.Msg.MIXLY_COMMUNICATION_WRITE_NUM),this.appendDummyInput().appendField(ge.Msg.RETURN_SUCCESS_OR_NOT),this.setInputsInline(!0),this.setOutput(!0)}},KU={init:function(){if("mixgo_me"==Ce.Boards.getSelectedBoardKey().split(":")[2])var e="ME G1";this.setColour(VU),this.appendDummyInput().appendField(e).appendField("RFID"),this.appendDummyInput("").appendField(new ge.FieldDropdown([[ge.Msg.MIXLY_RFID_SCAN_OK,"True"],[ge.Msg.MIXLY_RFID_SCAN_NOTAGERR,"None"],[ge.Msg.MIXLY_RFID_SCAN_ERROR,"False"]]),"key"),this.setOutput(!0,Number),this.setInputsInline(!0)}},JU=100,qU={init:function(){this.setColour(JU),this.appendDummyInput("").appendField(new ge.FieldDropdown([[ge.Msg.MIXGO_LEFT_FRONT+ge.Msg.COLOUR_RGB_GREEN+ge.Msg.MIXLY_EXTERN_LED,"GLED[0]"],[ge.Msg.MIXGO_RIGHT_FRONT+ge.Msg.COLOUR_RGB_GREEN+ge.Msg.MIXLY_EXTERN_LED,"GLED[1]"],[ge.Msg.MIXGO_LEFT_BACK+ge.Msg.COLOUR_RGB_GREEN+ge.Msg.MIXLY_EXTERN_LED,"GLED[3]"],[ge.Msg.MIXGO_RIGHT_BACK+ge.Msg.COLOUR_RGB_GREEN+ge.Msg.MIXLY_EXTERN_LED,"GLED[2]"],[ge.Msg.MIXGO_LEFT_FRONT+ge.Msg.COLOUR_RGB_RED+ge.Msg.MIXLY_EXTERN_LED,"RLED[0]"],[ge.Msg.MIXGO_RIGHT_FRONT+ge.Msg.COLOUR_RGB_RED+ge.Msg.MIXLY_EXTERN_LED,"RLED[1]"],[ge.Msg.MIXGO_LEFT_BACK+ge.Msg.COLOUR_RGB_RED+ge.Msg.MIXLY_EXTERN_LED,"RLED[3]"],[ge.Msg.MIXGO_RIGHT_BACK+ge.Msg.COLOUR_RGB_RED+ge.Msg.MIXLY_EXTERN_LED,"RLED[2]"],[ge.Msg.ME_GO_LIGHT_HEADLIGHT,"WLED"]]),"op"),this.setOutput(!0)}},QU={init:function(){this.setColour(JU),this.appendDummyInput().appendField(ge.Msg.MIXLY_SETTING),this.appendValueInput("led").appendField("ME GO"),this.appendValueInput("bright").appendField(ge.Msg.MIXLY_PULSEIN_STAT),this.setPreviousStatement(!0,null),this.setNextStatement(!0,null),this.setInputsInline(!0),this.setTooltip(ge.Msg.MIXLY_ESP32_LED_SETONOFF)}},zU={init:function(){this.setColour(JU),this.appendDummyInput().appendField(ge.Msg.MIXLY_MICROBIT_PY_STORAGE_GET),this.appendValueInput("led").appendField("ME GO"),this.appendDummyInput().appendField(ge.Msg.MIXLY_BRIGHTNESS),this.setOutput(!0),this.setInputsInline(!0),this.setTooltip(ge.Msg.MIXLY_ESP32_LED_GETONOFF)}},jU={init:function(){this.setColour(JU),this.appendDummyInput().appendField(ge.Msg.MIXLY_MICROBIT_PY_STORAGE_GET),this.appendValueInput("led").appendField("ME GO"),this.appendDummyInput().appendField(ge.Msg.MIXLY_PULSEIN_STAT),this.setOutput(!0),this.setInputsInline(!0),this.setTooltip(ge.Msg.MIXLY_ESP32_LED_GETONOFF)}},$U={init:function(){this.setColour(JU),this.appendDummyInput().appendField(ge.Msg.MIXLY_SETTING),this.appendValueInput("led").appendField("ME GO"),this.appendValueInput("bright").appendField(ge.Msg.MIXLY_BRIGHTNESS),this.appendDummyInput("").appendField("%"),this.setPreviousStatement(!0,null),this.setNextStatement(!0,null),this.setInputsInline(!0),this.setTooltip(ge.Msg.MIXLY_SETTING+ge.Msg.MIXLY_BUILDIN_LED+ge.Msg.MIXLY_BRIGHTNESS+"(0-10)")}},ZU={init:function(){this.setColour(JU),this.appendDummyInput().appendField("ME GO").appendField(new ge.FieldDropdown([[ge.Msg.blockpy_forward,"F"],[ge.Msg.blockpy_backward,"B"],[ge.Msg.blockpy_left,"L"],[ge.Msg.blockpy_right,"R"]]),"VAR"),this.appendValueInput("speed").setCheck(Number).setAlign(ge.inputs.Align.RIGHT).appendField(ge.Msg.MIXLY_STEPPER_SET_SPEED),this.appendDummyInput("").appendField("%"),this.setPreviousStatement(!0,null),this.setNextStatement(!0,null),this.setInputsInline(!0)}},ew={init:function(){this.setColour(JU),this.appendDummyInput().appendField("ME GO").appendField(new ge.FieldDropdown([[ge.Msg.MOTOR_P,"P"],[ge.Msg.MOTOR_N,"N"]]),"VAR"),this.setPreviousStatement(!0,null),this.setNextStatement(!0,null),this.setInputsInline(!0)}},tw={init:function(){this.setColour(JU),this.appendDummyInput().appendField("ME GO").appendField(ge.Msg.MOTOR_DC).appendField(new ge.FieldDropdown([[ge.Msg.MIXLYCAR_WHEEL_LEFT,"0"],[ge.Msg.MIXLYCAR_WHEEL_RIGHT,"1"],[ge.Msg.ME_GO_MOTOR_EXTERN,"2"]]),"wheel"),this.appendDummyInput().appendField(ge.Msg.MIXLY_MICROBIT_Direction).appendField(new ge.FieldDropdown([[ge.Msg.ROTATION_FORWARD,"CW"],[ge.Msg.ROTATION_BACKWARD,"CCW"],[ge.Msg.MOTOR_P,"P"],[ge.Msg.MOTOR_N,"N"]]),"direction"),this.appendValueInput("speed").setCheck(Number).setAlign(ge.inputs.Align.RIGHT).appendField(ge.Msg.MIXLY_STEPPER_SET_SPEED),this.appendDummyInput("").appendField("%"),this.setPreviousStatement(!0,null),this.setNextStatement(!0,null),this.setInputsInline(!0)}},iw={init:function(){this.setColour(JU),this.appendDummyInput("").appendField(ge.Msg.MIXLY_ESP32_INTERRUPT).appendField(ge.Msg.ME_GO_HALL_SENSOR),this.appendDummyInput("").appendField(new ge.FieldDropdown([[ge.Msg.TEXT_TRIM_LEFT,"A"],[ge.Msg.TEXT_TRIM_RIGHT,"B"]]),"mode"),this.appendValueInput("DO").appendField(ge.Msg.MIXLY_DO),this.setPreviousStatement(!0),this.setNextStatement(!0),this.setInputsInline(!0)}},nw={init:function(){this.setColour(JU),this.appendDummyInput("").appendField(ge.Msg.ME_GO_HALL_SENSOR),this.appendDummyInput("").appendField(new ge.FieldDropdown([[ge.Msg.TEXT_TRIM_LEFT,"A"],[ge.Msg.TEXT_TRIM_RIGHT,"B"]]),"mode"),this.appendDummyInput("").appendField(ge.Msg.MIXLY_SETUP),this.appendDummyInput("").appendField(new ge.FieldDropdown([["turns","turns"],["distance","distance"],["turns,distance","all"]]),"args"),this.appendValueInput("num").setCheck(Number),this.setPreviousStatement(!0),this.setNextStatement(!0),this.setInputsInline(!0)}},sw={init:function(){this.setColour(JU),this.appendDummyInput("").appendField(ge.Msg.ME_GO_HALL_SENSOR),this.appendDummyInput("").appendField(new ge.FieldDropdown([[ge.Msg.TEXT_TRIM_LEFT,"A"],[ge.Msg.TEXT_TRIM_RIGHT,"B"]]),"mode"),this.appendDummyInput("").appendField(ge.Msg.MIXLY_MICROBIT_PY_STORAGE_GET),this.appendDummyInput("").appendField(new ge.FieldDropdown([["turns","turns"],["distance","distance"],["speed","speed"]]),"args"),this.setOutput(!0),this.setInputsInline(!0)}},_w={init:function(){this.setColour(JU),this.appendDummyInput().appendField(ge.Msg.MIXLY_MICROBIT_PY_STORAGE_GET).appendField(new ge.FieldDropdown([[ge.Msg.TEXT_TRIM_LEFT,"[0]"],[ge.Msg.MIXGO_LEFT_MID,"[1]"],[ge.Msg.MIXGO_RIGHT_MID,"[2]"],[ge.Msg.TEXT_TRIM_RIGHT,"[3]"],[ge.Msg.MIXLY_ALL,""]]),"key").appendField(ge.Msg.MIXGO_LINE_SENSOR_VAL),this.setOutput(!0,Number),this.setInputsInline(!0),this.setTooltip((function(){return ge.Msg.MIXLY_ESP32_SENSOR_MIXGO_PIN_NEAR_TOOLTIP+ge.Msg.MIXLY_ESP32_NEAR}))}},ow={init:function(){this.setColour(JU),this.appendDummyInput().appendField(ge.Msg.MIXLY_MICROBIT_PY_STORAGE_GET).appendField(new ge.FieldDropdown([[ge.Msg.MIXGO_LEFT_FRONT,"[0]"],[ge.Msg.MIXGO_RIGHT_FRONT,"[1]"],[ge.Msg.MIXGO_LEFT_BACK,"[3]"],[ge.Msg.MIXGO_RIGHT_BACK,"[2]"],[ge.Msg.MIXLY_ALL,""]]),"key").appendField(ge.Msg.MIXGO_PROXIMITY_SENSOR),this.setOutput(!0,Number),this.setInputsInline(!0),this.setTooltip((function(){return ge.Msg.MIXLY_ESP32_SENSOR_MIXGO_PIN_NEAR_TOOLTIP+ge.Msg.MIXLY_ESP32_NEAR}))}},pw={init:function(){this.setColour(JU),this.appendDummyInput().appendField(ge.Msg.MIXLY_MIXGO_CAR_SENSOR_ONBOARD_CHANGE).appendField(new ge.FieldDropdown([[ge.Msg.MIXLY_ME_GO_CAR_SENSOR_ONBOARD_AUTO_CHANGE,"AS"],[ge.Msg.MIXLY_MIXGO_CAR_USE_LINE_ONLY,"LP"],[ge.Msg.MIXLY_MIXGO_CAR_USE_PROXIMITY_ONLY,"OA"],[ge.Msg.MIXLY_ME_GO_CAR_LIGHT_SEEKING_ONLY,"LS"],[ge.Msg.ME_GO_SENSOR_MODE_OFF,"CL"]]),"key"),this.setPreviousStatement(!0,null),this.setNextStatement(!0,null),this.setInputsInline(!0)}},aw={init:function(){this.setColour(JU),this.appendDummyInput("").appendField(ge.Msg.MIXLY_GET_GESTURE).appendField(new ge.FieldDropdown([[ge.Msg.ME_GO_PITCH,"[0]"],[ge.Msg.ME_GO_ROLL,"[1]"],[ge.Msg.ME_GO_PITCH+", "+ge.Msg.ME_GO_ROLL,""]]),"angle"),this.appendDummyInput(""),this.setOutput(!0,Number),this.setInputsInline(!0)}},uw={init:function(){this.setColour(JU),this.appendDummyInput().appendField(ge.Msg.MIXLY_MICROBIT_PY_STORAGE_GET).appendField(new ge.FieldDropdown([[ge.Msg.TEXT_TRIM_LEFT,"[0]"],[ge.Msg.MIXGO_LEFT_MID,"[1]"],[ge.Msg.MIXGO_RIGHT_MID,"[2]"],[ge.Msg.TEXT_TRIM_RIGHT,"[3]"],[ge.Msg.MIXLY_ALL,""]]),"key").appendField(ge.Msg.MIXLY_ME_GO_CAR_LIGHT_SEEKING_SENSOR),this.setOutput(!0,Number),this.setInputsInline(!0),this.setTooltip((function(){return ge.Msg.MIXLY_ESP32_SENSOR_MIXGO_PIN_NEAR_TOOLTIP+ge.Msg.MIXLY_ME_GO_CAR_LIGHT_SEEKING_SENSOR}))}},rw=230,lw={init:function(){this.setColour(rw),this.appendDummyInput("").appendField(new ge.FieldDropdown(Ce.Profile.default.digital),"PIN"),this.setOutput(!0)}},dw={init:function(){this.setColour(rw),this.appendDummyInput("").appendField(new ge.FieldDropdown(Ce.Profile.default.digital_pin),"PIN"),this.setOutput(!0,Number)}},Iw={init:function(){this.setColour(rw),this.appendDummyInput("").appendField(new ge.FieldDropdown(Ce.Profile.default.input_pin),"PIN"),this.setOutput(!0,Number)}},Tw={init:function(){this.setColour(rw),this.appendDummyInput("").appendField(new ge.FieldDropdown(Ce.Profile.default.output_pin),"PIN"),this.setOutput(!0,Number)}},Mw={init:function(){this.setColour(rw),this.appendDummyInput("").appendField(new ge.FieldDropdown(Ce.Profile.default.espnow_channel),"PIN"),this.setOutput(!0,Number)}},hw={init:function(){this.setColour(rw),this.appendDummyInput("").appendField(new ge.FieldDropdown(Ce.Profile.default.haskylens_model),"PIN"),this.setOutput(!0,Number)}},mw={init:function(){this.setColour(rw),this.appendDummyInput("").appendField(new ge.FieldDropdown(Ce.Profile.default.pwm_input),"PIN"),this.setOutput(!0)}},Ew={init:function(){this.setColour(rw),this.appendDummyInput("").appendField(new ge.FieldDropdown(Ce.Profile.default.analog_input),"PIN"),this.setOutput(!0)}},Ow={init:function(){this.setColour(rw),this.appendDummyInput("").appendField(new ge.FieldDropdown(Ce.Profile.default.pwm_output),"PIN"),this.setOutput(!0)}},Rw={init:function(){this.setColour(rw),this.appendDummyInput("").appendField(new ge.FieldDropdown(Ce.Profile.default.analog_output),"PIN"),this.setOutput(!0)}},cw={init:function(){this.setColour(rw),this.appendDummyInput("").appendField(new ge.FieldDropdown(Ce.Profile.default.i2c_A_pin),"PIN"),this.setOutput(!0,Number)}},gw={init:function(){this.setColour(rw),this.appendDummyInput("").appendField(new ge.FieldDropdown(Ce.Profile.default.i2c_B_pin),"PIN"),this.setOutput(!0,Number)}},Cw={init:function(){this.setColour(rw),this.appendDummyInput("").appendField(new ge.FieldDropdown(Ce.Profile.default.spi_A_pin),"PIN"),this.setOutput(!0,Number)}},Sw={init:function(){this.setColour(rw),this.appendDummyInput("").appendField(new ge.FieldDropdown(Ce.Profile.default.spi_B_pin),"PIN"),this.setOutput(!0,Number)}},Aw={init:function(){this.setColour(rw),this.appendDummyInput("").appendField(new ge.FieldDropdown(Ce.Profile.default.spi_C_pin),"PIN"),this.setOutput(!0,Number)}},Lw={init:function(){this.setColour(rw),this.appendDummyInput("").appendField(new ge.FieldDropdown(Ce.Profile.default.spi_D_pin),"PIN"),this.setOutput(!0,Number)}},Nw={init:function(){this.setColour(rw),this.appendDummyInput("").appendField(new ge.FieldDropdown(Ce.Profile.default.analog),"PIN"),this.setOutput(!0)}},Dw={init:function(){this.setColour(rw),this.appendDummyInput("").appendField(new ge.FieldDropdown(Ce.Profile.default.analog_pin),"PIN"),this.setOutput(!0,Number)}},fw={init:function(){this.setColour(rw),this.appendDummyInput("").appendField(new ge.FieldDropdown(Ce.Profile.default.dac),"PIN"),this.setOutput(!0)}},Fw={init:function(){this.setColour(rw),this.appendDummyInput("").appendField(new ge.FieldDropdown(Ce.Profile.default.dac_pin),"PIN"),this.setOutput(!0,Number)}},Pw={init:function(){this.setColour(rw),this.appendDummyInput("").appendField(new ge.FieldDropdown(Ce.Profile.default.button),"PIN"),this.setOutput(!0,Number)}},vw={init:function(){this.setColour(rw),this.appendDummyInput("").appendField(new ge.FieldDropdown(Ce.Profile.default.buttonB),"PIN"),this.setOutput(!0,Number)}},Yw={init:function(){this.setColour(rw),this.appendDummyInput("").appendField(new ge.FieldDropdown(Ce.Profile.default.pwm),"PIN"),this.setOutput(!0)}},Xw={init:function(){this.setColour(rw),this.appendDummyInput("").appendField(new ge.FieldDropdown(Ce.Profile.default.pwm_pin),"PIN"),this.setOutput(!0,Number)}},yw={init:function(){this.setColour(rw),this.appendDummyInput("").appendField(new ge.FieldDropdown(Ce.Profile.default.touch_pin),"PIN"),this.setOutput(!0,Number)}},bw={init:function(){this.setColour(rw),this.appendDummyInput("").appendField(new ge.FieldDropdown(Ce.Profile.default.touch),"PIN"),this.setOutput(!0)}},xw={init:function(){this.setColour(rw),this.appendDummyInput("").appendField(new ge.FieldDropdown(Ce.Profile.default.serial_pin),"PIN"),this.setOutput(!0,Number)}},Vw={init:function(){this.setColour(rw),this.appendDummyInput("").appendField(new ge.FieldDropdown(Ce.Profile.default.builtinimg),"PIN"),this.setOutput(!0,"esp32_image")}},Bw={init:function(){this.setColour(rw),this.appendDummyInput("").appendField(new ge.FieldDropdown(Ce.Profile.default.builtinimg_extern),"PIN"),this.setOutput(!0,"esp32_image")}},Gw={init:function(){this.setColour(rw),this.appendDummyInput("").appendField(new ge.FieldDropdown(Ce.Profile.default.imglist),"PIN"),this.setOutput(!0)}},Uw={init:function(){this.setColour(rw),this.appendDummyInput("").appendField(new ge.FieldDropdown(Ce.Profile.default.playlist),"PIN"),this.setOutput(!0)}},ww={init:function(){this.setColour(rw),this.appendDummyInput("").appendField(new ge.FieldDropdown(Ce.Profile.default.playlist_extern),"PIN"),this.setOutput(!0)}},kw={init:function(){this.setColour(rw),this.appendDummyInput("").appendField(new ge.FieldDropdown(Ce.Profile.default.exlcdh),"PIN"),this.setOutput(!0,Number)}},Hw={init:function(){this.setColour(rw),this.appendDummyInput("").appendField(new ge.FieldDropdown(Ce.Profile.default.exlcdv),"PIN"),this.setOutput(!0,Number)}},Ww={init:function(){this.setColour(rw),this.appendDummyInput("").appendField(new ge.FieldDropdown(Ce.Profile.default.axis),"PIN"),this.setOutput(!0,Number)}},Kw={init:function(){this.setColour(rw),this.appendDummyInput("").appendField(new ge.FieldDropdown(Ce.Profile.default.brightness),"PIN"),this.setOutput(!0,Number)}},Jw={init:function(){this.setColour(rw),this.appendDummyInput("").appendField(new ge.FieldDropdown(Ce.Profile.default.tts_voice),"PIN"),this.setOutput(!0,Number)}},qw={init:function(){this.setColour(rw),this.appendDummyInput("").appendField(new ge.FieldDropdown(Ce.Profile.default.tts_builtin_music),"PIN"),this.setOutput(!0,Number)}},Qw={init:function(){this.setColour(rw),this.appendDummyInput("").appendField(new ge.FieldDropdown(Ce.Profile.default.tts_bgmusic),"PIN"),this.setOutput(!0,Number)}},zw={init:function(){this.setColour(rw),this.appendDummyInput("").appendField(new ge.FieldDropdown(Ce.Profile.default.tone_notes),"PIN"),this.setOutput(!0,Number)}},jw={init:function(){this.setColour(rw),this.appendDummyInput("").appendField(new ge.FieldDropdown(Ce.Profile.default.radio_power),"PIN"),this.setOutput(!0,Number)}},$w={init:function(){this.setColour(rw),this.appendDummyInput("").appendField(new ge.FieldDropdown(Ce.Profile.default.radio_datarate),"PIN"),this.setOutput(!0,Number)}},Zw={init:function(){this.setColour(rw),this.appendDummyInput("").appendField(new ge.FieldDropdown(Ce.Profile.default.one_more),"PIN"),this.setOutput(!0)}},ek={init:function(){this.setColour(rw),this.appendDummyInput("").appendField(new ge.FieldDropdown(Ce.Profile.default.digital_dot),"PIN"),this.setOutput(!0,Number)}},tk=function(e,t){return["HIGH"==this.getFieldValue("BOOL")?"1":"0",t.ORDER_ATOMIC]},ik=function(e,t){t.definitions_.import_machine="import machine";var i="";return i+=t.valueToCode(this,"PIN",t.ORDER_ATOMIC)+".value("+t.valueToCode(this,"STAT",t.ORDER_ATOMIC)+")\n"},nk=function(e,t){t.definitions_.import_machine="import machine";return[t.valueToCode(this,"PIN",t.ORDER_ATOMIC)+".value()",t.ORDER_ATOMIC]},sk=function(e,t){return t.definitions_.import_machine="import machine",t.valueToCode(this,"PIN",t.ORDER_ATOMIC)+".write("+t.valueToCode(this,"NUM",t.ORDER_ATOMIC)+")\n"},_k=function(e,t){t.definitions_.import_machine="import machine";var i=t.valueToCode(this,"PIN",t.ORDER_ATOMIC),n=t.valueToCode(this,"NUM",t.ORDER_ATOMIC);return i+".set_analog_"+this.getFieldValue("key")+"("+n+")\n"},ok=function(e,t){return t.definitions_.import_machine="import machine",[t.valueToCode(this,"pin",t.ORDER_ATOMIC)+".read()",t.ORDER_ATOMIC]},pk=function(e,t){t.definitions_.import_machine="import machine";var i=t.valueToCode(this,"PIN",t.ORDER_ATOMIC),n=this.getFieldValue("mode");return"machine.Pin("+i+").irq(handler = "+t.valueToCode(this,"DO",t.ORDER_ATOMIC)+", trigger = "+n+")\n"},ak=function(e,t){t.definitions_.import_machine="import machine";var i=this.getFieldValue("PIN_OBJ")||"pin#",n=t.valueToCode(this,"PIN",t.ORDER_ATOMIC),s=this.getFieldValue("MODE");return("pin#"==i?"pin"+n:t.variableDB_.getName(i,ge.Variables.NAME_TYPE))+" = machine.Pin("+n+", "+s+")\n"},uk=function(e,t){t.definitions_.import_machine="import machine";var i=this.getFieldValue("PIN_OBJ")||"dac#",n=t.valueToCode(this,"PIN",t.ORDER_ATOMIC);return("dac#"==i?"dac"+n:t.variableDB_.getName(i,ge.Variables.NAME_TYPE))+" = machine.DAC(machine.Pin("+n+"))\n"},rk=function(e,t){return t.definitions_.import_machine="import machine",t.valueToCode(this,"PIN",t.ORDER_ATOMIC)+".atten("+this.getFieldValue("atten")+")\n"},lk=function(e,t){t.definitions_.import_machine="import machine";var i=this.getFieldValue("PIN_OBJ")||"tc#",n=t.valueToCode(this,"PIN",t.ORDER_ATOMIC);return("tc#"==i?"tc"+n:t.variableDB_.getName(i,ge.Variables.NAME_TYPE))+" = machine.TouchPad(machine.Pin("+n+"))\n"},dk=function(e,t){var i=this.getFieldValue("key");return t.definitions_.import_mini_g2="import mini_g2",["mini_g2.ext_ahtx0."+i+"()",t.ORDER_ATOMIC]},Ik=function(e,t){var i=this.getFieldValue("key");return t.definitions_.import_mini_g2="import mini_g2",["mini_g2.ext_hp203x."+i,t.ORDER_ATOMIC]},Tk=function(e,t){t.definitions_.import_mini_g2="import mini_g2";return["mini_g2.varistor()",t.ORDER_ATOMIC]},Mk=function(e,t){if(t.definitions_.import_mini_g2="import mini_g2","mixgo_mini"==Ce.Boards.getSelectedBoardKey().split(":")[2]){t.definitions_.import_mini_g2_ext_rfid="from mini_g2 import ext_rfid";var i='ext_rfid.read_card(0, x="id")'}else{t.definitions_.import_mini_g2="import mini_g2";i='mini_g2.ext_rc522.read_card(0, x="id")'}return[i,t.ORDER_ATOMIC]},hk=function(e,t){var i=Ce.Boards.getSelectedBoardKey().split(":")[2],n=t.valueToCode(this,"SECTOR",t.ORDER_ATOMIC);if("mixgo_mini"==i){t.definitions_.import_mini_g2_ext_rfid="from mini_g2 import ext_rfid";var s="ext_rfid.read_card("+n+")"}else{t.definitions_.import_mini_g2="import mini_g2";s="mini_g2.ext_rc522.read_card("+n+")"}return[s,t.ORDER_ATOMIC]},mk=function(e,t){var i=Ce.Boards.getSelectedBoardKey().split(":")[2],n=t.valueToCode(this,"SECTOR",t.ORDER_ATOMIC),s=t.valueToCode(this,"CONTENT",t.ORDER_ATOMIC);if("mixgo_mini"==i){t.definitions_.import_mini_g2_ext_rfid="from mini_g2 import ext_rfid";var _="ext_rfid.write_card("+s+","+n+")\n"}else{t.definitions_.import_mini_g2="import mini_g2";_="mini_g2.ext_rc522.write_card("+s+","+n+")\n"}return _},Ek=function(e,t){var i=Ce.Boards.getSelectedBoardKey().split(":")[2],n=t.valueToCode(this,"SECTOR",t.ORDER_ATOMIC),s=t.valueToCode(this,"CONTENT",t.ORDER_ATOMIC);if("mixgo_mini"==i){t.definitions_.import_mini_g2_ext_rfid="from mini_g2 import ext_rfid";var _="ext_rfid.write_card("+s+","+n+")"}else{t.definitions_.import_mini_g2="import mini_g2";_="mini_g2.ext_rc522.write_card("+s+","+n+")"}return[_,t.ORDER_ATOMIC]},Ok=function(e,t){var i=Ce.Boards.getSelectedBoardKey().split(":")[2],n=this.getFieldValue("key");if("mixgo_mini"==i){t.definitions_.import_mini_g2_ext_rfid="from mini_g2 import ext_rfid";var s="ext_rfid.scan_card()=="+n}else{t.definitions_.import_mini_g2="import mini_g2";s="mini_g2.ext_rc522.scan_card()=="+n}return[s,t.ORDER_ATOMIC]},Rk=function(e,t){return t.definitions_.import_me_go_car="from me_go import car",["car."+this.getFieldValue("op"),t.ORDER_ATOMIC]},ck=function(e,t){var i=t.valueToCode(this,"led",t.ORDER_ATOMIC);return t.definitions_.import_me_go_car="from me_go import car","car.setonoff("+i+","+t.valueToCode(this,"bright",t.ORDER_ATOMIC)+")\n"},gk=function(e,t){var i=t.valueToCode(this,"led",t.ORDER_ATOMIC);return t.definitions_.import_me_go_car="from me_go import car",["car.getrightness("+i+")",t.ORDER_ATOMIC]},Ck=function(e,t){var i=t.valueToCode(this,"led",t.ORDER_ATOMIC);return t.definitions_.import_me_go_car="from me_go import car",["car.getonoff("+i+")",t.ORDER_ATOMIC]},Sk=function(e,t){var i=t.valueToCode(this,"led",t.ORDER_ATOMIC);return t.definitions_.import_me_go_car="from me_go import car","car.setbrightness("+i+","+t.valueToCode(this,"bright",t.ORDER_ATOMIC)+")\n"},Ak=function(e,t){var i=this.getFieldValue("VAR");return t.definitions_.import_me_go_car="from me_go import car",'car.move("'+i+'",'+t.valueToCode(this,"speed",t.ORDER_ASSIGNMENT)+")\n"},Lk=function(e,t){var i=this.getFieldValue("VAR");return t.definitions_.import_me_go_car="from me_go import car",'car.move("'+i+'")\n'},Nk=function(e,t){var i=this.getFieldValue("wheel");t.definitions_.import_me_go_car="from me_go import car";var n=this.getFieldValue("direction");return 0==i&&("CW"==n?n="CCW":"CCW"==n&&(n="CW")),"car.motor(car.MOTO["+i+'],"'+n+'",'+t.valueToCode(this,"speed",t.ORDER_ATOMIC)+")\n"},Dk=function(e,t){var i=this.getFieldValue("mode");return t.definitions_["import_me_go_hall_"+i]="from me_go import hall_"+i,"hall_"+i+".irq_cb("+t.valueToCode(this,"DO",t.ORDER_ATOMIC)+")\n"},fk=function(e,t){var i=this.getFieldValue("mode"),n=this.getFieldValue("args");t.definitions_["import_me_go_hall_"+i]="from me_go import hall_"+i;var s=t.valueToCode(this,"num",t.ORDER_ATOMIC);return"all"==n?"hall_"+i+".initial(turns="+s+",distance="+s+")\n":"hall_"+i+".initial("+n+"="+s+")\n"},Fk=function(e,t){var i=this.getFieldValue("mode"),n=this.getFieldValue("args");return t.definitions_["import_me_go_hall_"+i]="from me_go import hall_"+i,["hall_"+i+"."+n,t.ORDER_ATOMIC]},Pk=function(e,t){var i=this.getFieldValue("key");return t.definitions_.import_me_go_hall="from me_go import car",["car.patrol()"+i,t.ORDER_ATOMIC]},vk=function(e,t){var i=this.getFieldValue("key");return t.definitions_.import_me_go_hall="from me_go import car",["car.obstacle()"+i,t.ORDER_ATOMIC]},Yk=function(e,t){var i=this.getFieldValue("key");return t.definitions_.import_me_go_hall="from me_go import car","car.ir_mode(car."+i+")\n"},Xk=function(e,t){return t.definitions_.import_mixgo_me_onboard_mxc6655xa="from mixgo_me import onboard_mxc6655xa",["onboard_mxc6655xa.eulerangles(upright=True)"+this.getFieldValue("angle"),t.ORDER_ATOMIC]},yk=function(e,t){var i=this.getFieldValue("key");return t.definitions_.import_me_go_hall="from me_go import car",["car.light()"+i,t.ORDER_ATOMIC]},bk=function(e,t){return[this.getFieldValue("PIN"),t.ORDER_ATOMIC]},xk=bk,Vk=bk,Bk=bk,Gk=bk,Uk=bk,wk=bk,kk=bk,Hk=bk,Wk=bk,Kk=bk,Jk=bk,qk=bk,Qk=bk,zk=bk,jk=bk,$k=bk,Zk=bk,eH=bk,tH=bk,iH=bk,nH=bk,sH=bk,_H=bk,oH=bk,pH=bk,aH=bk,uH=bk,rH=bk,lH=bk,dH=bk,IH=bk,TH=bk,MH=bk,hH=bk,mH=bk,EH=bk,OH=bk,RH=bk,cH=bk,gH=bk,CH=bk,SH=bk,AH=bk,LH=bk;Object.assign(ge.Variables,Ae),Object.assign(ge.Procedures,Uu),Object.assign(ge.Lang.ZhHans,le),Object.assign(ge.Lang.ZhHant,de),Object.assign(ge.Lang.En,Ie),ge.Python=wu,ge.generator=wu,Ce.Profile.default={},Object.assign(Ce.Profile,RU),Object.assign(Ce.Profile.default,RU["MixGo CC"]),Object.assign(ge.Blocks,t,i,n,s,_,o,p,a,u,r,l,d,I,V,H,k,X,B,W,f,w,U,G,F,D,N,b,y,x,P,v,Y,Te,Me,he,me),Object.assign(ge.Python.forBlock,T,M,h,m,E,O,R,c,g,C,S,A,L,ne,ue,ae,Z,se,re,q,pe,oe,_e,Q,J,K,te,ee,ie,z,j,$,Ee,Oe,Re,ce)})();