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e.$_$.n3,Ar=e.$_$.j3,Ur=e.$_$.l3,Vr=e.$_$.ud;function Or(){(x=this).appReturnCode_1=0}function Mr(){return null==x&&new Or,x}function Jr(e){v=e}function Hr(e){ct=e}function Xr(e){z=e}function Gr(){$_.call(this,"localazy");this.proxy$delegate_1=g_(l(this,["--proxy"],"Configure proxy","PROXY"),"").provideDelegate_ugm9ea_k$(this,c("proxy",1,u,function(e){return e.get_proxy_ix1jyd_k$()},null))}function Wr(){}function Yr(){return cs(),S}function Zr(){return cs(),q}function Qr(){return cs(),C}function W(){return cs(),L}function es(){return cs(),F}function ts(){return cs(),I}function _s(){return cs(),D}function ns(){return cs(),P}function is(e){cs(),K=e}function rs(){return cs(),K}function lt(e,t){cs(),f_(t,"mt")&&!rs()&&y_("");var _=f_(t,"bold")?es():"",n=et(_)?"":W(),e=w_(e),_=_+X(x_(b_(e)?e:H()))+n,e=z?_:v_(v_(v_(v_(v_(v_(v_(_,Zr(),""),Qr(),""),W(),""),es(),""),ts(),""),_s(),""),ns(),"");y_(e),is(!1),f_(t,"mb")&&(y_(""),is(!0))}function ss(e,t){cs();var _=Zr(),e=w_(e);lt(_+X(x_(b_(e)?e:H()))+W(),t.slice())}function as(e,t){cs();var _=es(),e=w_(e);lt(_+X(x_(b_(e)?e:H()))+W(),t.slice())}function os(e,t){cs();var _=Qr(),e=w_(e);lt(_+X(x_(b_(e)?e:H()))+W(),t.slice())}function ls(e,t){cs();var _=_s(),e=w_(e);lt(_+X(x_(b_(e)?e:H()))+W(),t.slice())}function us(e,t){var _,n,i;cs(),Yr()?(_=Qr(),n=es(),i=w_(e),lt(_+n+X(x_(b_(i)?i:H()))+W(),t.slice())):(hg(""),hg(w_(e)))}function cs(){R||(R=!0,S=dg()&&!0,q=Yr()?"[32m":"",C=Yr()?"[31m":"",L=Yr()?"[0m":"",F=Yr()?"[1m":"",I=Yr()?"[35m":"",D=Yr()?"[33m":"",P=Yr()?"[36m":"",K=!1)}function hs(e,t,_,n){e=e!==nt&&e,$_.call(this,_),this.help_1=n,this.noColors$delegate_1=z_(l(this,["--no-colors"],"Disable using colored output."),[],!1).provideDelegate_ugm9ea_k$(this,c("noColors",1,u,function(e){return e.get_noColors_sounja_k$()},null)),this.workingDirectory$delegate_1=g_(l(this,["-d","--working-dir"],"Set working directory that all paths will be relative to"),"").provideDelegate_ugm9ea_k$(this,c("workingDirectory",1,u,function(e){return e.get_workingDirectory_6kprlx_k$()},null)),this.url$delegate_1=g_(l(this,["-u","--url"],nt,"URL",!0),"https://connect.localazy.com/cli").provideDelegate_ugm9ea_k$(this,c("url",1,u,function(e){return e.get_url_18iuii_k$()},null)),this.allowExceptions$delegate_1=z_(l(this,["--allow-exceptions"],"Allow exceptions to be thrown.",nt,!0),[],!1).provideDelegate_ugm9ea_k$(this,c("allowExceptions",1,u,function(e){return e.get_allowExceptions_ftg950_k$()},null)),this.testUrl$delegate_1=z_(l(this,["--test"],"Change URL to our testing server.",nt,!0),[],!1).provideDelegate_ugm9ea_k$(this,c("testUrl",1,u,function(e){return e.get_testUrl_m9cf3g_k$()},null));this.localUrl$delegate_1=g_(l(this,["--local"],"Change URL to the local server with the given PORT.","PORT",!0),"").provideDelegate_ugm9ea_k$(this,c("localUrl",1,u,function(e){return e.get_localUrl_d9ann_k$()},null));var i,r,s,_=j_(),n=g_(l(this,["-c","--config"],"Override configuration file; default: localazy.json","FILE",nt,nt,nt,_),"localazy.json"),_=n.get_transformValue_5jno8e_k$(),a=n.get_transformEach_tm75i4_k$(),o=n.get_transformAll_q5rajm_k$(),n=(this.config$delegate_1=n.copy$default_nrhu36_k$(_,a,o,(i=e,r=this,function(e,t){return null!=t&&(i&&(new Dg(_$(r.get_workingDirectory_6kprlx_k$(),t)).get_exists_d34qcl_k$()||e.fail_are55o_k$("The config file '"+t+"' doesn't exist."),0),0),_t()})).provideDelegate_ugm9ea_k$(this,c("config",1,u,function(e){return e.get_config_c0698r_k$()},null)),j_()),_=g_(l(this,["-k","--keys"],"Override/provide read and write keys from a separate file","FILE",nt,nt,nt,n),""),a=_.get_transformValue_5jno8e_k$(),o=_.get_transformEach_tm75i4_k$(),e=_.get_transformAll_q5rajm_k$();this.keyFile$delegate_1=_.copy$default_nrhu36_k$(a,o,e,(s=this,function(e,t){return null==t||(!(null!=t&&!et(t))||new Dg(_$(s.get_workingDirectory_6kprlx_k$(),t)).get_exists_d34qcl_k$())||e.fail_are55o_k$("The key file '"+t+"' doesn't exist."),_t()})).provideDelegate_ugm9ea_k$(this,c("keyFile",1,u,function(e){return e.get_keyFile_c872b2_k$()},null)),this.readKey$delegate_1=g_(l(this,["-r","--read-key"],"Override/provide the read key on the command line","KEY"),"").provideDelegate_ugm9ea_k$(this,c("readKey",1,u,function(e){return e.get_readKey_j4sc8w_k$()},null)),this.writeKey$delegate_1=g_(l(this,["-w","--write-key"],"Override/provide the write key on the command line","KEY"),"").provideDelegate_ugm9ea_k$(this,c("writeKey",1,u,function(e){return e.get_writeKey_8otmtl_k$()},null));this.branch$delegate_1=g_(l(this,["-b","--branch"],"Perform the operation for the given branch","BRANCH",!t),"").provideDelegate_ugm9ea_k$(this,c("branch",1,u,function(e){return e.get_branch_bkjvl7_k$()},null))}function ks(e,t){hs.call(this,!0,!0,e,t),this.simulate$delegate_1=z_(l(this,["-s","--simulate"],"Do not upload files; only simulate collecting process and print list of files"),[],!1).provideDelegate_ugm9ea_k$(this,c("simulate",1,u,function(e){return e.get_simulate_np1frn_k$()},null)),this.quiet$delegate_1=z_(l(this,["-q","--quiet"],"Do not print information about configuration and collected files"),[],!1).provideDelegate_ugm9ea_k$(this,c("quiet",1,u,function(e){return e.get_quiet_ixn4ln_k$()},null)),this.force$delegate_1=z_(l(this,["-f","--force"],"Upload even if the validation fails; use only if you are sure that your configuration is correct"),[],!1).provideDelegate_ugm9ea_k$(this,c("force",1,u,function(e){return e.get_force_irhqrm_k$()},null)),this.failOnGroups$delegate_1=z_(l(this,["--failOnMissingGroups","--failonmissinggroups","--fail_on_missing_groups"],"Fail when non-existent group is provided on the command line"),[],!1).provideDelegate_ugm9ea_k$(this,c("failOnGroups",1,u,function(e){return e.get_failOnGroups_u089uu_k$()},null)),this.params$delegate_1=E_(l(this,["-p","--param"],"Add extra parameter for processing; format is key:value")).provideDelegate_ugm9ea_k$(this,c("params",1,u,function(e){return e.get_params_hy4oen_k$()},null)),this.groups$delegate_1=q_(S_(this,"GROUPS","Define groups to be uploaded separated with a space. The default group is always uploaded. If no groups are provided, only the default one is uploaded."),!1).provideDelegate_uuljd1_k$(this,c("groups",1,u,function(e){return e.get_groups_dy12vx_k$()},null))}function ds(e){this.function_1=e}function $s(i){return function(e,t){var _,e=e.get_currentContext_mswz5r_k$(),n=i,e=N_(e),e=I_(T_(e,(_=n,function(e){e=e.get_data_wokkxf_k$().get_wei43m_k$(_);return null!=e&&m(e,F_)?e:null})));return it(e)}}function gs(e){this.function_1=e}function fs(i){return function(e,t){var _,e=e.get_currentContext_mswz5r_k$(),n=i,e=N_(e),e=I_(T_(e,(_=n,function(e){e=e.get_data_wokkxf_k$().get_wei43m_k$(_);return null!=e&&m(e,F_)?e:null})));return it(e)}}function ps(e){this.function_1=e}function ms(i){return function(e,t){var _,e=e.get_currentContext_mswz5r_k$(),n=i,e=N_(e),e=I_(T_(e,(_=n,function(e){e=e.get_data_wokkxf_k$().get_wei43m_k$(_);return null!=e&&m(e,F_)?e:null})));return it(e)}}function ys(e){this.function_1=e}function ws(i){return function(e,t){var _,e=e.get_currentContext_mswz5r_k$(),n=i,e=N_(e),e=I_(T_(e,(_=n,function(e){e=e.get_data_wokkxf_k$().get_wei43m_k$(_);return null!=e&&m(e,F_)?e:null})));return it(e)}}function bs(e){this.function_1=e}function xs(i){return function(e,t){var _,e=e.get_currentContext_mswz5r_k$(),n=i,e=N_(e),e=I_(T_(e,(_=n,function(e){e=e.get_data_wokkxf_k$().get_wei43m_k$(_);return null!=e&&m(e,F_)?e:null})));return it(e)}}function vs(e){this.function_1=e}function zs(i){return function(e,t){var _,e=e.get_currentContext_mswz5r_k$(),n=i,e=N_(e),e=I_(T_(e,(_=n,function(e){e=e.get_data_wokkxf_k$().get_wei43m_k$(_);return null!=e&&m(e,F_)?e:null})));return it(e)}}function js(e){this.function_1=e}function Es(i){return function(e,t){var _,e=e.get_currentContext_mswz5r_k$(),n=i,e=N_(e),e=I_(T_(e,(_=n,function(e){e=e.get_data_wokkxf_k$().get_wei43m_k$(_);return null!=e&&m(e,F_)?e:null})));return it(e)}}function Ss(e,t){return null!=t&&(f_(["skip","reference","time","time-bidi","source","target"],t)||e.fail_are55o_k$("The value must be one of: `skip`, `reference`, `time`, `time-bidi`, `source`, `target`.")),_t()}function qs(e){this.function_1=e}function Cs(i){return function(e,t){var _,e=e.get_currentContext_mswz5r_k$(),n=i,e=N_(e),e=I_(T_(e,(_=n,function(e){e=e.get_data_wokkxf_k$().get_wei43m_k$(_);return null!=e&&m(e,F_)?e:null})));return it(e)}}function Ls(){$_.call(this,"empty");var e=$s("default_object");this.pass$delegate_1=new ds(e),this.sourceBranch$delegate_1=S_(this,"SOURCE","Source branch to create the new branch from").provideDelegate_uuljd1_k$(this,c("sourceBranch",1,u,function(e){return e.get_sourceBranch_iey7dy_k$()},null)),this.targetBranch$delegate_1=S_(this,"TARGET","New branch name").provideDelegate_uuljd1_k$(this,c("targetBranch",1,u,function(e){return e.get_targetBranch_chfx9g_k$()},null)),this.async$delegate_1=z_(l(this,["--async"],"Do not wait for the server to process the operation"),[],!1).provideDelegate_ugm9ea_k$(this,c("async",1,u,function(e){return e.get_async_ioth77_k$()},null))}function Fs(){$_.call(this,"create");var e=fs("default_object");this.pass$delegate_1=new gs(e),this.sourceBranch$delegate_1=S_(this,"SOURCE","Source branch to create the new branch from").provideDelegate_uuljd1_k$(this,c("sourceBranch",1,u,function(e){return e.get_sourceBranch_iey7dy_k$()},null)),this.targetBranch$delegate_1=S_(this,"TARGET","New branch name").provideDelegate_uuljd1_k$(this,c("targetBranch",1,u,function(e){return e.get_targetBranch_chfx9g_k$()},null)),this.async$delegate_1=z_(l(this,["--async"],"Do not wait for the server to process the operation"),[],!1).provideDelegate_ugm9ea_k$(this,c("async",1,u,function(e){return e.get_async_ioth77_k$()},null))}function Ns(){$_.call(this,"separate");var e=ms("default_object");this.pass$delegate_1=new ps(e),this.branch$delegate_1=S_(this,"BRANCH","Branch to be separated").provideDelegate_uuljd1_k$(this,c("branch",1,u,function(e){return e.get_branch_bkjvl7_k$()},null))}function Ts(){$_.call(this,"main");var e=ws("default_object");this.pass$delegate_1=new ys(e),this.branch$delegate_1=S_(this,"BRANCH","Branch to be promoted to the main branch").provideDelegate_uuljd1_k$(this,c("branch",1,u,function(e){return e.get_branch_bkjvl7_k$()},null)),this.name$delegate_1=S_(this,"NAME","New name for the current main branch").provideDelegate_uuljd1_k$(this,c("name",1,u,function(e){return e.get_name_woqyms_k$()},null))}function Is(){$_.call(this,"rename");var e=xs("default_object");this.pass$delegate_1=new bs(e),this.branch$delegate_1=S_(this,"BRANCH","Branch to be renamed").provideDelegate_uuljd1_k$(this,c("branch",1,u,function(e){return e.get_branch_bkjvl7_k$()},null)),this.name$delegate_1=S_(this,"NAME","New name for the branch").provideDelegate_uuljd1_k$(this,c("name",1,u,function(e){return e.get_name_woqyms_k$()},null))}function Ds(){$_.call(this,"delete");var e=zs("default_object");this.pass$delegate_1=new vs(e),this.branch$delegate_1=S_(this,"BRANCH","Branch to be deleted").provideDelegate_uuljd1_k$(this,c("branch",1,u,function(e){return e.get_branch_bkjvl7_k$()},null))}function Ps(e,t,_){$_.call(this,e),this.help_1=t,this.type_1=_;var e=Es("default_object"),t=(this.pass$delegate_1=new js(e),this.sourceBranch$delegate_1=S_(this,"SOURCE","Source branch to merge changes from").provideDelegate_uuljd1_k$(this,c("sourceBranch",1,u,function(e){return e.get_sourceBranch_iey7dy_k$()},null)),this.targetBranch$delegate_1=S_(this,"TARGET","Branch to merge changes into").provideDelegate_uuljd1_k$(this,c("targetBranch",1,u,function(e){return e.get_targetBranch_chfx9g_k$()},null)),this.noNewFiles$delegate_1=z_(l(this,["--no-new-files"],"Do not create new files in the target branch"),[],!1).provideDelegate_ugm9ea_k$(this,c("noNewFiles",1,u,function(e){return e.get_noNewFiles_ldvqqp_k$()},null)),this.noNewLangs$delegate_1=z_(l(this,["--no-new-langs"],"Do not create new languages in the target branch"),[],!1).provideDelegate_ugm9ea_k$(this,c("noNewLangs",1,u,function(e){return e.get_noNewLangs_lh1fxr_k$()},null)),this.noNewPhrases$delegate_1=z_(l(this,["--no-new-keys"],"Do not create new keys in the target branch"),[],!1).provideDelegate_ugm9ea_k$(this,c("noNewPhrases",1,u,function(e){return e.get_noNewPhrases_ryqdqc_k$()},null)),this.deprecateMissing$delegate_1=z_(l(this,["--deprecate-missing"],"Deprecate translations missing in the source branch"),[],!1).provideDelegate_ugm9ea_k$(this,c("deprecateMissing",1,u,function(e){return e.get_deprecateMissing_5y2f36_k$()},null)),g_(l(this,["--strategy"],"One of: `skip`, `reference`, `time`, `time-bidi`, `source`, `target`. Default value is `skip`. Please see the documentation for more information.","STRATEGY"),"skip")),_=t.get_transformValue_5jno8e_k$(),e=t.get_transformEach_tm75i4_k$(),n=t.get_transformAll_q5rajm_k$(),t=(this.strategy$delegate_1=t.copy$default_nrhu36_k$(_,e,n,Ss).provideDelegate_ugm9ea_k$(this,c("strategy",1,u,function(e){return e.get_strategy_28j0lg_k$()},null)),this.conflictsOnly$delegate_1=z_(l(this,["--conflicts-only"],"Process only conflicting translations, skip all others"),[],!1).provideDelegate_ugm9ea_k$(this,c("conflictsOnly",1,u,function(e){return e.get_conflictsOnly_juips4_k$()},null)),this.skipExisting$delegate_1=z_(l(this,["--skip-existing"],"Skip all items with existing translations"),[],!1).provideDelegate_ugm9ea_k$(this,c("skipExisting",1,u,function(e){return e.get_skipExisting_nwm06r_k$()},null)),"merge"===this.type_1),_=(this.noFailOnConflicts$delegate_1=z_(l(this,["--no-fail-on-conflicts"],"Do not fail if there are any conflicts",nt,t),[],!1).provideDelegate_ugm9ea_k$(this,c("noFailOnConflicts",1,u,function(e){return e.get_noFailOnConflicts_xzgz6i_k$()},null)),"merge"===this.type_1),e=(this.noFailOnFailures$delegate_1=z_(l(this,["--no-fail-on-failures"],"Do not fail if there are any failures",nt,_),[],!1).provideDelegate_ugm9ea_k$(this,c("noFailOnFailures",1,u,function(e){return e.get_noFailOnFailures_sjh5io_k$()},null)),!("merge"===this.type_1)),n=(this.dontReportConflicts$delegate_1=z_(l(this,["--dont-report-conflicts"],"Do not report conflicts during merge",nt,e),[],!1).provideDelegate_ugm9ea_k$(this,c("dontReportConflicts",1,u,function(e){return e.get_dontReportConflicts_82p7vx_k$()},null)),this.langs$delegate_1=g_(l(this,["--langs"],"Comma-separated list of languages to process; if not specified, all languages are process","CS,DE,FR"),"").provideDelegate_ugm9ea_k$(this,c("langs",1,u,function(e){return e.get_langs_iujhng_k$()},null)),this.phrases$delegate_1=g_(l(this,["--keys"],"Comma-separated list of keys to process; if not specified, all keys are process","_aXXX,_aXXX"),"").provideDelegate_ugm9ea_k$(this,c("phrases",1,u,function(e){return e.get_phrases_8jjy8f_k$()},null)),!("merge"===this.type_1));this.async$delegate_1=z_(l(this,["--async"],"Do not wait for the server to process the operation",nt,n),[],!1).provideDelegate_ugm9ea_k$(this,c("async",1,u,function(e){return e.get_async_ioth77_k$()},null))}function Ks(){Ps.call(this,"conflicts","List all conflicts for branch merging","conflicts")}function Rs(){Ps.call(this,"failures","List all failures for branch merging","failures")}function Bs(){Ps.call(this,"analyze","List changes to be applied for branch merging","analysis")}function As(){Ps.call(this,"merge","Merge changes from source to target branch","merge")}function Us(){$_.call(this,"list");var e=Cs("default_object");this.pass$delegate_1=new qs(e)}function Vs(e){this.function_1=e}function Os(s){return function(e,t){var _,n,e=e.get_currentContext_mswz5r_k$(),i=s,r=N_(e),r=I_(T_(r,(_=i,function(e){e=e.get_data_wokkxf_k$().get_wei43m_k$(_);return null!=e&&m(e,B_)?e:null}))),e=null==r?(n=A_(),e.get_data_wokkxf_k$().put_4fpzoq_k$(i,n),n):r;return e}}function Ms(){hs.call(this,nt,!1,"branch","Create and merge branches");var e=Os("default_object");this.pass$delegate_1=new Vs(e),p_(this,[new Fs,new Ls,new Us,new Bs,new Ks,new Rs,new As,new Is,new Ts,new Ns,new Ds])}function Js(){hs.call(this,nt,!0,"cdn","List all files on the Localazy CDN");this.tag$delegate_1=g_(l(this,["-t","--tag"],"Perform the operation for the given named tag.","TAG"),"").provideDelegate_ugm9ea_k$(this,c("tag",1,u,function(e){return e.get_tag_18ivnz_k$()},null))}function Hs(e){this.function_1=e}function Xs(i){return function(e,t){var _,e=e.get_currentContext_mswz5r_k$(),n=i,e=N_(e),e=I_(T_(e,(_=n,function(e){e=e.get_data_wokkxf_k$().get_wei43m_k$(_);return null!=e&&m(e,F_)?e:null})));return it(e)}}function Gs(e){this.function_1=e}function Ws(i){return function(e,t){var _,e=e.get_currentContext_mswz5r_k$(),n=i,e=N_(e),e=I_(T_(e,(_=n,function(e){e=e.get_data_wokkxf_k$().get_wei43m_k$(_);return null!=e&&m(e,F_)?e:null})));return it(e)}}function Ys(){$_.call(this,"list");var e=Xs("default_object");this.pass$delegate_1=new Hs(e)}function Zs(){$_.call(this,"format");var e=Ws("default_object");this.pass$delegate_1=new Gs(e),this.format$delegate_1=S_(this,"CONV","Conversion type").provideDelegate_uuljd1_k$(this,c("format",1,u,function(e){return e.get_format_dfdtds_k$()},null))}function Qs(e){this.function_1=e}function ea(s){return function(e,t){var _,n,e=e.get_currentContext_mswz5r_k$(),i=s,r=N_(e),r=I_(T_(r,(_=i,function(e){e=e.get_data_wokkxf_k$().get_wei43m_k$(_);return null!=e&&m(e,B_)?e:null}))),e=null==r?(n=A_(),e.get_data_wokkxf_k$().put_4fpzoq_k$(i,n),n):r;return e}}function ta(){hs.call(this,nt,!0,"conversion","Access information related to format conversions");var e=ea("default_object");this.pass$delegate_1=new Qs(e),p_(this,[new Ys,new Zs])}function _a(){ks.call(this,"download","Download translated files and store them locally");this.tag$delegate_1=g_(l(this,["-t","--tag"],"Perform the operation for the given named tag.","TAG"),"").provideDelegate_ugm9ea_k$(this,c("tag",1,u,function(e){return e.get_tag_18ivnz_k$()},null))}function na(e){this.function_1=e}function ia(i){return function(e,t){var _,e=e.get_currentContext_mswz5r_k$(),n=i,e=N_(e),e=I_(T_(e,(_=n,function(e){e=e.get_data_wokkxf_k$().get_wei43m_k$(_);return null!=e&&m(e,F_)?e:null})));return it(e)}}function ra(e){this.function_1=e}function sa(i){return function(e,t){var _,e=e.get_currentContext_mswz5r_k$(),n=i,e=N_(e),e=I_(T_(e,(_=n,function(e){e=e.get_data_wokkxf_k$().get_wei43m_k$(_);return null!=e&&m(e,F_)?e:null})));return it(e)}}function aa(e){this.function_1=e}function oa(i){return function(e,t){var _,e=e.get_currentContext_mswz5r_k$(),n=i,e=N_(e),e=I_(T_(e,(_=n,function(e){e=e.get_data_wokkxf_k$().get_wei43m_k$(_);return null!=e&&m(e,F_)?e:null})));return it(e)}}function la(){$_.call(this,"delete");var e=ia("default_object");this.pass$delegate_1=new na(e),this.file$delegate_1=S_(this,"FILE-ID","File ID returned by the 'file list' command").provideDelegate_uuljd1_k$(this,c("file",1,u,function(e){return e.get_file_wom0n9_k$()},null))}function ua(){$_.call(this,"rename");var e=sa("default_object");this.pass$delegate_1=new ra(e),this.file$delegate_1=S_(this,"FILE-ID","File ID returned by the 'file list' command").provideDelegate_uuljd1_k$(this,c("file",1,u,function(e){return e.get_file_wom0n9_k$()},null)),this.path$delegate_1=g_(l(this,["-p","--path"],"New path. Don't specify if you don't want to change."),"").provideDelegate_ugm9ea_k$(this,c("path",1,u,function(e){return e.get_path_wos8ry_k$()},null)),this.name$delegate_1=g_(l(this,["-f","--file"],"New filename. Don't specify if you don't want to change."),"").provideDelegate_ugm9ea_k$(this,c("name",1,u,function(e){return e.get_name_woqyms_k$()},null))}function ca(){$_.call(this,"list");var e=oa("default_object");this.pass$delegate_1=new aa(e)}function ha(e){this.function_1=e}function ka(s){return function(e,t){var _,n,e=e.get_currentContext_mswz5r_k$(),i=s,r=N_(e),r=I_(T_(r,(_=i,function(e){e=e.get_data_wokkxf_k$().get_wei43m_k$(_);return null!=e&&m(e,B_)?e:null}))),e=null==r?(n=A_(),e.get_data_wokkxf_k$().put_4fpzoq_k$(i,n),n):r;return e}}function da(){hs.call(this,nt,!0,"file","Manage files on Localazy");var e=ka("default_object");this.pass$delegate_1=new ha(e),p_(this,[new ca,new ua,new la])}function $a(e,t){this.this$0__1=e,s.call(this,t)}function ga(e,t){function _(e,t){return n.invoke_d9fzmj_k$(e,t)}var n=new $a(e,t);return _.$arity=1,_}function fa(){hs.call(this,nt,!0,"ios","Download initial data for iOS");this.output$delegate_1=g_(l(this,["-o","--output"],"Where to store downloaded file","PATH"),"localazy.ios").provideDelegate_ugm9ea_k$(this,c("output",1,u,function(e){return e.get_output_hs4j62_k$()},null));this.tag$delegate_1=g_(l(this,["-t","--tag"],"Perform the operation for the given named tag.","TAG"),"").provideDelegate_ugm9ea_k$(this,c("tag",1,u,function(e){return e.get_tag_18ivnz_k$()},null))}function pa(){hs.call(this,nt,!0,"languages","List languages available on Localazy along with the status"),this.csv$delegate_1=z_(l(this,["--csv"],"Output as CSV instead of formatted table."),[],!1).provideDelegate_ugm9ea_k$(this,c("csv",1,u,function(e){return e.get_csv_18j7tv_k$()},null)),this.add$delegate_1=g_(l(this,["-a","--add"],"A list of languages to be added to the project separated by comma.","LANGS"),"").provideDelegate_ugm9ea_k$(this,c("add",1,u,function(e){return e.get_add_18j9oo_k$()},null))}function ma(){hs.call(this,nt,!0,"list","List translated files available on Localazy");this.tag$delegate_1=g_(l(this,["-t","--tag"],"Perform the operation for the given named tag.","TAG"),"").provideDelegate_ugm9ea_k$(this,c("tag",1,u,function(e){return e.get_tag_18ivnz_k$()},null))}function ya(){$_.call(this,"schema"),this.url$delegate_1=g_(l(this,["-u","--url"],nt,"URL",!0),"https://connect.localazy.com/cli").provideDelegate_ugm9ea_k$(this,c("url",1,u,function(e){return e.get_url_18iuii_k$()},null)),this.testUrl$delegate_1=z_(l(this,["--test"],"Change URL to our testing server.",nt,!0),[],!1).provideDelegate_ugm9ea_k$(this,c("testUrl",1,u,function(e){return e.get_testUrl_m9cf3g_k$()},null));this.localUrl$delegate_1=g_(l(this,["--local"],"Change URL to the local server with the given PORT.","PORT",!0),"").provideDelegate_ugm9ea_k$(this,c("localUrl",1,u,function(e){return e.get_localUrl_d9ann_k$()},null))}function wa(e){this.function_1=e}function ba(i){return function(e,t){var _,e=e.get_currentContext_mswz5r_k$(),n=i,e=N_(e),e=I_(T_(e,(_=n,function(e){e=e.get_data_wokkxf_k$().get_wei43m_k$(_);return null!=e&&m(e,F_)?e:null})));return it(e)}}function xa(e){this.function_1=e}function va(i){return function(e,t){var _,e=e.get_currentContext_mswz5r_k$(),n=i,e=N_(e),e=I_(T_(e,(_=n,function(e){e=e.get_data_wokkxf_k$().get_wei43m_k$(_);return null!=e&&m(e,F_)?e:null})));return it(e)}}function za(e){this.function_1=e}function ja(i){return function(e,t){var _,e=e.get_currentContext_mswz5r_k$(),n=i,e=N_(e),e=I_(T_(e,(_=n,function(e){e=e.get_data_wokkxf_k$().get_wei43m_k$(_);return null!=e&&m(e,F_)?e:null})));return it(e)}}function Ea(e,t){return null!=t&&(f_(["none","missing","update","overwrite"],t)||e.fail_are55o_k$("Please provide valid merge mode!")),_t()}function Sa(e){this.function_1=e}function qa(i){return function(e,t){var _,e=e.get_currentContext_mswz5r_k$(),n=i,e=N_(e),e=I_(T_(e,(_=n,function(e){e=e.get_data_wokkxf_k$().get_wei43m_k$(_);return null!=e&&m(e,F_)?e:null})));return it(e)}}function Ca(e,t,_){$_.call(this,e),this.name_1=e,this.actionUrl_1=t,this.help_1=_;e=ba("default_object");this.pass$delegate_1=new wa(e),this.tag$delegate_1=S_(this,"TAG","Tag name").provideDelegate_uuljd1_k$(this,c("tag",1,u,function(e){return e.get_tag_18ivnz_k$()},null)),this.sync$delegate_1=z_(l(this,["--sync"],"Perform the operation synchronously. By default, the operation is performed asynchronously."),[],!1).provideDelegate_ugm9ea_k$(this,c("sync",1,u,function(e){return e.get_sync_woundw_k$()},null))}function La(e,t,_,n,i){$_.call(this,e),this.name_1=e,this.actionUrl_1=n,this.help_1=i;e=va("default_object");this.pass$delegate_1=new xa(e),this.tag$delegate_1=S_(this,"TAG","Tag name").provideDelegate_uuljd1_k$(this,c("tag",1,u,function(e){return e.get_tag_18ivnz_k$()},null)),this.target$delegate_1=S_(this,t,_).provideDelegate_uuljd1_k$(this,c("target",1,u,function(e){return e.get_target_juba8q_k$()},null))}function Fa(){$_.call(this,"merge");var e=ja("default_object"),e=(this.pass$delegate_1=new za(e),g_(l(this,["--mode"],"Merge mode; allowed values: none, missing (default), update, overwrite","MODE"),"missing")),t=e.get_transformValue_5jno8e_k$(),_=e.get_transformEach_tm75i4_k$(),n=e.get_transformAll_q5rajm_k$();this.mode$delegate_1=e.copy$default_nrhu36_k$(t,_,n,Ea).provideDelegate_ugm9ea_k$(this,c("mode",1,u,function(e){return e.get_mode_woqlt8_k$()},null)),this.noArrayChecks$delegate_1=z_(l(this,["--no-arrays-checks"],"Merge string arrays even if the merged item doesn't have the same number of elements as the target tag's source language item"),[],!1).provideDelegate_ugm9ea_k$(this,c("noArrayChecks",1,u,function(e){return e.get_noArrayChecks_hx0r5m_k$()},null)),this.differentSources$delegate_1=z_(l(this,["--different-sources"],"By default, only items with the same source language content for both source and target tag are merged; with this option you can disable this behavior"),[],!1).provideDelegate_ugm9ea_k$(this,c("differentSources",1,u,function(e){return e.get_differentSources_hqjyt4_k$()},null)),this.addKeys$delegate_1=z_(l(this,["--add-keys"],"Add string keys missing in the target tag but existing in the source tag"),[],!1).provideDelegate_ugm9ea_k$(this,c("addKeys",1,u,function(e){return e.get_addKeys_hqfz5g_k$()},null)),this.renameKeys$delegate_1=z_(l(this,["--rename-keys"],"Rename string keys that were renamed in the source tag"),[],!1).provideDelegate_ugm9ea_k$(this,c("renameKeys",1,u,function(e){return e.get_renameKeys_u5nd23_k$()},null)),this.removeKeys$delegate_1=z_(l(this,["--remove-keys"],"Remove string keys not existing in the source tag"),[],!1).provideDelegate_ugm9ea_k$(this,c("removeKeys",1,u,function(e){return e.get_removeKeys_20cp9b_k$()},null)),this.files$delegate_1=Z_(E_(l(this,["--file"],"File to merge (e.g., path1/path2/file.json); can be used multiple times to specify more files; if not present, all files are merged","FILE"))).provideDelegate_ugm9ea_k$(this,c("files",1,u,function(e){return e.get_files_irdsge_k$()},null)),this.keys$delegate_1=Z_(E_(l(this,["--key"],"Key to merge; can be used multiple times to specify more keys; if not present, all keys are merged","KEY"))).provideDelegate_ugm9ea_k$(this,c("keys",1,u,function(e){return e.get_keys_wop4xp_k$()},null)),this.keySeparator$delegate_1=g_(l(this,["--key-level-separator"],"String used as separator for structured keys; default: '.'","STRING"),".").provideDelegate_ugm9ea_k$(this,c("keySeparator",1,u,function(e){return e.get_keySeparator_pbxx8v_k$()},null)),this.removeUnlistedKeys$delegate_1=z_(l(this,["--remove-unlisted-keys"],"Remove keys not listed using the `--key` option"),[],!1).provideDelegate_ugm9ea_k$(this,c("removeUnlistedKeys",1,u,function(e){return e.get_removeUnlistedKeys_mkpu7d_k$()},null)),this.dontUseKeyPrefix$delegate_1=z_(l(this,["--no-key-prefix"],"Don't use `p:` and `a:` for prefixing plurals and string arrays for the `--key` option"),[],!1).provideDelegate_ugm9ea_k$(this,c("dontUseKeyPrefix",1,u,function(e){return e.get_dontUseKeyPrefix_ole684_k$()},null)),this.updateProject$delegate_1=z_(l(this,["--update-project"],"Use project information from the source tag; default: keep information from the target tag"),[],!1).provideDelegate_ugm9ea_k$(this,c("updateProject",1,u,function(e){return e.get_updateProject_v2jw2h_k$()},null)),this.updateMeta$delegate_1=z_(l(this,["--update-meta"],"Update meta information for string keys; meta information stores additional data for arrays and plurals"),[],!1).provideDelegate_ugm9ea_k$(this,c("updateMeta",1,u,function(e){return e.get_updateMeta_p2kg7d_k$()},null)),this.updateLanguages$delegate_1=z_(l(this,["--update-languages"],"Change publish/hidden state for languages using information from the source tag"),[],!1).provideDelegate_ugm9ea_k$(this,c("updateLanguages",1,u,function(e){return e.get_updateLanguages_dr2fl5_k$()},null)),this.addLanguages$delegate_1=z_(l(this,["--add-languages"],"Add languages missing in the target tag but existing in the source tag"),[],!1).provideDelegate_ugm9ea_k$(this,c("addLanguages",1,u,function(e){return e.get_addLanguages_rdfmwz_k$()},null)),this.languages$delegate_1=g_(l(this,["--languages"],"Comma-separated list of languages to merge; if not present, all languages in the target tag are merged","LANGS"),"__NULL__").provideDelegate_ugm9ea_k$(this,c("languages",1,u,function(e){return e.get_languages_xmhugi_k$()},null)),this.removeUnlistedLanguages$delegate_1=z_(l(this,["--remove-unlisted-languages"],"Remove languages not listed in the `--languages` option"),[],!1).provideDelegate_ugm9ea_k$(this,c("removeUnlistedLanguages",1,u,function(e){return e.get_removeUnlistedLanguages_odvs48_k$()},null)),this.removeMissingLanguages$delegate_1=z_(l(this,["--remove-missing-languages"],"Remove languages missing in the source tag"),[],!1).provideDelegate_ugm9ea_k$(this,c("removeMissingLanguages",1,u,function(e){return e.get_removeMissingLanguages_jkjqiq_k$()},null)),this.publishLanguages$delegate_1=g_(l(this,["--publish-languages"],"Comma-separated list of languages to change state to published (and not hidden)","LANGS"),"__NULL__").provideDelegate_ugm9ea_k$(this,c("publishLanguages",1,u,function(e){return e.get_publishLanguages_kah3f9_k$()},null));this.unpublishLanguages$delegate_1=g_(l(this,["--unpublish-languages"],"Comma-separated list of languages to change state to unpublished","LANGS"),"__NULL__").provideDelegate_ugm9ea_k$(this,c("unpublishLanguages",1,u,function(e){return e.get_unpublishLanguages_d163gy_k$()},null)),this.sourceTag$delegate_1=S_(this,"SOURCE_TAG","Source tag name").provideDelegate_uuljd1_k$(this,c("sourceTag",1,u,function(e){return e.get_sourceTag_jko94a_k$()},null)),this.targetTag$delegate_1=S_(this,"TARGET_TAG","Target tag name").provideDelegate_uuljd1_k$(this,c("targetTag",1,u,function(e){return e.get_targetTag_4z21y8_k$()},null)),this.outputTag$delegate_1=S_(this,"OUTPUT_TAG","Output tag name").provideDelegate_uuljd1_k$(this,c("outputTag",1,u,function(e){return e.get_outputTag_qj970w_k$()},null))}function Na(){Ca.call(this,"publish","/v2/tags/create","Publish the current translations under the release tag")}function Ta(){Ca.call(this,"delete","/v2/tags/delete","Delete release tag and corresponding data")}function Ia(){La.call(this,"rename","NEW-NAME","New name","/v2/tags/rename","Rename release tag")}function Da(){La.call(this,"promote","TARGET","Target tag","/v2/tags/promote","Promote tag to another")}function Pa(){$_.call(this,"list");var e=qa("default_object");this.pass$delegate_1=new Sa(e)}function Ka(e){this.function_1=e}function Ra(s){return function(e,t){var _,n,e=e.get_currentContext_mswz5r_k$(),i=s,r=N_(e),r=I_(T_(r,(_=i,function(e){e=e.get_data_wokkxf_k$().get_wei43m_k$(_);return null!=e&&m(e,B_)?e:null}))),e=null==r?(n=A_(),e.get_data_wokkxf_k$().put_4fpzoq_k$(i,n),n):r;return e}}function Ba(){hs.call(this,nt,!0,"tag","Manage release tags");var e=Ra("default_object");this.pass$delegate_1=new Ka(e),p_(this,[new Na,new Ia,new Da,new Fa,new Pa,new Ta])}function Aa(e,t){return null==t||et(t)||null!=Q_(t)&&0<=en(t)||e.fail_are55o_k$("Please provide valid app-version. It must be non-negative integer number."),_t()}function Ua(){ks.call(this,"upload","Upload localizable files to Localazy for translating");var e=g_(l(this,["-v","--app-version"],"Override/provide the app version on the command line","INT"),""),t=e.get_transformValue_5jno8e_k$(),_=e.get_transformEach_tm75i4_k$(),n=e.get_transformAll_q5rajm_k$();this.appVersion$delegate_1=e.copy$default_nrhu36_k$(t,_,n,Aa).provideDelegate_ugm9ea_k$(this,c("appVersion",1,u,function(e){return e.get_appVersion_4dcm4g_k$()},null)),this.project$delegate_1=g_(l(this,["--project"],"Only perform upload if the project slug or ID match the specified one"),"").provideDelegate_ugm9ea_k$(this,c("project",1,u,function(e){return e.get_project_3ulnm8_k$()},null)),this.async$delegate_1=z_(l(this,["--async"],"Do not wait for the server to process the uploaded data and report errors."),[],!1).provideDelegate_ugm9ea_k$(this,c("async",1,u,function(e){return e.get_async_ioth77_k$()},null)),this.disableContentLength$delegate_1=z_(l(this,["--disable-content-length"],"Disable Content-Length header when uploading data; use only when the upload operation fails with 'bad request'",nt,!1),[],!1).provideDelegate_ugm9ea_k$(this,c("disableContentLength",1,u,function(e){return e.get_disableContentLength_uh9yio_k$()},null));this.skipLimitCheck$delegate_1=z_(l(this,["--skip-limit-check"],"Skip the check for the maximum upload file size; the check is still performed on the server.",nt,!0),[],!1).provideDelegate_ugm9ea_k$(this,c("skipLimitCheck",1,u,function(e){return e.get_skipLimitCheck_22fevf_k$()},null))}function Va(e,t){this.this$0__1=e,s.call(this,t)}function Oa(e,t){function _(e,t){return n.invoke_d9fzmj_k$(e,t)}var n=new Va(e,t);return _.$arity=1,_}function Ma(e,t,_,n,i,r,s,a,o){this.url_1=e,this.configFile_1=t,this.keyFile_1=_,this.writeKey_1=n,this.readKey_1=i,this.source_1=r,this.target_1=s,this.empty_1=a,this.async_1=o}function Ja(e,t){this.this$0__1=e,s.call(this,t)}function Ha(e,t){function _(e,t){return n.invoke_d9fzmj_k$(e,t)}var n=new Ja(e,t);return _.$arity=1,_}function Xa(e,t,_,n,i,r,s){s=s===nt?st():s,this.url_1=e,this.configFile_1=t,this.keyFile_1=_,this.writeKey_1=n,this.readKey_1=i,this.branch_1=r,this.additionalHeaders_1=s}function Ga(e,t,_,n){for(var i=W_(),r=e.iterator_jk1svi_k$();r.hasNext_bitz1p_k$();){var s=r.next_20eer_k$();s.get_sourceId_2x7vz5_k$()===t&&i.add_utx5q5_k$(s)}for(var a=0,o=i.iterator_jk1svi_k$();o.hasNext_bitz1p_k$();){var l=o.next_20eer_k$(),u=a,a=u+1|0,u=on(u),u=0===_?at():un(n,ln(u===(i.get_size_woubt6_k$()-1|0))),c=(f=g=$=d=k=h=c=void 0,l.get_name_woqyms_k$()),h=l.get_projectId_6a8jo5_k$(),k=_,d=u,$=nn();if(0<k)for(var g=rn(d,d.get_size_woubt6_k$()-1|0).iterator_jk1svi_k$();g.hasNext_bitz1p_k$();)g.next_20eer_k$()?$.append_22ad7x_k$(" "):$.append_22ad7x_k$("│ ");0<k&&(sn(d)?$.append_22ad7x_k$("└"):$.append_22ad7x_k$("├"),$.append_22ad7x_k$("─"),$.append_22ad7x_k$(" "));var d=$.get_length_g42xv3_k$(),k=0===k?ns()+es():ns(),k=ts()+$.toString()+W()+k+c+W(),f=24-h.length|0,f=Math.max(1,f),f=an(" ",f),d=34-(d+c.length|0)|0,c=Math.max(1,d);lt("https://localazy.com/p/"+h+f+k+an(" ",c),[]),Ga(e,l.get_projectId_6a8jo5_k$(),_+1|0,u)}}function Wa(e,t){var _=e.get_parentId_cd9xaq_k$(),_=null==_||et(_)?"aaa":"bbb"+e.get_name_woqyms_k$(),e=_,_=t.get_parentId_cd9xaq_k$(),_=null==_||et(_)?"aaa":"bbb"+t.get_name_woqyms_k$();return cn(e,_)}function Ya(){(B=this).CHAR_DOWN_1="│",this.CHAR_CROSS_1="├",this.CHAR_LEFT_1="─",this.CHAR_END_1="└"}function Za(e){this.function_1=e}function Qa(e,t){this.this$0__1=e,s.call(this,t)}function eo(e,t){function _(e,t){return n.invoke_d9fzmj_k$(e,t)}var n=new Qa(e,t);return _.$arity=1,_}function to(e,t,_,n,i){null==B&&new Ya,this.url_1=e,this.configFile_1=t,this.keyFile_1=_,this.writeKey_1=n,this.readKey_1=i}function _o(e,t){this.this$0__1=e,s.call(this,t)}function no(e,t){function _(e,t){return n.invoke_d9fzmj_k$(e,t)}var n=new _o(e,t);return _.$arity=1,_}function io(e,t,_,n,i,r,s,a){a=a===nt?st():a,this.url_1=e,this.configFile_1=t,this.keyFile_1=_,this.writeKey_1=n,this.readKey_1=i,this.branch_1=r,this.name_1=s,this.additionalHeaders_1=a}function ro(){(A=this).CHAR_CROSS_1="├",this.CHAR_LEFT_1="─",this.CHAR_END_1="└"}function so(e,t){lo(t.get_conflictingTranslationsCount_3owva2_k$(),t,"Conflicting Translations",Qr()),lo(t.get_failedTranslationsCount_utsalj_k$(),t,"Failed Translations",Qr()),lo(t.get_transferTranslationsCount_bz50qv_k$(),t,"Updated Translations",ns()),lo(t.get_resolvedFromSourceCount_52rp07_k$(),t,"Resolved From Source",ns()),lo(t.get_resolvedFromTargetCount_wvmuib_k$(),t,"Resolved From Target",ns()),lo(t.get_missingTranslationsCount_v0tuwg_k$(),t,"New Translations",_s()),lo(t.get_missingPhrasesCount_rvp27m_k$(),t,"New Keys",_s());for(var _=t.get_createdLangs_xnpgmy_k$(),n=t,i="New Languages",r=_s(),s=K_(P_(_,10)),a=_.iterator_jk1svi_k$();a.hasNext_bitz1p_k$();){var o=a.next_20eer_k$(),o=n.get_langNames_x11zrl_k$().get_wei43m_k$(o);s.add_utx5q5_k$(o)}uo(s,i,r),uo(t.get_createdFiles_xqv5u0_k$(),"New Files",_s()),lo(t.get_equalTranslationsCount_adr0ce_k$(),t,"Matching Translations",Zr()),_=t.get_deprecatedMissingCount_2vv8h1_k$(),i="Deprecated Keys",r=Qr(),0<_&&as(r+i+": "+_,["mt"]),t.get_conflictingTranslationsCount_3owva2_k$().isEmpty_y1axqb_k$()||e.failOnConflict_1&&Mr().manualAppFailure_b350vz_k$(),t.get_failedTranslationsCount_utsalj_k$().isEmpty_y1axqb_k$()||e.failOnFailure_1&&Mr().manualAppFailure_b350vz_k$()}function ao(e){e="$#NULL#$"===e?"{empty}":v_(v_(e,"$#NO#$",W()+_s()),"$#CL#$",W()+ts());return X(R_(b_(e)?e:H()))}function oo(e){this.function_1=e}function lo(e,t,_,n){if(!e.isEmpty_y1axqb_k$()){as(n+_,["mt"]);for(var i=0,r=K_(e.get_size_woubt6_k$()),s=e.get_entries_p20ztl_k$().iterator_jk1svi_k$();s.hasNext_bitz1p_k$();){var a=s.next_20eer_k$(),a=rt(t.get_langNames_x11zrl_k$().get_wei43m_k$(a.get_key_18j28a_k$()),a.get_value_j01efc_k$());r.add_utx5q5_k$(a)}for(var _=new oo(ko),o=kn(r,_).iterator_jk1svi_k$();o.hasNext_bitz1p_k$();){var l=o.next_20eer_k$(),u=(i=i+1|0)===e.get_size_woubt6_k$()?" └":" ├";lt(ts()+u+"─"+W()+" "+n+l.get_first_irdx8n_k$()+": "+es()+l.get_second_jf7fjx_k$()+W(),[])}}}function uo(e,t,_){if(!e.isEmpty_y1axqb_k$()){as(_+t,["mt"]);for(var n=0,t=new oo($o),i=kn(e,t).iterator_jk1svi_k$();i.hasNext_bitz1p_k$();){var r,s=i.next_20eer_k$();null!=s&&(r=(n=n+1|0)===e.get_size_woubt6_k$()?" └":" ├",lt(ts()+r+"─"+W()+" "+_+s+W(),[]))}}}function co(e,t){this.this$0__1=e,s.call(this,t)}function ho(e,t){function _(e,t){return n.invoke_d9fzmj_k$(e,t)}var n=new co(e,t);return _.$arity=1,_}function ko(e,t){e=e.get_first_irdx8n_k$(),t=t.get_first_irdx8n_k$();return cn(e,t)}function $o(e,t){return cn(e,t)}function go(e,t,_,n,i,r,s,a,o,l){null==A&&new ro,this.url_1=e,this.configFile_1=t,this.keyFile_1=_,this.writeKey_1=n,this.readKey_1=i,this.type_1=r,this.failOnConflict_1=s,this.failOnFailure_1=a,this.request_1=o,this.async_1=l}function fo(e,t){this.this$0__1=e,s.call(this,t)}function po(e,t){function _(e,t){return n.invoke_d9fzmj_k$(e,t)}var n=new fo(e,t);return _.$arity=1,_}function mo(e,t,_,n,i,r,s,a){a=a===nt?st():a,this.url_1=e,this.configFile_1=t,this.keyFile_1=_,this.writeKey_1=n,this.readKey_1=i,this.branch_1=r,this.name_1=s,this.additionalHeaders_1=a}function yo(e,t){this.this$0__1=e,s.call(this,t)}function wo(e,t){function _(e,t){return n.invoke_d9fzmj_k$(e,t)}var n=new yo(e,t);return _.$arity=1,_}function bo(e,t,_,n,i,r,s){s=s===nt?st():s,this.url_1=e,this.configFile_1=t,this.keyFile_1=_,this.writeKey_1=n,this.readKey_1=i,this.branch_1=r,this.additionalHeaders_1=s}function xo(e,t,_,n){et(n)||(et(t)||t.append_22ad7x_k$(", "),t.append_22ad7x_k$(ts()+_+":"+W()+" "+n))}function vo(e,t){this.this$0__1=e,s.call(this,t)}function zo(e,t){function _(e,t){return n.invoke_d9fzmj_k$(e,t)}var n=new vo(e,t);return _.$arity=1,_}function jo(e,t,_,n,i,r,s){this.url_1=e,this.configFile_1=t,this.keyFile_1=_,this.writeKey_1=n,this.readKey_1=i,this.tag_1=r,this.inputBranch_1=s}function Eo(e,t){this.this$0__1=e,s.call(this,t)}function So(e,t){function _(e,t){return n.invoke_d9fzmj_k$(e,t)}var n=new Eo(e,t);return _.$arity=1,_}function qo(e,t,_,n,i,r,s){this.url_1=e,this.configFile_1=t,this.keyFile_1=_,this.writeKey_1=n,this.readKey_1=i,this.actionUrl_1=r,this.inputBranch_1=s}function Co(e,t,_){for(var n=F1(t.get_productFlavors_i9nj5b_k$(),t.get_buildType_enkuld_k$()),i=fn(t.get_file_wom0n9_k$(),gn([G(47)])),r=fn(fn(t.get_path_wos8ry_k$(),gn([G(47)]))+"/"+i,gn([G(47)])),i=fn(fn(t.get_path_wos8ry_k$(),gn([G(47)]))+"/"+dn(i,".",i),gn([G(47)])),s=rt("path",fn(t.get_path_wos8ry_k$(),gn([G(47)]))),a=rt("file",t.get_file_wom0n9_k$()),o=rt("fileWithoutExt",dn(t.get_file_wom0n9_k$(),".",t.get_file_wom0n9_k$())),l=rt("fileExt",pn(t.get_file_wom0n9_k$(),".","")),r=rt("fullPath",r),i=rt("fullPathWithoutExt",i),u=rt("groups",ot(t.get_groups_dy12vx_k$()," ")),c=rt("module",t.get_module_gqgeid_k$()),h=rt("library",t.get_library_40idhu_k$()),k=rt("buildType",t.get_buildType_enkuld_k$()),d=rt("types",ot(t.get_types_izd7io_k$()," ")),$=t.get_productFlavors_i9nj5b_k$(),s=mn([s,a,o,l,r,i,u,c,h,k,d,rt("productFlavors",ot($," ",nt,nt,nt,nt,Ko)),rt("languageCode",t.get_language_cjhhk1_k$()),rt("regionCode",t.get_region_iy88ot_k$()),rt("scriptCode",t.get_script_jedas4_k$()),rt("langName",t.get_langName_cisl7m_k$()),rt("langNameEn",t.get_langNameEn_th502z_k$()),rt("langRtl",t.get_langRtl_ejlir_k$()?"true":"false"),rt("langLocalazyId",t.get_langLocalazyId_7w3ijr_k$().toString()),rt("sourceLang",_),rt("lang",V1(t.get_language_cjhhk1_k$(),t.get_region_iy88ot_k$(),t.get_script_jedas4_k$(),"LL","LL-RR","LL-SCRP","LL-SCRP-RR")),rt("language",V1(t.get_language_cjhhk1_k$(),t.get_region_iy88ot_k$(),t.get_script_jedas4_k$(),"LL","LL-RR","LL-SCRP","LL-SCRP-RR")),rt("langIosStrings",V1(t.get_language_cjhhk1_k$(),t.get_region_iy88ot_k$(),t.get_script_jedas4_k$(),"LL","LL_RR","LL-SCRP","LL-SCRP_RR")),rt("langAndroidResNoScript",V1(t.get_language_cjhhk1_k$(),t.get_region_iy88ot_k$(),t.get_script_jedas4_k$(),"LL","LL-rRR","LL","LL-rRR")),rt("langAndroidRes",V1(t.get_language_cjhhk1_k$(),t.get_region_iy88ot_k$(),t.get_script_jedas4_k$(),"LL","LL-rRR","b+LL+SCRP","b+LL+SCRP+RR")),rt("langAndroidBcp",V1(t.get_language_cjhhk1_k$(),t.get_region_iy88ot_k$(),t.get_script_jedas4_k$(),"b+LL","b+LL+RR","b+LL+SCRP","b+LL+SCRP+RR")),rt("langLrsUnderscore",V1(t.get_language_cjhhk1_k$(),t.get_region_iy88ot_k$(),t.get_script_jedas4_k$(),"LL","LL_RR","LL_SCRP","LL_RR_SCRP")),rt("langLsrUnderscore",V1(t.get_language_cjhhk1_k$(),t.get_region_iy88ot_k$(),t.get_script_jedas4_k$(),"LL","LL_RR","LL_SCRP","LL_SCRP_RR")),rt("langLrsDash",V1(t.get_language_cjhhk1_k$(),t.get_region_iy88ot_k$(),t.get_script_jedas4_k$(),"LL","LL-RR","LL-SCRP","LL-RR-SCRP")),rt("langLsrDash",V1(t.get_language_cjhhk1_k$(),t.get_region_iy88ot_k$(),t.get_script_jedas4_k$(),"LL","LL-RR","LL-SCRP","LL-SCRP-RR")),rt("iosLprojFolder",V1(t.get_language_cjhhk1_k$(),t.get_region_iy88ot_k$(),t.get_script_jedas4_k$(),"LL","LL-RR","LL-SCRP","LL-SCRP-RR")+".lproj"),rt("androidFlavoredFolder",n)]),a=e.extraParams_1,g=K_(P_(a,10)),f=a.iterator_jk1svi_k$();f.hasNext_bitz1p_k$();){var p=f.next_20eer_k$(),p=wn(p,":")?rt(O_(p,":"),yn(p,":")):rt(p,"");g.add_utx5q5_k$(p)}return xn(s,bn(g))}function Lo(e,t,_,n,i){var r=V1(_.get_language_cjhhk1_k$(),_.get_region_iy88ot_k$(),_.get_script_jedas4_k$(),"LL","LL-RR","LL-SCRP","LL-SCRP-RR"),_=V1(_.get_language_cjhhk1_k$(),_.get_region_iy88ot_k$(),_.get_script_jedas4_k$(),"LL","LL_RR","LL#SCRP","LL_RR#SCRP");return(t.contains_aljjnj_k$(r)||t.contains_aljjnj_k$(_))&&(n.contains_aljjnj_k$(r)&&!i||e.quiet_1||ls("Skipping excluded language `"+r+"`.",[]),n.add_utx5q5_k$(r),1)}function Fo(e,t,_){lt("-----",["mt","mb"]),lt(t+": "+es()+ns()+_.get_file_wom0n9_k$()+W()+" ["+V1(_.get_language_cjhhk1_k$(),_.get_region_iy88ot_k$(),_.get_script_jedas4_k$(),"LL","LL-RR","LL-SCRP","LL-SCRP-RR")+"]",[]),Io("path",_.get_path_wos8ry_k$(),!0),Do("type",ot(_.get_types_izd7io_k$()," ")),Do("module",_.get_module_gqgeid_k$()),Do("library",_.get_library_40idhu_k$()),Do("build type",_.get_buildType_enkuld_k$()),Do("product flavors",ot(_.get_productFlavors_i9nj5b_k$()," ")),Do("groups",ot(_.get_groups_dy12vx_k$()," ")),cs(),rs()||y_(""),is(!0)}function No(e,t,_,n,i,r,s){for(var a=!1,o=W_(),l=s.iterator_jk1svi_k$();l.hasNext_bitz1p_k$();){var u=l.next_20eer_k$();(et(u.get_group_is3eja_k$())||e.groups_1.contains_aljjnj_k$(u.get_group_is3eja_k$()))&&o.add_utx5q5_k$(u)}for(var c=o.iterator_jk1svi_k$();c.hasNext_bitz1p_k$();){var h,k,d=c.next_20eer_k$();a||(h=new h$(t.get_transformations_zd1ns1_k$(),r,"download"),ql().evalute_3hrjzg_k$(h,d.get_conditions_zgnfpd_k$())?(d.get_stop_woujpn_k$()&&(a=!0),k=d.get_output_hs4j62_k$(),et(k)||(k=h.process_fihfth_k$(d.get_output_hs4j62_k$()),k=null!=d.get_changeExtension_p9mmbq_k$()?dn(k,".")+"."+d.get_changeExtension_p9mmbq_k$():k,k=_.child_23d9su_k$(k),e.quiet_1||ss("Writing file "+k.get_fullPath_9sjobn_k$()+"...",[]),e.simulate_1)||(new Dg(k.get_parentPath_o807t4_k$()).mkdirs_i8ovxo_k$(),n.saveFile_ierp2k_k$(i,k))):e.quiet_1||ls("Skipping file "+h.process_fihfth_k$(d.get_output_hs4j62_k$())+"; conditions not valid...",[]))}}function To(e,t,_,n){var i=V1(n.get_language_cjhhk1_k$(),n.get_region_iy88ot_k$(),n.get_script_jedas4_k$(),"LL","LL-RR","LL-SCRP","LL-SCRP-RR"),r=Po(i),t=t.get_wei43m_k$(i),t=null==t?i:t,s=vn(),t=(s.add_utx5q5_k$(Po(t)),_.get_wei43m_k$(i));if(null!=t)for(var a=t.iterator_jk1svi_k$();a.hasNext_bitz1p_k$();){var o=a.next_20eer_k$();s.add_utx5q5_k$(Po(o))}for(var l=K_(P_(s,10)),u=s.iterator_jk1svi_k$();u.hasNext_bitz1p_k$();){var c,h=u.next_20eer_k$(),k=h.equals(r)?n:(k=h.get_language_cjhhk1_k$(),c=h.get_region_iy88ot_k$(),h=h.get_script_jedas4_k$(),n.copy$default_iut0xk_k$(nt,nt,nt,nt,nt,nt,nt,nt,nt,nt,nt,nt,nt,nt,k,c,h,"","",nt,-1,null));l.add_utx5q5_k$(k)}return l}function Io(e,t,_){_=!!_||!et(t);_&<(" - "+ts()+e+":"+W()+" "+(et(t)?"(empty)":t),[])}function Do(e,t,_){Io(e,t,_=_!==nt&&_)}function Po(t){var e;try{e=M1(t)}catch(e){throw e instanceof tt?new Bh("Invalid language code `"+t+"`."):e}return e}function Ko(e){return yn(e,":")}function Ro(e,t){this.this$0__1=e,s.call(this,t)}function Bo(e,t){function _(e,t){return n.invoke_d9fzmj_k$(e,t)}var n=new Ro(e,t);return _.$arity=1,_}function Ao(e,t,_,n,i,r,s,a,o,l,u,c){this.url_1=e,this.configFile_1=t,this.keyFile_1=_,this.writeKey_1=n,this.readKey_1=i,this.groups_1=r,this.extraParams_1=s,this.quiet_1=a,this.simulate_1=o,this.failOnMissingGroups_1=l,this.tag_1=u,this.inputBranch_1=c}function Uo(e,t){this.this$0__1=e,s.call(this,t)}function Vo(e,t){function _(e,t){return n.invoke_d9fzmj_k$(e,t)}var n=new Uo(e,t);return _.$arity=1,_}function Oo(e,t,_,n,i,r,s,a,o){a=a===nt?st():a,this.url_1=e,this.configFile_1=t,this.keyFile_1=_,this.writeKey_1=n,this.readKey_1=i,this.actionUrl_1=r,this.file_1=s,this.additionalHeaders_1=a,this.inputBranch_1=o}function Mo(e,t){this.this$0__1=e,s.call(this,t)}function Jo(e,t){function _(e,t){return n.invoke_d9fzmj_k$(e,t)}var n=new Mo(e,t);return _.$arity=1,_}function Ho(e,t,_,n,i,r){this.url_1=e,this.configFile_1=t,this.keyFile_1=_,this.writeKey_1=n,this.readKey_1=i,this.inputBranch_1=r}function Xo(e,t,_){var n=nn();n.append_22ad7x_k$(_),n.append_22ad7x_k$(es()),n.append_22ad7x_k$(qn(e.get_code_wok7xy_k$(),20,G(32))),n.append_22ad7x_k$(W()),n.append_22ad7x_k$(Cn((e.get_total_iz6wij_k$()-e.get_current_jwi6j4_k$()|0).toString(),16,G(32))),n.append_22ad7x_k$(Cn(e.get_review_iyht9d_k$().toString(),16,G(32))),n.append_22ad7x_k$(Cn(e.get_needImprovement_j80j2h_k$().toString(),16,G(32))),n.append_22ad7x_k$(Cn(e.get_sourceChanged_cki2gg_k$().toString(),16,G(32))),e.get_published_wg9pad_k$()?n.append_22ad7x_k$(Zr()+Cn("Yes",13,G