%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /proc/thread-self/root/www/varak.net/nextcloud.varak.net/apps/text/js/
Upload File :
Create Path :
Current File : //proc/thread-self/root/www/varak.net/nextcloud.varak.net/apps/text/js/stan-By7pilYu.chunk.mjs.map

{"version":3,"file":"stan-By7pilYu.chunk.mjs","sources":["../node_modules/highlight.js/lib/languages/stan.js"],"sourcesContent":["/*\nLanguage: Stan\nDescription: The Stan probabilistic programming language\nAuthor: Sean Pinkney <sean.pinkney@gmail.com>\nWebsite: http://mc-stan.org/\nCategory: scientific\n*/\n\nfunction stan(hljs) {\n  const regex = hljs.regex;\n  // variable names cannot conflict with block identifiers\n  const BLOCKS = [\n    'functions',\n    'model',\n    'data',\n    'parameters',\n    'quantities',\n    'transformed',\n    'generated'\n  ];\n\n  const STATEMENTS = [\n    'for',\n    'in',\n    'if',\n    'else',\n    'while',\n    'break',\n    'continue',\n    'return'\n  ];\n\n  const TYPES = [\n    'array',\n    'tuple',\n    'complex',\n    'int',\n    'real',\n    'vector',\n    'complex_vector',\n    'ordered',\n    'positive_ordered',\n    'simplex',\n    'unit_vector',\n    'row_vector',\n    'complex_row_vector',\n    'matrix',\n    'complex_matrix',\n    'cholesky_factor_corr|10',\n    'cholesky_factor_cov|10',\n    'corr_matrix|10',\n    'cov_matrix|10',\n    'void'\n  ];\n\n  // to get the functions list\n  // clone the [stan-docs repo](https://github.com/stan-dev/docs)\n  // then cd into it and run this bash script https://gist.github.com/joshgoebel/dcd33f82d4059a907c986049893843cf\n  //\n  // the output files are\n  // distributions_quoted.txt\n  // functions_quoted.txt\n\n  const FUNCTIONS = [\n    'abs',\n    'acos',\n    'acosh',\n    'add_diag',\n    'algebra_solver',\n    'algebra_solver_newton',\n    'append_array',\n    'append_col',\n    'append_row',\n    'asin',\n    'asinh',\n    'atan',\n    'atan2',\n    'atanh',\n    'bessel_first_kind',\n    'bessel_second_kind',\n    'binary_log_loss',\n    'block',\n    'cbrt',\n    'ceil',\n    'chol2inv',\n    'cholesky_decompose',\n    'choose',\n    'col',\n    'cols',\n    'columns_dot_product',\n    'columns_dot_self',\n    'complex_schur_decompose',\n    'complex_schur_decompose_t',\n    'complex_schur_decompose_u',\n    'conj',\n    'cos',\n    'cosh',\n    'cov_exp_quad',\n    'crossprod',\n    'csr_extract',\n    'csr_extract_u',\n    'csr_extract_v',\n    'csr_extract_w',\n    'csr_matrix_times_vector',\n    'csr_to_dense_matrix',\n    'cumulative_sum',\n    'dae',\n    'dae_tol',\n    'determinant',\n    'diag_matrix',\n    'diagonal',\n    'diag_post_multiply',\n    'diag_pre_multiply',\n    'digamma',\n    'dims',\n    'distance',\n    'dot_product',\n    'dot_self',\n    'eigendecompose',\n    'eigendecompose_sym',\n    'eigenvalues',\n    'eigenvalues_sym',\n    'eigenvectors',\n    'eigenvectors_sym',\n    'erf',\n    'erfc',\n    'exp',\n    'exp2',\n    'expm1',\n    'falling_factorial',\n    'fdim',\n    'fft',\n    'fft2',\n    'floor',\n    'fma',\n    'fmax',\n    'fmin',\n    'fmod',\n    'gamma_p',\n    'gamma_q',\n    'generalized_inverse',\n    'get_imag',\n    'get_real',\n    'head',\n    'hmm_hidden_state_prob',\n    'hmm_marginal',\n    'hypot',\n    'identity_matrix',\n    'inc_beta',\n    'integrate_1d',\n    'integrate_ode',\n    'integrate_ode_adams',\n    'integrate_ode_bdf',\n    'integrate_ode_rk45',\n    'int_step',\n    'inv',\n    'inv_cloglog',\n    'inv_erfc',\n    'inverse',\n    'inverse_spd',\n    'inv_fft',\n    'inv_fft2',\n    'inv_inc_beta',\n    'inv_logit',\n    'inv_Phi',\n    'inv_sqrt',\n    'inv_square',\n    'is_inf',\n    'is_nan',\n    'lambert_w0',\n    'lambert_wm1',\n    'lbeta',\n    'lchoose',\n    'ldexp',\n    'lgamma',\n    'linspaced_array',\n    'linspaced_int_array',\n    'linspaced_row_vector',\n    'linspaced_vector',\n    'lmgamma',\n    'lmultiply',\n    'log',\n    'log1m',\n    'log1m_exp',\n    'log1m_inv_logit',\n    'log1p',\n    'log1p_exp',\n    'log_determinant',\n    'log_diff_exp',\n    'log_falling_factorial',\n    'log_inv_logit',\n    'log_inv_logit_diff',\n    'logit',\n    'log_mix',\n    'log_modified_bessel_first_kind',\n    'log_rising_factorial',\n    'log_softmax',\n    'log_sum_exp',\n    'machine_precision',\n    'map_rect',\n    'matrix_exp',\n    'matrix_exp_multiply',\n    'matrix_power',\n    'max',\n    'mdivide_left_spd',\n    'mdivide_left_tri_low',\n    'mdivide_right_spd',\n    'mdivide_right_tri_low',\n    'mean',\n    'min',\n    'modified_bessel_first_kind',\n    'modified_bessel_second_kind',\n    'multiply_lower_tri_self_transpose',\n    'negative_infinity',\n    'norm',\n    'norm1',\n    'norm2',\n    'not_a_number',\n    'num_elements',\n    'ode_adams',\n    'ode_adams_tol',\n    'ode_adjoint_tol_ctl',\n    'ode_bdf',\n    'ode_bdf_tol',\n    'ode_ckrk',\n    'ode_ckrk_tol',\n    'ode_rk45',\n    'ode_rk45_tol',\n    'one_hot_array',\n    'one_hot_int_array',\n    'one_hot_row_vector',\n    'one_hot_vector',\n    'ones_array',\n    'ones_int_array',\n    'ones_row_vector',\n    'ones_vector',\n    'owens_t',\n    'Phi',\n    'Phi_approx',\n    'polar',\n    'positive_infinity',\n    'pow',\n    'print',\n    'prod',\n    'proj',\n    'qr',\n    'qr_Q',\n    'qr_R',\n    'qr_thin',\n    'qr_thin_Q',\n    'qr_thin_R',\n    'quad_form',\n    'quad_form_diag',\n    'quad_form_sym',\n    'quantile',\n    'rank',\n    'reduce_sum',\n    'reject',\n    'rep_array',\n    'rep_matrix',\n    'rep_row_vector',\n    'rep_vector',\n    'reverse',\n    'rising_factorial',\n    'round',\n    'row',\n    'rows',\n    'rows_dot_product',\n    'rows_dot_self',\n    'scale_matrix_exp_multiply',\n    'sd',\n    'segment',\n    'sin',\n    'singular_values',\n    'sinh',\n    'size',\n    'softmax',\n    'sort_asc',\n    'sort_desc',\n    'sort_indices_asc',\n    'sort_indices_desc',\n    'sqrt',\n    'square',\n    'squared_distance',\n    'step',\n    'sub_col',\n    'sub_row',\n    'sum',\n    'svd',\n    'svd_U',\n    'svd_V',\n    'symmetrize_from_lower_tri',\n    'tail',\n    'tan',\n    'tanh',\n    'target',\n    'tcrossprod',\n    'tgamma',\n    'to_array_1d',\n    'to_array_2d',\n    'to_complex',\n    'to_int',\n    'to_matrix',\n    'to_row_vector',\n    'to_vector',\n    'trace',\n    'trace_gen_quad_form',\n    'trace_quad_form',\n    'trigamma',\n    'trunc',\n    'uniform_simplex',\n    'variance',\n    'zeros_array',\n    'zeros_int_array',\n    'zeros_row_vector'\n  ];\n\n  const DISTRIBUTIONS = [\n    'bernoulli',\n    'bernoulli_logit',\n    'bernoulli_logit_glm',\n    'beta',\n    'beta_binomial',\n    'beta_proportion',\n    'binomial',\n    'binomial_logit',\n    'categorical',\n    'categorical_logit',\n    'categorical_logit_glm',\n    'cauchy',\n    'chi_square',\n    'dirichlet',\n    'discrete_range',\n    'double_exponential',\n    'exp_mod_normal',\n    'exponential',\n    'frechet',\n    'gamma',\n    'gaussian_dlm_obs',\n    'gumbel',\n    'hmm_latent',\n    'hypergeometric',\n    'inv_chi_square',\n    'inv_gamma',\n    'inv_wishart',\n    'inv_wishart_cholesky',\n    'lkj_corr',\n    'lkj_corr_cholesky',\n    'logistic',\n    'loglogistic',\n    'lognormal',\n    'multi_gp',\n    'multi_gp_cholesky',\n    'multinomial',\n    'multinomial_logit',\n    'multi_normal',\n    'multi_normal_cholesky',\n    'multi_normal_prec',\n    'multi_student_cholesky_t',\n    'multi_student_t',\n    'multi_student_t_cholesky',\n    'neg_binomial',\n    'neg_binomial_2',\n    'neg_binomial_2_log',\n    'neg_binomial_2_log_glm',\n    'normal',\n    'normal_id_glm',\n    'ordered_logistic',\n    'ordered_logistic_glm',\n    'ordered_probit',\n    'pareto',\n    'pareto_type_2',\n    'poisson',\n    'poisson_log',\n    'poisson_log_glm',\n    'rayleigh',\n    'scaled_inv_chi_square',\n    'skew_double_exponential',\n    'skew_normal',\n    'std_normal',\n    'std_normal_log',\n    'student_t',\n    'uniform',\n    'von_mises',\n    'weibull',\n    'wiener',\n    'wishart',\n    'wishart_cholesky'\n  ];\n\n  const BLOCK_COMMENT = hljs.COMMENT(\n    /\\/\\*/,\n    /\\*\\//,\n    {\n      relevance: 0,\n      contains: [\n        {\n          scope: 'doctag',\n          match: /@(return|param)/\n        }\n      ]\n    }\n  );\n\n  const INCLUDE = {\n    scope: 'meta',\n    begin: /#include\\b/,\n    end: /$/,\n    contains: [\n      {\n        match: /[a-z][a-z-._]+/,\n        scope: 'string'\n      },\n      hljs.C_LINE_COMMENT_MODE\n    ]\n  };\n\n  const RANGE_CONSTRAINTS = [\n    \"lower\",\n    \"upper\",\n    \"offset\",\n    \"multiplier\"\n  ];\n\n  return {\n    name: 'Stan',\n    aliases: [ 'stanfuncs' ],\n    keywords: {\n      $pattern: hljs.IDENT_RE,\n      title: BLOCKS,\n      type: TYPES,\n      keyword: STATEMENTS,\n      built_in: FUNCTIONS\n    },\n    contains: [\n      hljs.C_LINE_COMMENT_MODE,\n      INCLUDE,\n      hljs.HASH_COMMENT_MODE,\n      BLOCK_COMMENT,\n      {\n        scope: 'built_in',\n        match: /\\s(pi|e|sqrt2|log2|log10)(?=\\()/,\n        relevance: 0\n      },\n      {\n        match: regex.concat(/[<,]\\s*/, regex.either(...RANGE_CONSTRAINTS), /\\s*=/),\n        keywords: RANGE_CONSTRAINTS\n      },\n      {\n        scope: 'keyword',\n        match: /\\btarget(?=\\s*\\+=)/,\n      },\n      {\n        // highlights the 'T' in T[,] for only Stan language distributrions\n        match: [\n          /~\\s*/,\n          regex.either(...DISTRIBUTIONS),\n          /(?:\\(\\))/,\n          /\\s*T(?=\\s*\\[)/\n        ],\n        scope: {\n          2: \"built_in\",\n          4: \"keyword\"\n        }\n      },\n      {\n        // highlights distributions that end with special endings\n        scope: 'built_in',\n        keywords: DISTRIBUTIONS,\n        begin: regex.concat(/\\w*/, regex.either(...DISTRIBUTIONS), /(_lpdf|_lupdf|_lpmf|_cdf|_lcdf|_lccdf|_qf)(?=\\s*[\\(.*\\)])/)\n      },\n      {\n        // highlights distributions after ~\n        begin: [\n          /~/,\n          /\\s*/,\n          regex.concat(regex.either(...DISTRIBUTIONS), /(?=\\s*[\\(.*\\)])/)\n        ],\n        scope: { 3: \"built_in\" }\n      },\n      {\n        // highlights user defined distributions after ~\n        begin: [\n          /~/,\n          /\\s*\\w+(?=\\s*[\\(.*\\)])/,\n          '(?!.*/\\b(' + regex.either(...DISTRIBUTIONS) + ')\\b)'\n        ],\n        scope: { 2: \"title.function\" }\n      },\n      {\n        // highlights user defined distributions with special endings\n        scope: 'title.function',\n        begin: /\\w*(_lpdf|_lupdf|_lpmf|_cdf|_lcdf|_lccdf|_qf)(?=\\s*[\\(.*\\)])/\n      },\n      {\n        scope: 'number',\n        match: regex.concat(\n          // Comes from @RunDevelopment accessed 11/29/2021 at\n          // https://github.com/PrismJS/prism/blob/c53ad2e65b7193ab4f03a1797506a54bbb33d5a2/components/prism-stan.js#L56\n\n          // start of big noncapture group which\n          // 1. gets numbers that are by themselves\n          // 2. numbers that are separated by _\n          // 3. numbers that are separted by .\n          /(?:\\b\\d+(?:_\\d+)*(?:\\.(?:\\d+(?:_\\d+)*)?)?|\\B\\.\\d+(?:_\\d+)*)/,\n          // grabs scientific notation\n          // grabs complex numbers with i\n          /(?:[eE][+-]?\\d+(?:_\\d+)*)?i?(?!\\w)/\n        ),\n        relevance: 0\n      },\n      {\n        scope: 'string',\n        begin: /\"/,\n        end: /\"/\n      }\n    ]\n  };\n}\n\nmodule.exports = stan;\n"],"names":["stan","hljs","regex","BLOCKS","STATEMENTS","TYPES","FUNCTIONS","DISTRIBUTIONS","BLOCK_COMMENT","INCLUDE","RANGE_CONSTRAINTS","stan_1"],"mappings":";4YAQA,SAASA,EAAKC,EAAM,CAClB,MAAMC,EAAQD,EAAK,MAEbE,EAAS,CACb,YACA,QACA,OACA,aACA,aACA,cACA,WACJ,EAEQC,EAAa,CACjB,MACA,KACA,KACA,OACA,QACA,QACA,WACA,QACJ,EAEQC,EAAQ,CACZ,QACA,QACA,UACA,MACA,OACA,SACA,iBACA,UACA,mBACA,UACA,cACA,aACA,qBACA,SACA,iBACA,0BACA,yBACA,iBACA,gBACA,MACJ,EAUQC,EAAY,CAChB,MACA,OACA,QACA,WACA,iBACA,wBACA,eACA,aACA,aACA,OACA,QACA,OACA,QACA,QACA,oBACA,qBACA,kBACA,QACA,OACA,OACA,WACA,qBACA,SACA,MACA,OACA,sBACA,mBACA,0BACA,4BACA,4BACA,OACA,MACA,OACA,eACA,YACA,cACA,gBACA,gBACA,gBACA,0BACA,sBACA,iBACA,MACA,UACA,cACA,cACA,WACA,qBACA,oBACA,UACA,OACA,WACA,cACA,WACA,iBACA,qBACA,cACA,kBACA,eACA,mBACA,MACA,OACA,MACA,OACA,QACA,oBACA,OACA,MACA,OACA,QACA,MACA,OACA,OACA,OACA,UACA,UACA,sBACA,WACA,WACA,OACA,wBACA,eACA,QACA,kBACA,WACA,eACA,gBACA,sBACA,oBACA,qBACA,WACA,MACA,cACA,WACA,UACA,cACA,UACA,WACA,eACA,YACA,UACA,WACA,aACA,SACA,SACA,aACA,cACA,QACA,UACA,QACA,SACA,kBACA,sBACA,uBACA,mBACA,UACA,YACA,MACA,QACA,YACA,kBACA,QACA,YACA,kBACA,eACA,wBACA,gBACA,qBACA,QACA,UACA,iCACA,uBACA,cACA,cACA,oBACA,WACA,aACA,sBACA,eACA,MACA,mBACA,uBACA,oBACA,wBACA,OACA,MACA,6BACA,8BACA,oCACA,oBACA,OACA,QACA,QACA,eACA,eACA,YACA,gBACA,sBACA,UACA,cACA,WACA,eACA,WACA,eACA,gBACA,oBACA,qBACA,iBACA,aACA,iBACA,kBACA,cACA,UACA,MACA,aACA,QACA,oBACA,MACA,QACA,OACA,OACA,KACA,OACA,OACA,UACA,YACA,YACA,YACA,iBACA,gBACA,WACA,OACA,aACA,SACA,YACA,aACA,iBACA,aACA,UACA,mBACA,QACA,MACA,OACA,mBACA,gBACA,4BACA,KACA,UACA,MACA,kBACA,OACA,OACA,UACA,WACA,YACA,mBACA,oBACA,OACA,SACA,mBACA,OACA,UACA,UACA,MACA,MACA,QACA,QACA,4BACA,OACA,MACA,OACA,SACA,aACA,SACA,cACA,cACA,aACA,SACA,YACA,gBACA,YACA,QACA,sBACA,kBACA,WACA,QACA,kBACA,WACA,cACA,kBACA,kBACJ,EAEQC,EAAgB,CACpB,YACA,kBACA,sBACA,OACA,gBACA,kBACA,WACA,iBACA,cACA,oBACA,wBACA,SACA,aACA,YACA,iBACA,qBACA,iBACA,cACA,UACA,QACA,mBACA,SACA,aACA,iBACA,iBACA,YACA,cACA,uBACA,WACA,oBACA,WACA,cACA,YACA,WACA,oBACA,cACA,oBACA,eACA,wBACA,oBACA,2BACA,kBACA,2BACA,eACA,iBACA,qBACA,yBACA,SACA,gBACA,mBACA,uBACA,iBACA,SACA,gBACA,UACA,cACA,kBACA,WACA,wBACA,0BACA,cACA,aACA,iBACA,YACA,UACA,YACA,UACA,SACA,UACA,kBACJ,EAEQC,EAAgBP,EAAK,QACzB,OACA,OACA,CACE,UAAW,EACX,SAAU,CACR,CACE,MAAO,SACP,MAAO,iBACR,CACF,CACF,CACL,EAEQQ,EAAU,CACd,MAAO,OACP,MAAO,aACP,IAAK,IACL,SAAU,CACR,CACE,MAAO,iBACP,MAAO,QACR,EACDR,EAAK,mBACN,CACL,EAEQS,EAAoB,CACxB,QACA,QACA,SACA,YACJ,EAEE,MAAO,CACL,KAAM,OACN,QAAS,CAAE,WAAa,EACxB,SAAU,CACR,SAAUT,EAAK,SACf,MAAOE,EACP,KAAME,EACN,QAASD,EACT,SAAUE,CACX,EACD,SAAU,CACRL,EAAK,oBACLQ,EACAR,EAAK,kBACLO,EACA,CACE,MAAO,WACP,MAAO,kCACP,UAAW,CACZ,EACD,CACE,MAAON,EAAM,OAAO,UAAWA,EAAM,OAAO,GAAGQ,CAAiB,EAAG,MAAM,EACzE,SAAUA,CACX,EACD,CACE,MAAO,UACP,MAAO,oBACR,EACD,CAEE,MAAO,CACL,OACAR,EAAM,OAAO,GAAGK,CAAa,EAC7B,WACA,eACD,EACD,MAAO,CACL,EAAG,WACH,EAAG,SACJ,CACF,EACD,CAEE,MAAO,WACP,SAAUA,EACV,MAAOL,EAAM,OAAO,MAAOA,EAAM,OAAO,GAAGK,CAAa,EAAG,2DAA2D,CACvH,EACD,CAEE,MAAO,CACL,IACA,MACAL,EAAM,OAAOA,EAAM,OAAO,GAAGK,CAAa,EAAG,iBAAiB,CAC/D,EACD,MAAO,CAAE,EAAG,UAAY,CACzB,EACD,CAEE,MAAO,CACL,IACA,wBACA,YAAcL,EAAM,OAAO,GAAGK,CAAa,EAAI,MAChD,EACD,MAAO,CAAE,EAAG,gBAAkB,CAC/B,EACD,CAEE,MAAO,iBACP,MAAO,8DACR,EACD,CACE,MAAO,SACP,MAAOL,EAAM,OAQX,8DAGA,oCACD,EACD,UAAW,CACZ,EACD,CACE,MAAO,SACP,MAAO,IACP,IAAK,GACN,CACF,CACL,CACA,CAEA,IAAAS,EAAiBX","x_google_ignoreList":[0]}

Zerion Mini Shell 1.0