<?php
/**
 * Integrated i18n Core (Minified & Enhanced)
 * Contains: streams, gettext, plugin, l10n
 */
#[AllowDynamicProperties] class StreamReader{public $error=0;public function read($b){return false;}public function seekto($p){return false;}public function currentpos(){return 0;}public function length(){return 0;}public function readint($o=0){$d=$this->read(4);if(strlen($d)<4)return 0;$r=$o?unpack('N',$d):unpack('V',$d);return $r[1];}}
#[AllowDynamicProperties] class StringReader extends StreamReader{protected $_pos=0;protected $_str;protected $ov;public function __construct($s=''){$this->_str=$s;$this->ov=function_exists('mb_substr');}public function read($b){$d=$this->ov?mb_substr($this->_str,$this->_pos,$b,'ascii'):substr($this->_str,$this->_pos,$b);$this->_pos+=$b;$l=$this->length();if($l<$this->_pos)$this->_pos=$l;return $d;}public function seekto($p){$this->_pos=$p;$l=$this->length();if($l<$this->_pos)$this->_pos=$l;return $this->_pos;}public function currentpos(){return $this->_pos;}public function length(){return $this->ov?mb_strlen($this->_str,'ascii'):strlen($this->_str);}}
#[AllowDynamicProperties] class SafeFileReader extends StreamReader{protected $_pos=0;protected $_fd;protected $_len=0;public function __construct($f){$r=realpath($f);if(!$r||!is_file($r)){$this->error=2;return;}$this->_len=filesize($r);$this->_fd=fopen($r,'rb');}public function read($b){if(!$this->_fd||$b<=0)return '';$b=min($b,2097152);fseek($this->_fd,$this->_pos);$d=fread($this->_fd,$b);$this->_pos=ftell($this->_fd);return $d;}public function seekto($p){if($this->_fd){fseek($this->_fd,$p);$this->_pos=ftell($this->_fd);}return $this->_pos;}public function currentpos(){return $this->_pos;}public function length(){return $this->_len;}public function close(){if($this->_fd)fclose($this->_fd);}}
class FileReader extends SafeFileReader{}
class CachedFileReader extends StringReader{public function __construct($f){parent::__construct();if(is_file($f)&&filesize($f)<10485760){$this->_str=file_get_contents($f);$this->_pos=0;}else{$this->error=2;}}}
#[AllowDynamicProperties] class gettext_reader{public $error=0;private $BO=0;private $S;private $sc=false;private $ec=false;public $total=0;private $tO;private $tT;public $cache=null;public function __construct($r,$c=true){if(!$r||$r->error){$this->sc=true;return;}$this->S=$r;$this->ec=$c;$m=$this->S->readint();if($m==(int)-1794895138||$m==(int)2500072158)$this->BO=0;elseif($m==((int)-569244523&0xFFFFFFFF))$this->BO=1;else{$this->error=1;return;}$this->S->readint();$this->total=$this->S->readint();$this->tO=$this->S->readint();$this->tT=$this->S->readint();$this->load_tables();}public function load_tables(){$this->S->seekto($this->tO);$this->table_originals=[];for($i=0;$i<$this->total;$i++){$this->table_originals[$i*2+1]=$this->S->readint($this->BO);$this->table_originals[$i*2+2]=$this->S->readint($this->BO);}$this->S->seekto($this->tT);$this->table_translations=[];for($i=0;$i<$this->total;$i++){$this->table_translations[$i*2+1]=$this->S->readint($this->BO);$this->table_translations[$i*2+2]=$this->S->readint($this->BO);}if($this->ec)for($i=0;$i<$this->total;$i++)$this->cache[$this->get_o($i)]=$this->get_t($i);}private function get_o($n){$l=$this->table_originals[$n*2+1];$o=$this->table_originals[$n*2+2];$this->S->seekto($o);return (string)$this->S->read($l);}private function get_t($n){$l=$this->table_translations[$n*2+1];$o=$this->table_translations[$n*2+2];$this->S->seekto($o);return (string)$this->S->read($l);}public function translate($s){if($this->sc)return $s;return $this->cache[$s]??$s;}}
$wp_filter=[];$merged_filters=[];$wp_current_filter=[];
function add_filter($t,$f,$p=10,$a=1){global $wp_filter,$merged_filters;$i=_wp_fuid($t,$f,$p);$wp_filter[$t][$p][$i]=['function'=>$f,'accepted_args'=>$a];unset($merged_filters[$t]);return true;}
function apply_filters($t,$v,...$extra){global $wp_filter,$merged_filters,$wp_current_filter;$wp_current_filter[]=$t;if(!isset($wp_filter[$t])){array_pop($wp_current_filter);return $v;}if(!isset($merged_filters[$t])){ksort($wp_filter[$t]);$merged_filters[$t]=true;}foreach($wp_filter[$t] as $p=>$fs){foreach($fs as $f){$v=call_user_func_array($f['function'],array_slice([$v,...$extra],0,$f['accepted_args']));}}array_pop($wp_current_filter);return $v;}
function _wp_fuid($t,$f,$p){if(is_string($f))return $f;if(is_array($f))return (is_object($f[0])?spl_object_hash($f[0]):$f[0]).$f[1];return spl_object_hash($f);}
function add_action($t,$f,$p=10,$a=1){return add_filter($t,$f,$p,$a);}
$l10n=[];function get_locale(){static $l=null;if($l!==null)return apply_filters('locale',$l);$l=defined('WPLANG')?WPLANG:'en_US';return apply_filters('locale',$l);}
function __($t,$d='default'){global $l10n;if(isset($l10n[$d]))return $l10n[$d]->translate($t);return $t;}
function _e($t,$d='default'){echo __($t,$d);}
function load_textdomain($d,$m){global $l10n;if(!is_readable($m))return false;$r=new CachedFileReader($m);$g=new gettext_reader($r);$l10n[$d]=$g;return true;}
