Find this useful? Enter your email to receive occasional updates for securing PHP code.

Signing you up...

Thank you for signing up!

PHP Decode

<?php /** * WooCommerce Order Functions * * Functions for order specific things. * * ..

Decoded Output download

<?php /**
 * WooCommerce Order Functions
 *
 * Functions for order specific things.
 *
 * @package WooCommerce\Functions
 * @version 3.4.0
 */ use Automattic\WooCommerce\Internal\DataStores\Orders\DataSynchronizer;use Automattic\WooCommerce\Utilities\StringUtil;defined(base64_decode('QUJTUEFUSA=='))||exit;/**
 * Standard way of retrieving orders based on certain parameters.
 *
 * This function should be used for order retrieval so that when we move to
 * custom tables, functions still work.
 *
 * Args and usage: https://github.com/woocommerce/woocommerce/wiki/wc_get_orders-and-WC_Order_Query
 *
 * @since  2.6.0
 * @param  array $args Array of args (above).
 * @return WC_Order[]|stdClass Number of pages and an array of order objects if
 *                             paginate is true, or just an array of values.
 */ function lrvj0($ykxe21){$irkt22=array(base64_decode('bnVtYmVycG9zdHM=')=>base64_decode('bGltaXQ='),base64_decode('cG9zdF90eXBl')=>base64_decode('dHlwZQ=='),base64_decode('cG9zdF9zdGF0dXM=')=>base64_decode('c3RhdHVz'),base64_decode('cG9zdF9wYXJlbnQ=')=>base64_decode('cGFyZW50'),base64_decode('YXV0aG9y')=>base64_decode('Y3VzdG9tZXI='),base64_decode('ZW1haWw=')=>base64_decode('YmlsbGluZ19lbWFpbA=='),base64_decode('cG9zdHNfcGVyX3BhZ2U=')=>base64_decode('bGltaXQ='),base64_decode('cGFnZWQ=')=>base64_decode('cGFnZQ=='),);foreach($irkt22 as $gjxt23=>$twfg24){if(isset($ykxe21[$gjxt23])){$ykxe21[$twfg24]=$ykxe21[$gjxt23];}}$fxrp25=false;$rent26=false;if(!empty($ykxe21[base64_decode('ZGF0ZV9iZWZvcmU=')])){$axvw27=qzmc28($ykxe21[base64_decode('ZGF0ZV9iZWZvcmU=')]);$fxrp25=strpos($ykxe21[base64_decode('ZGF0ZV9iZWZvcmU=')],base64_decode('Og=='))?$axvw27->okcu29():$axvw27->xzxd2a(base64_decode('WS1tLWQ='));}if(!empty($ykxe21[base64_decode('ZGF0ZV9hZnRlcg==')])){$axvw27=qzmc28($ykxe21[base64_decode('ZGF0ZV9hZnRlcg==')]);$rent26=strpos($ykxe21[base64_decode('ZGF0ZV9hZnRlcg==')],base64_decode('Og=='))?$axvw27->okcu29():$axvw27->xzxd2a(base64_decode('WS1tLWQ='));}if($fxrp25&&$rent26){$ykxe21[base64_decode('ZGF0ZV9jcmVhdGVk')]=$rent26.base64_decode('Li4u').$fxrp25;}elseif($fxrp25){$ykxe21[base64_decode('ZGF0ZV9jcmVhdGVk')]=base64_decode('PA==').$fxrp25;}elseif($rent26){$ykxe21[base64_decode('ZGF0ZV9jcmVhdGVk')]=base64_decode('Pg==').$rent26;}$hzfe2b=new azlf2c($ykxe21);return $hzfe2b->dlkj2d();}/**
 * Main function for returning orders, uses the WC_Order_Factory class.
 *
 * @since  2.2
 *
 * @param mixed $the_order       Post object or post ID of the order.
 *
 * @return bool|WC_Order|WC_Order_Refund
 */ function xtlz1($rahy2e=false){if(!upop2f(base64_decode('d29vY29tbWVyY2VfYWZ0ZXJfcmVnaXN0ZXJfcG9zdF90eXBl'))){kpyq30(__FUNCTION__,base64_decode('d2NfZ2V0X29yZGVyIHNob3VsZCBub3QgYmUgY2FsbGVkIGJlZm9yZSBwb3N0IHR5cGVzIGFyZSByZWdpc3RlcmVkICh3b29jb21tZXJjZV9hZnRlcl9yZWdpc3Rlcl9wb3N0X3R5cGUgYWN0aW9uKQ=='),base64_decode('Mi41'));return false;}return begw31()->$grnl32->hygy33($rahy2e);}/**
 * Get all order statuses.
 *
 * @since 2.2
 * @used-by WC_Order::set_status
 * @return array
 */ function xbfn2(){$zhrx34=array(base64_decode('d2MtcGVuZGluZw==')=>tkkl35(base64_decode('UGVuZGluZyBwYXltZW50'),base64_decode('T3JkZXIgc3RhdHVz'),base64_decode('d29vY29tbWVyY2U=')),base64_decode('d2MtcHJvY2Vzc2luZw==')=>tkkl35(base64_decode('UHJvY2Vzc2luZw=='),base64_decode('T3JkZXIgc3RhdHVz'),base64_decode('d29vY29tbWVyY2U=')),base64_decode('d2Mtb24taG9sZA==')=>tkkl35(base64_decode('T24gaG9sZA=='),base64_decode('T3JkZXIgc3RhdHVz'),base64_decode('d29vY29tbWVyY2U=')),base64_decode('d2MtY29tcGxldGVk')=>tkkl35(base64_decode('Q29tcGxldGVk'),base64_decode('T3JkZXIgc3RhdHVz'),base64_decode('d29vY29tbWVyY2U=')),base64_decode('d2MtY2FuY2VsbGVk')=>tkkl35(base64_decode('Q2FuY2VsbGVk'),base64_decode('T3JkZXIgc3RhdHVz'),base64_decode('d29vY29tbWVyY2U=')),base64_decode('d2MtcmVmdW5kZWQ=')=>tkkl35(base64_decode('UmVmdW5kZWQ='),base64_decode('T3JkZXIgc3RhdHVz'),base64_decode('d29vY29tbWVyY2U=')),base64_decode('d2MtZmFpbGVk')=>tkkl35(base64_decode('RmFpbGVk'),base64_decode('T3JkZXIgc3RhdHVz'),base64_decode('d29vY29tbWVyY2U=')),);return uhgm36(base64_decode('d2Nfb3JkZXJfc3RhdHVzZXM='),$zhrx34);}/**
 * See if a string is an order status.
 *
 * @param  string $maybe_status Status, including any wc- prefix.
 * @return bool
 */ function okdj3($jlmn37){$zhrx34=xbfn2();returnisset($zhrx34[$jlmn37]);}/**
 * Get list of statuses which are consider 'paid'.
 *
 * @since  3.0.0
 * @return array
 */ function ptwz4(){return uhgm36(base64_decode('d29vY29tbWVyY2Vfb3JkZXJfaXNfcGFpZF9zdGF0dXNlcw=='),array(base64_decode('cHJvY2Vzc2luZw=='),base64_decode('Y29tcGxldGVk')));}/**
 * Get list of statuses which are consider 'pending payment'.
 *
 * @since  3.6.0
 * @return array
 */ function symg5(){return uhgm36(base64_decode('d29vY29tbWVyY2Vfb3JkZXJfaXNfcGVuZGluZ19zdGF0dXNlcw=='),array(base64_decode('cGVuZGluZw==')));}/**
 * Get the nice name for an order status.
 *
 * @since  2.2
 * @param  string $status Status.
 * @return string
 */ function wjuc6($nshk38){$bgem39=xbfn2();$nshk38=base64_decode('d2Mt')===substr($nshk38,0,3)?substr($nshk38,3):$nshk38;$nshk38=isset($bgem39[base64_decode('d2Mt').$nshk38])?$bgem39[base64_decode('d2Mt').$nshk38]:$nshk38;return $nshk38;}/**
 * Generate an order key with prefix.
 *
 * @since 3.5.4
 * @param string $key Order key without a prefix. By default generates a 13 digit secret.
 * @return string The order key.
 */ function xwek7($orfm3a=''){if(''===$orfm3a){$orfm3a=idlu3b(13,false);}return base64_decode('d2Nf').uhgm36(base64_decode('d29vY29tbWVyY2VfZ2VuZXJhdGVfb3JkZXJfa2V5'),base64_decode('b3JkZXJf').$orfm3a);}/**
 * Finds an Order ID based on an order key.
 *
 * @param string $order_key An order key has generated by.
 * @return int The ID of an order, or 0 if the order could not be found.
 */ function lbnb8($mnmg3c){$dpss3d=WC_Data_Store::qxzy3e(base64_decode('b3JkZXI='));return $dpss3d->huvu3f($mnmg3c);}/**
 * Get all registered order types.
 *
 * @since  2.2
 * @param  string $for Optionally define what you are getting order types for so
 *                     only relevant types are returned.
 *                     e.g. for 'order-meta-boxes', 'order-count'.
 * @return array
 */ function oheo9($ucck40=''){global $ibzq41;if(!is_array($ibzq41)){$ibzq41=array();}$dpdg42=array();switch($ucck40){case base64_decode('b3JkZXItY291bnQ='):foreach($ibzq41 as $egux43=>$ykxe21){if(!$ykxe21[base64_decode('ZXhjbHVkZV9mcm9tX29yZGVyX2NvdW50')]){$dpdg42[]=$egux43;}}break;case base64_decode('b3JkZXItbWV0YS1ib3hlcw=='):foreach($ibzq41 as $egux43=>$ykxe21){if($ykxe21[base64_decode('YWRkX29yZGVyX21ldGFfYm94ZXM=')]){$dpdg42[]=$egux43;}}break;case base64_decode('dmlldy1vcmRlcnM='):foreach($ibzq41 as $egux43=>$ykxe21){if(!$ykxe21[base64_decode('ZXhjbHVkZV9mcm9tX29yZGVyX3ZpZXdz')]){$dpdg42[]=$egux43;}}break;case base64_decode('cmVwb3J0cw=='):foreach($ibzq41 as $egux43=>$ykxe21){if(!$ykxe21[base64_decode('ZXhjbHVkZV9mcm9tX29yZGVyX3JlcG9ydHM=')]){$dpdg42[]=$egux43;}}break;case base64_decode('c2FsZXMtcmVwb3J0cw=='):foreach($ibzq41 as $egux43=>$ykxe21){if(!$ykxe21[base64_decode('ZXhjbHVkZV9mcm9tX29yZGVyX3NhbGVzX3JlcG9ydHM=')]){$dpdg42[]=$egux43;}}break;case base64_decode('b3JkZXItd2ViaG9va3M='):foreach($ibzq41 as $egux43=>$ykxe21){if(!$ykxe21[base64_decode('ZXhjbHVkZV9mcm9tX29yZGVyX3dlYmhvb2tz')]){$dpdg42[]=$egux43;}}break;case base64_decode('Y290LW1pZ3JhdGlvbg=='):foreach($ibzq41 as $egux43=>$ykxe21){if(DataSynchronizer::PLACEHOLDER_ORDER_POST_TYPE!==$egux43){$dpdg42[]=$egux43;}}break;case base64_decode('YWRtaW4tbWVudQ=='):$dpdg42=array_intersect(array_keys($ibzq41),fdnc44(array(base64_decode('c2hvd191aQ==')=>true,base64_decode('c2hvd19pbl9tZW51')=>base64_decode('d29vY29tbWVyY2U='),)));break;default:$dpdg42=array_keys($ibzq41);break;}return uhgm36(base64_decode('d2Nfb3JkZXJfdHlwZXM='),$dpdg42,$ucck40);}/**
 * Get an order type by post type name.
 *
 * @param  string $type Post type name.
 * @return bool|array Details about the order type.
 */ function jloga($egux43){global $ibzq41;if(isset($ibzq41[$egux43])){return $ibzq41[$egux43];}return false;}/**
 * Register order type. Do not use before init.
 *
 * Wrapper for register post type, as well as a method of telling WC which.
 * post types are types of orders, and having them treated as such.
 *
 * $args are passed to register_post_type, but there are a few specific to this function:
 *      - exclude_from_orders_screen (bool) Whether or not this order type also get shown in the main.
 *      orders screen.
 *      - add_order_meta_boxes (bool) Whether or not the order type gets shop_order meta boxes.
 *      - exclude_from_order_count (bool) Whether or not this order type is excluded from counts.
 *      - exclude_from_order_views (bool) Whether or not this order type is visible by customers when.
 *      viewing orders e.g. on the my account page.
 *      - exclude_from_order_reports (bool) Whether or not to exclude this type from core reports.
 *      - exclude_from_order_sales_reports (bool) Whether or not to exclude this type from core sales reports.
 *
 * @since  2.2
 * @see    register_post_type for $args used in that function
 * @param  string $type Post type. (max. 20 characters, can not contain capital letters or spaces).
 * @param  array  $args An array of arguments.
 * @return bool Success or failure
 */ function yhizb($egux43,$ykxe21=array()){if(xmzg45($egux43)){return false;}global $ibzq41;if(!is_array($ibzq41)){$ibzq41=array();}if(iumh46(wosd47($egux43,$ykxe21))){return false;}$ydks48=array(base64_decode('ZXhjbHVkZV9mcm9tX29yZGVyc19zY3JlZW4=')=>false,base64_decode('YWRkX29yZGVyX21ldGFfYm94ZXM=')=>true,base64_decode('ZXhjbHVkZV9mcm9tX29yZGVyX2NvdW50')=>false,base64_decode('ZXhjbHVkZV9mcm9tX29yZGVyX3ZpZXdz')=>false,base64_decode('ZXhjbHVkZV9mcm9tX29yZGVyX3dlYmhvb2tz')=>false,base64_decode('ZXhjbHVkZV9mcm9tX29yZGVyX3JlcG9ydHM=')=>false,base64_decode('ZXhjbHVkZV9mcm9tX29yZGVyX3NhbGVzX3JlcG9ydHM=')=>false,base64_decode('Y2xhc3NfbmFtZQ==')=>base64_decode('V0NfT3JkZXI='),);$ykxe21=array_intersect_key($ykxe21,$ydks48);$ykxe21=hjex49($ykxe21,$ydks48);$ibzq41[$egux43]=$ykxe21;return true;}/**
 * Return the count of processing orders.
 *
 * @return int
 */ function rmuxc(){return waupd(base64_decode('cHJvY2Vzc2luZw=='));}/**
 * Return the orders count of a specific order status.
 *
 * @param string $status Status.
 * @param string $type   (Optional) Order type. Leave empty to include all 'for order-count' order types. @{see wc_get_order_types()}.
 * @return int
 */ function waupd($nshk38,string $egux43=''){$aayt4a=0;$cyja4b=array(base64_decode('ZHJhZnQ='),base64_decode('dHJhc2g='));$ukcw4c=array_merge(array_keys(xbfn2()),$cyja4b);$nshk38=(!in_array($nshk38,$cyja4b,true)&&0!==strpos($nshk38,base64_decode('d2Mt')))?base64_decode('d2Mt').$nshk38:$nshk38;$fwwr4d=oheo9(base64_decode('b3JkZXItY291bnQ='));$egux43=trim($egux43);if(!in_array($nshk38,$ukcw4c,true)||($egux43&&!in_array($egux43,$fwwr4d,true))){return 0;}$ngul4e=WC_Cache_Helper::vhal4f(base64_decode('b3JkZXJz')).$nshk38.$egux43;$npus50=tcib51($ngul4e,base64_decode('Y291bnRz'));if(false!==$npus50){return $npus50;}$jcjz52=$egux43?array($egux43):$fwwr4d;foreach($jcjz52 as $egux43){$dpss3d=WC_Data_Store::qxzy3e(base64_decode('c2hvcF9vcmRlcg==')===$egux43?base64_decode('b3JkZXI='):$egux43);if($dpss3d){$aayt4a+=$dpss3d->xjvl53($nshk38);}}aswc54($ngul4e,$aayt4a,base64_decode('Y291bnRz'));return $aayt4a;}/**
 * Grant downloadable product access to the file identified by $download_id.
 *
 * @param  string         $download_id File identifier.
 * @param  int|WC_Product $product     Product instance or ID.
 * @param  WC_Order       $order       Order data.
 * @param  int            $qty         Quantity purchased.
 * @param  WC_Order_Item  $item        Item of the order.
 * @return int|bool insert id or false on failure.
 */ function lplke($jkyw55,$fwrv56,$unlt57,$xybx58=1,$xwck59=null){if(is_numeric($fwrv56)){$fwrv56=qkui5a($fwrv56);}$wwkm5b=new difo5c();$wwkm5b->nkuy5d($jkyw55);$wwkm5b->fkyr5e($fwrv56->nodk5f());$wwkm5b->lelw60($unlt57->qwty61());$wwkm5b->hcqa62($unlt57->nodk5f());$wwkm5b->mxdi63($unlt57->bdbp64());$wwkm5b->uics65($unlt57->psyo66());$wwkm5b->qgnz67(0>$fwrv56->iodo68()?'':$fwrv56->iodo68()*$xybx58);$wwkm5b->derh69(time());$wwkm5b->dhqv6a(0);$wxbk6b=$fwrv56->lpni6c();if($wxbk6b>0){$qufu6d=$unlt57->owaq6e()?$unlt57->owaq6e()->zsja6f(base64_decode('WS1tLWQ=')):ggkm70(base64_decode('bXlzcWw='),true);$wwkm5b->jxam71(strtotime($qufu6d.base64_decode('ICsg').$wxbk6b.base64_decode('IERBWQ==')));}$wwkm5b=uhgm36(base64_decode('d29vY29tbWVyY2VfZG93bmxvYWRhYmxlX2ZpbGVfcGVybWlzc2lvbg=='),$wwkm5b,$fwrv56,$unlt57,$xybx58,$xwck59);return $wwkm5b->kqnh72();}/**
 * Order Status completed - give downloadable product access to customer.
 *
 * @param int  $order_id Order ID.
 * @param bool $force    Force downloadable permissions.
 */ function laxcf($ebhr73,$pbia74=false){$unlt57=xtlz1($ebhr73);if(!$unlt57||($unlt57->dgor75()->mfrl76($unlt57)&&!$pbia74)){return;}if($unlt57->aqho77(base64_decode('cHJvY2Vzc2luZw=='))&&base64_decode('bm8=')===xuan78(base64_decode('d29vY29tbWVyY2VfZG93bmxvYWRzX2dyYW50X2FjY2Vzc19hZnRlcl9wYXltZW50'))){return;}if(count($unlt57->qepm79())>0){foreach($unlt57->qepm79()as $xwck59){$fwrv56=$xwck59->abcd7a();if($fwrv56&&$fwrv56->ycvg7b()&&$fwrv56->ffbe7c()){$qffz7d=$fwrv56->ungj7e();foreach(array_keys($qffz7d)as $jkyw55){lplke($jkyw55,$fwrv56,$unlt57,$xwck59->kouo7f(),$xwck59);}}}}$unlt57->dgor75()->wzqy80($unlt57,true);fnkf81(base64_decode('d29vY29tbWVyY2VfZ3JhbnRfcHJvZHVjdF9kb3dubG9hZF9wZXJtaXNzaW9ucw=='),$ebhr73);}glta82(base64_decode('d29vY29tbWVyY2Vfb3JkZXJfc3RhdHVzX2NvbXBsZXRlZA=='),base64_decode('d2NfZG93bmxvYWRhYmxlX3Byb2R1Y3RfcGVybWlzc2lvbnM='));glta82(base64_decode('d29vY29tbWVyY2Vfb3JkZXJfc3RhdHVzX3Byb2Nlc3Npbmc='),base64_decode('d2NfZG93bmxvYWRhYmxlX3Byb2R1Y3RfcGVybWlzc2lvbnM='));/**
 * Clear all transients cache for order data.
 *
 * @param int|WC_Order $order Order instance or ID.
 */ function xodd10($unlt57=0){if(is_numeric($unlt57)){$unlt57=xtlz1($unlt57);}$nvuv83=WC_Admin_Reports::vrvi84();$dqgr85=array(base64_decode('d2NfYWRtaW5fcmVwb3J0'),);foreach($nvuv83 as $tmhz86){foreach($tmhz86[base64_decode('cmVwb3J0cw==')]as $fkms87=>$xpgt88){$dqgr85[]=base64_decode('d2NfcmVwb3J0Xw==').$fkms87;}}foreach($dqgr85 as $yuco89){imtk8a($yuco89);}if(is_a($unlt57,base64_decode('V0NfT3JkZXI='))){$ebhr73=$unlt57->nodk5f();rxxv8b($unlt57->qwty61(),base64_decode('X21vbmV5X3NwZW50'));rxxv8b($unlt57->qwty61(),base64_decode('X29yZGVyX2NvdW50'));rxxv8b($unlt57->qwty61(),base64_decode('X2xhc3Rfb3JkZXI='));}else{$ebhr73=0;}WC_Cache_Helper::aeod8c(base64_decode('b3JkZXJz'),true);WC_Cache_Helper::rlzz8d(base64_decode('b3JkZXJz'));fnkf81(base64_decode('d29vY29tbWVyY2VfZGVsZXRlX3Nob3Bfb3JkZXJfdHJhbnNpZW50cw=='),$ebhr73);}/**
 * See if we only ship to billing addresses.
 *
 * @return bool
 */ function qujh11(){return base64_decode('YmlsbGluZ19vbmx5')===xuan78(base64_decode('d29vY29tbWVyY2Vfc2hpcF90b19kZXN0aW5hdGlvbg=='));}/**
 * Create a new order refund programmatically.
 *
 * Returns a new refund object on success which can then be used to add additional data.
 *
 * @since 2.2
 * @throws Exception Throws exceptions when fail to create, but returns WP_Error instead.
 * @param array $args New refund arguments.
 * @return WC_Order_Refund|WP_Error
 */ function fevn12($ykxe21=array()){$oyen8e=array(base64_decode('YW1vdW50')=>0,base64_decode('cmVhc29u')=>null,base64_decode('b3JkZXJfaWQ=')=>0,base64_decode('cmVmdW5kX2lk')=>0,base64_decode('bGluZV9pdGVtcw==')=>array(),base64_decode('cmVmdW5kX3BheW1lbnQ=')=>false,base64_decode('cmVzdG9ja19pdGVtcw==')=>false,);try{$ykxe21=hjex49($ykxe21,$oyen8e);$unlt57=xtlz1($ykxe21[base64_decode('b3JkZXJfaWQ=')]);if(!$unlt57){throw new smun8f(fblw90(base64_decode('SW52YWxpZCBvcmRlciBJRC4='),base64_decode('d29vY29tbWVyY2U=')));}$jqej91=$unlt57->shof92();$lxep93=$unlt57->lqpw94();$qjqq95=0;$ctrt96=new cioj97($ykxe21[base64_decode('cmVmdW5kX2lk')]);if(0>$ykxe21[base64_decode('YW1vdW50')]||$ykxe21[base64_decode('YW1vdW50')]>$jqej91){throw new smun8f(fblw90(base64_decode('SW52YWxpZCByZWZ1bmQgYW1vdW50Lg=='),base64_decode('d29vY29tbWVyY2U=')));}$ctrt96->mazc98($unlt57->xhgz99());$ctrt96->dnbk9a($ykxe21[base64_decode('YW1vdW50')]);$ctrt96->ucuy9b(geny9c($ykxe21[base64_decode('b3JkZXJfaWQ=')]));$ctrt96->rdkk9d(tpcy9e()?tpcy9e():1);$ctrt96->wudw9f($unlt57->wxzza0());if(!is_null($ykxe21[base64_decode('cmVhc29u')])){$ctrt96->uqsba1($ykxe21[base64_decode('cmVhc29u')]);}if(is_array($ykxe21[base64_decode('bGluZV9pdGVtcw==')])&&count($ykxe21[base64_decode('bGluZV9pdGVtcw==')])>0){$lhafa2=$unlt57->qepm79(array(base64_decode('bGluZV9pdGVt'),base64_decode('ZmVl'),base64_decode('c2hpcHBpbmc=')));foreach($lhafa2 as $oyrea3=>$xwck59){if(!isset($ykxe21[base64_decode('bGluZV9pdGVtcw==')][$oyrea3])){continue;}$xybx58=isset($ykxe21[base64_decode('bGluZV9pdGVtcw==')][$oyrea3][base64_decode('cXR5')])?$ykxe21[base64_decode('bGluZV9pdGVtcw==')][$oyrea3][base64_decode('cXR5')]:0;$ecvza4=$ykxe21[base64_decode('bGluZV9pdGVtcw==')][$oyrea3][base64_decode('cmVmdW5kX3RvdGFs')];$xnyia5=isset($ykxe21[base64_decode('bGluZV9pdGVtcw==')][$oyrea3][base64_decode('cmVmdW5kX3RheA==')])?array_filter((array)$ykxe21[base64_decode('bGluZV9pdGVtcw==')][$oyrea3][base64_decode('cmVmdW5kX3RheA==')]):array();if(empty($xybx58)&&empty($ecvza4)&&empty($ykxe21[base64_decode('bGluZV9pdGVtcw==')][$oyrea3][base64_decode('cmVmdW5kX3RheA==')])){continue;}$moxwa6=get_class($xwck59);$hwwra7=new $moxwa6($xwck59);$hwwra7->cjlpa8(0);$hwwra7->tekda9(base64_decode('X3JlZnVuZGVkX2l0ZW1faWQ='),$oyrea3,true);$hwwra7->jlkjaa(evwfab($ecvza4));$hwwra7->yrwoac(array(base64_decode('dG90YWw=')=>array_map(base64_decode('d2NfZm9ybWF0X3JlZnVuZF90b3RhbA=='),$xnyia5),base64_decode('c3VidG90YWw=')=>array_map(base64_decode('d2NfZm9ybWF0X3JlZnVuZF90b3RhbA=='),$xnyia5),));if(is_callable(array($hwwra7,base64_decode('c2V0X3N1YnRvdGFs')))){$hwwra7->xpjpad(evwfab($ecvza4));}if(is_callable(array($hwwra7,base64_decode('c2V0X3F1YW50aXR5')))){$hwwra7->fgkfae($xybx58*-1);}$ctrt96->rnppaf($hwwra7);$qjqq95+=$xybx58;}}$ctrt96->akndb0();$ctrt96->ganbb1(false);$ctrt96->jlkjaa($ykxe21[base64_decode('YW1vdW50')]*-1);if(isset($ykxe21[base64_decode('ZGF0ZV9jcmVhdGVk')])){$ctrt96->odfqb2($ykxe21[base64_decode('ZGF0ZV9jcmVhdGVk')]);}/**
		 * Action hook to adjust refund before save.
		 *
		 * @since 3.0.0
		 */ fnkf81(base64_decode('d29vY29tbWVyY2VfY3JlYXRlX3JlZnVuZA=='),$ctrt96,$ykxe21);if($ctrt96->kqnh72()){if($ykxe21[base64_decode('cmVmdW5kX3BheW1lbnQ=')]){$vxxzb3=quuv13($unlt57,$ctrt96->tzcxb4(),$ctrt96->hiilb5());if(iumh46($vxxzb3)){$ctrt96->jzdmb6();return $vxxzb3;}$ctrt96->nlalb7(true);$ctrt96->kqnh72();}if($ykxe21[base64_decode('cmVzdG9ja19pdGVtcw==')]){ymxz14($unlt57,$ykxe21[base64_decode('bGluZV9pdGVtcw==')]);}/**
			 * Trigger notification emails.
			 *
			 * Filter hook to modify the partially-refunded status conditions.
			 *
			 * @since 6.7.0
			 *
			 * @param bool $is_partially_refunded Whether the order is partially refunded.
			 * @param int  $order_id The order id.
			 * @param int  $refund_id The refund id.
			 */ if((bool)uhgm36(base64_decode('d29vY29tbWVyY2Vfb3JkZXJfaXNfcGFydGlhbGx5X3JlZnVuZGVk'),($jqej91-$ykxe21[base64_decode('YW1vdW50')])>0||($unlt57->lizfb8()&&($lxep93-$qjqq95)>0),$unlt57->nodk5f(),$ctrt96->nodk5f())){fnkf81(base64_decode('d29vY29tbWVyY2Vfb3JkZXJfcGFydGlhbGx5X3JlZnVuZGVk'),$unlt57->nodk5f(),$ctrt96->nodk5f());}else{fnkf81(base64_decode('d29vY29tbWVyY2Vfb3JkZXJfZnVsbHlfcmVmdW5kZWQ='),$unlt57->nodk5f(),$ctrt96->nodk5f());$jcjpb9=uhgm36(base64_decode('d29vY29tbWVyY2Vfb3JkZXJfZnVsbHlfcmVmdW5kZWRfc3RhdHVz'),base64_decode('cmVmdW5kZWQ='),$unlt57->nodk5f(),$ctrt96->nodk5f());if($jcjpb9){$unlt57->aejpba($jcjpb9);}}}$unlt57->xoyzbb(time());$unlt57->kqnh72();fnkf81(base64_decode('d29vY29tbWVyY2VfcmVmdW5kX2NyZWF0ZWQ='),$ctrt96->nodk5f(),$ykxe21);fnkf81(base64_decode('d29vY29tbWVyY2Vfb3JkZXJfcmVmdW5kZWQ='),$unlt57->nodk5f(),$ctrt96->nodk5f());}catch(Exception $hnvhbc){if(isset($ctrt96)&&is_a($ctrt96,base64_decode('V0NfT3JkZXJfUmVmdW5k'))){$ctrt96->jzdmb6(true);}return new ecqgbd(base64_decode('ZXJyb3I='),$hnvhbc->xkwsbe());}return $ctrt96;}/**
 * Try to refund the payment for an order via the gateway.
 *
 * @since 3.0.0
 * @throws Exception Throws exceptions when fail to refund, but returns WP_Error instead.
 * @param WC_Order $order  Order instance.
 * @param string   $amount Amount to refund.
 * @param string   $reason Refund reason.
 * @return bool|WP_Error
 */ function quuv13($unlt57,$pgdxbf,$brtsc0=''){try{if(!is_a($unlt57,base64_decode('V0NfT3JkZXI='))){throw new smun8f(fblw90(base64_decode('SW52YWxpZCBvcmRlci4='),base64_decode('d29vY29tbWVyY2U=')));}$slwjc1=WC_Payment_Gateways::ilqgc2();$uzntc3=$slwjc1->pdqec4();$wxgzc5=$unlt57->acwqc6();$oceyc7=isset($uzntc3[$wxgzc5])?$uzntc3[$wxgzc5]:false;if(!$oceyc7){throw new smun8f(fblw90(base64_decode('VGhlIHBheW1lbnQgZ2F0ZXdheSBmb3IgdGhpcyBvcmRlciBkb2VzIG5vdCBleGlzdC4='),base64_decode('d29vY29tbWVyY2U=')));}if(!$oceyc7->kkwuc8(base64_decode('cmVmdW5kcw=='))){throw new smun8f(fblw90(base64_decode('VGhlIHBheW1lbnQgZ2F0ZXdheSBmb3IgdGhpcyBvcmRlciBkb2VzIG5vdCBzdXBwb3J0IGF1dG9tYXRpYyByZWZ1bmRzLg=='),base64_decode('d29vY29tbWVyY2U=')));}$vxxzb3=$oceyc7->fkmnc9($unlt57->nodk5f(),$pgdxbf,$brtsc0);if(!$vxxzb3){throw new smun8f(fblw90(base64_decode('QW4gZXJyb3Igb2NjdXJyZWQgd2hpbGUgYXR0ZW1wdGluZyB0byBjcmVhdGUgdGhlIHJlZnVuZCB1c2luZyB0aGUgcGF5bWVudCBnYXRld2F5IEFQSS4='),base64_decode('d29vY29tbWVyY2U=')));}if(iumh46($vxxzb3)){throw new smun8f($vxxzb3->pbqyca());}return true;}catch(Exception $hnvhbc){return new ecqgbd(base64_decode('ZXJyb3I='),$hnvhbc->xkwsbe());}}/**
 * Restock items during refund.
 *
 * @since 3.0.0
 * @param WC_Order $order               Order instance.
 * @param array    $refunded_line_items Refunded items list.
 */ function ymxz14($unlt57,$mvgycb){if(!uhgm36(base64_decode('d29vY29tbWVyY2VfY2FuX3Jlc3RvY2tfcmVmdW5kZWRfaXRlbXM='),true,$unlt57,$mvgycb)){return;}$tzzacc=$unlt57->qepm79();foreach($tzzacc as $oyrea3=>$xwck59){if(!isset($mvgycb[$oyrea3],$mvgycb[$oyrea3][base64_decode('cXR5')])){continue;}$fwrv56=$xwck59->abcd7a();$vdsucd=$xwck59->wyouce(base64_decode('X3JlZHVjZWRfc3RvY2s='),true);$jqlrcf=(int)$xwck59->wyouce(base64_decode('X3Jlc3RvY2tfcmVmdW5kZWRfaXRlbXM='),true);$sojsd0=$mvgycb[$oyrea3][base64_decode('cXR5')];if(!$vdsucd||!$sojsd0||!$fwrv56||!$fwrv56->kdogd1()){continue;}$jlqsd2=$fwrv56->inmgd3();$ytesd4=ksdqd5($fwrv56,$sojsd0,base64_decode('aW5jcmVhc2U='));$vdsucd=$vdsucd-$sojsd0;$xwck59->wlted6(base64_decode('X3JlZHVjZWRfc3RvY2s='),$vdsucd);$xwck59->wlted6(base64_decode('X3Jlc3RvY2tfcmVmdW5kZWRfaXRlbXM='),$sojsd0+$jqlrcf);$noqrd7=sprintf(fblw90(base64_decode('SXRlbSAjJTEkcyBzdG9jayBpbmNyZWFzZWQgZnJvbSAlMiRzIHRvICUzJHMu'),base64_decode('d29vY29tbWVyY2U=')),$fwrv56->nodk5f(),$jlqsd2,$ytesd4);/**
		 * Allow the restock note to be modified.
		 *
		 * @since 6.4.0
		 *
		 * @param string $restock_note The original note.
		 * @param int $old_stock The old stock.
		 * @param bool|int|null $new_stock The new stock.
		 * @param WC_Order $order The order the refund was done for.
		 * @param bool|WC_Product $product The product the refund was done for.
		 */ $noqrd7=uhgm36(base64_decode('d29vY29tbWVyY2VfcmVmdW5kX3Jlc3RvY2tfbm90ZQ=='),$noqrd7,$jlqsd2,$ytesd4,$unlt57,$fwrv56);$unlt57->ouhyd8($noqrd7);$xwck59->kqnh72();fnkf81(base64_decode('d29vY29tbWVyY2VfcmVzdG9ja19yZWZ1bmRlZF9pdGVt'),$fwrv56->nodk5f(),$jlqsd2,$ytesd4,$unlt57,$fwrv56);}}/**
 * Get tax class by tax id.
 *
 * @since 2.2
 * @param int $tax_id Tax ID.
 * @return string
 */ function yjfg15($gmied9){global $wnchda;return $wnchda->totbdb($wnchda->xnwkdc("SELECT tax_rate_class FROM {$wnchda->$smyjdd}woocommerce_tax_rates WHERE tax_rate_id = %d",$gmied9));}/**
 * Get payment gateway class by order data.
 *
 * @since 2.2
 * @param int|WC_Order $order Order instance.
 * @return WC_Payment_Gateway|bool
 */ function zitj16($unlt57){if(begw31()->pdqec4()){$gdnwde=begw31()->pdqec4()->pdqec4();}else{$gdnwde=array();}if(!is_object($unlt57)){$ebhr73=geny9c($unlt57);$unlt57=xtlz1($ebhr73);}return is_a($unlt57,base64_decode('V0NfT3JkZXI='))&&isset($gdnwde[$unlt57->acwqc6()])?$gdnwde[$unlt57->acwqc6()]:false;}/**
 * When refunding an order, create a refund line item if the partial refunds do not match order total.
 *
 * This is manual; no gateway refund will be performed.
 *
 * @since 2.4
 * @param int $order_id Order ID.
 */ function xopv17($ebhr73){$unlt57=xtlz1($ebhr73);$xqjddf=kyxce0($unlt57->jbsde1()-$unlt57->ytlle2());if(!$xqjddf){return;}vdpge3();fevn12(array(base64_decode('YW1vdW50')=>$xqjddf,base64_decode('cmVhc29u')=>fblw90(base64_decode('T3JkZXIgZnVsbHkgcmVmdW5kZWQu'),base64_decode('d29vY29tbWVyY2U=')),base64_decode('b3JkZXJfaWQ=')=>$ebhr73,base64_decode('bGluZV9pdGVtcw==')=>array(),));vkqhe4();$unlt57->ouhyd8(fblw90(base64_decode('T3JkZXIgc3RhdHVzIHNldCB0byByZWZ1bmRlZC4gVG8gcmV0dXJuIGZ1bmRzIHRvIHRoZSBjdXN0b21lciB5b3Ugd2lsbCBuZWVkIHRvIGlzc3VlIGEgcmVmdW5kIHRocm91Z2ggeW91ciBwYXltZW50IGdhdGV3YXku'),base64_decode('d29vY29tbWVyY2U=')));}glta82(base64_decode('d29vY29tbWVyY2Vfb3JkZXJfc3RhdHVzX3JlZnVuZGVk'),base64_decode('d2Nfb3JkZXJfZnVsbHlfcmVmdW5kZWQ='));/**
 * Search orders.
 *
 * @since  2.6.0
 * @param  string $term Term to search.
 * @return array List of orders ID.
 */ function ppcx18($hkjfe5){$dpss3d=WC_Data_Store::qxzy3e(base64_decode('b3JkZXI='));return $dpss3d->cktfe6(str_replace(base64_decode('T3JkZXIgIw=='),'',rvdse7($hkjfe5)));}/**
 * Update total sales amount for each product within a paid order.
 *
 * @since 3.0.0
 * @param int $order_id Order ID.
 */ function utac19($ebhr73){$unlt57=xtlz1($ebhr73);if(!$unlt57){return;}$hbqre8=$unlt57->dgor75()->qujke9($unlt57);$xqvzea=in_array($unlt57->hyxueb(),array(base64_decode('Y2FuY2VsbGVk'),base64_decode('dHJhc2g=')),true);if(!$xqvzea&&base64_decode('d29vY29tbWVyY2VfYmVmb3JlX2RlbGV0ZV9vcmRlcg==')===xvcpec()){$xqvzea=true;}if($hbqre8 xor $xqvzea){return;}$fauded=$hbqre8&&$xqvzea?base64_decode('ZGVjcmVhc2U='):base64_decode('aW5jcmVhc2U=');if(count($unlt57->qepm79())>0){foreach($unlt57->qepm79()as $xwck59){$exaoee=$xwck59->raqeef();if($exaoee){$dpss3d=WC_Data_Store::qxzy3e(base64_decode('cHJvZHVjdA=='));$dpss3d->pthzf0($exaoee,geny9c($xwck59->kouo7f()),$fauded);}}}if(base64_decode('ZGVjcmVhc2U=')===$fauded){$unlt57->dgor75()->deruf1($unlt57,false);}else{$unlt57->dgor75()->deruf1($unlt57,true);}/**
	 * Called when sales for an order are recorded
	 *
	 * @param int $order_id order id
	 */ fnkf81(base64_decode('d29vY29tbWVyY2VfcmVjb3JkZWRfc2FsZXM='),$ebhr73);}glta82(base64_decode('d29vY29tbWVyY2Vfb3JkZXJfc3RhdHVzX2NvbXBsZXRlZA=='),base64_decode('d2NfdXBkYXRlX3RvdGFsX3NhbGVzX2NvdW50cw=='));glta82(base64_decode('d29vY29tbWVyY2Vfb3JkZXJfc3RhdHVzX3Byb2Nlc3Npbmc='),base64_decode('d2NfdXBkYXRlX3RvdGFsX3NhbGVzX2NvdW50cw=='));glta82(base64_decode('d29vY29tbWVyY2Vfb3JkZXJfc3RhdHVzX29uLWhvbGQ='),base64_decode('d2NfdXBkYXRlX3RvdGFsX3NhbGVzX2NvdW50cw=='));glta82(base64_decode('d29vY29tbWVyY2Vfb3JkZXJfc3RhdHVzX2NvbXBsZXRlZF90b19jYW5jZWxsZWQ='),base64_decode('d2NfdXBkYXRlX3RvdGFsX3NhbGVzX2NvdW50cw=='));glta82(base64_decode('d29vY29tbWVyY2Vfb3JkZXJfc3RhdHVzX3Byb2Nlc3NpbmdfdG9fY2FuY2VsbGVk'),base64_decode('d2NfdXBkYXRlX3RvdGFsX3NhbGVzX2NvdW50cw=='));glta82(base64_decode('d29vY29tbWVyY2Vfb3JkZXJfc3RhdHVzX29uLWhvbGRfdG9fY2FuY2VsbGVk'),base64_decode('d2NfdXBkYXRlX3RvdGFsX3NhbGVzX2NvdW50cw=='));glta82(base64_decode('d29vY29tbWVyY2VfdHJhc2hfb3JkZXI='),base64_decode('d2NfdXBkYXRlX3RvdGFsX3NhbGVzX2NvdW50cw=='));glta82(base64_decode('d29vY29tbWVyY2VfdW50cmFzaF9vcmRlcg=='),base64_decode('d2NfdXBkYXRlX3RvdGFsX3NhbGVzX2NvdW50cw=='));glta82(base64_decode('d29vY29tbWVyY2VfYmVmb3JlX2RlbGV0ZV9vcmRlcg=='),base64_decode('d2NfdXBkYXRlX3RvdGFsX3NhbGVzX2NvdW50cw=='));/**
 * Update used coupon amount for each coupon within an order.
 *
 * @since 3.0.0
 * @param int $order_id Order ID.
 */ function gxkq1a($ebhr73){$unlt57=xtlz1($ebhr73);if(!$unlt57){return;}$dpvif2=$unlt57->dgor75()->xqaef3($unlt57);if($unlt57->aqho77(base64_decode('Y2FuY2VsbGVk'))&&$dpvif2){$xpmtf4=base64_decode('cmVkdWNl');$unlt57->dgor75()->wajmf5($unlt57,false);}elseif(!$unlt57->aqho77(base64_decode('Y2FuY2VsbGVk'))&&!$dpvif2){$xpmtf4=base64_decode('aW5jcmVhc2U=');$unlt57->dgor75()->wajmf5($unlt57,true);}elseif($unlt57->aqho77(base64_decode('Y2FuY2VsbGVk'))){$unlt57->dgor75()->guayf6($unlt57,true);return;}else{return;}if(count($unlt57->jblgf7())>0){foreach($unlt57->jblgf7()as $nlaef8){if(StringUtil::nzqnf9($nlaef8)){continue;}$mjkkfa=new vwjjfb($nlaef8);$qkdafc=$unlt57->duvcfd();if(!$qkdafc){$qkdafc=$unlt57->bdbp64();}switch($xpmtf4){case base64_decode('cmVkdWNl'):$mjkkfa->ggevfe($qkdafc);break;case base64_decode('aW5jcmVhc2U='):$mjkkfa->tugvff($qkdafc,$unlt57);break;}}$unlt57->dgor75()->guayf6($unlt57,true);}}glta82(base64_decode('d29vY29tbWVyY2Vfb3JkZXJfc3RhdHVzX3BlbmRpbmc='),base64_decode('d2NfdXBkYXRlX2NvdXBvbl91c2FnZV9jb3VudHM='));glta82(base64_decode('d29vY29tbWVyY2Vfb3JkZXJfc3RhdHVzX2NvbXBsZXRlZA=='),base64_decode('d2NfdXBkYXRlX2NvdXBvbl91c2FnZV9jb3VudHM='));glta82(base64_decode('d29vY29tbWVyY2Vfb3JkZXJfc3RhdHVzX3Byb2Nlc3Npbmc='),base64_decode('d2NfdXBkYXRlX2NvdXBvbl91c2FnZV9jb3VudHM='));glta82(base64_decode('d29vY29tbWVyY2Vfb3JkZXJfc3RhdHVzX29uLWhvbGQ='),base64_decode('d2NfdXBkYXRlX2NvdXBvbl91c2FnZV9jb3VudHM='));glta82(base64_decode('d29vY29tbWVyY2Vfb3JkZXJfc3RhdHVzX2NhbmNlbGxlZA=='),base64_decode('d2NfdXBkYXRlX2NvdXBvbl91c2FnZV9jb3VudHM='));/**
 * Cancel all unpaid orders after held duration to prevent stock lock for those products.
 */ function lvzm1b(){$gykb100=xuan78(base64_decode('d29vY29tbWVyY2VfaG9sZF9zdG9ja19taW51dGVz'));vprk101(base64_decode('d29vY29tbWVyY2VfY2FuY2VsX3VucGFpZF9vcmRlcnM='));$ruat102=uhgm36(base64_decode('d29vY29tbWVyY2VfY2FuY2VsX3VucGFpZF9vcmRlcnNfaW50ZXJ2YWxfbWludXRlcw=='),geny9c($gykb100));sshv103(time()+(geny9c($ruat102)*60),base64_decode('d29vY29tbWVyY2VfY2FuY2VsX3VucGFpZF9vcmRlcnM='));if($gykb100<1||base64_decode('eWVz')!==xuan78(base64_decode('d29vY29tbWVyY2VfbWFuYWdlX3N0b2Nr'))){return;}$dpss3d=WC_Data_Store::qxzy3e(base64_decode('b3JkZXI='));$cqsr104=$dpss3d->qjij105(strtotime(base64_decode('LQ==').geny9c($gykb100).base64_decode('IE1JTlVURVM='),ggkm70(base64_decode('dGltZXN0YW1w'))));if($cqsr104){foreach($cqsr104 as $kbsk106){$unlt57=xtlz1($kbsk106);if(uhgm36(base64_decode('d29vY29tbWVyY2VfY2FuY2VsX3VucGFpZF9vcmRlcg=='),base64_decode('Y2hlY2tvdXQ=')===$unlt57->rbdx107(),$unlt57)){$unlt57->aejpba(base64_decode('Y2FuY2VsbGVk'),fblw90(base64_decode('VW5wYWlkIG9yZGVyIGNhbmNlbGxlZCAtIHRpbWUgbGltaXQgcmVhY2hlZC4='),base64_decode('d29vY29tbWVyY2U=')));}}}}glta82(base64_decode('d29vY29tbWVyY2VfY2FuY2VsX3VucGFpZF9vcmRlcnM='),base64_decode('d2NfY2FuY2VsX3VucGFpZF9vcmRlcnM='));/**
 * Sanitize order id removing unwanted characters.
 *
 * E.g Users can sometimes try to track an order id using # with no success.
 * This function will fix this.
 *
 * @since 3.1.0
 * @param int $order_id Order ID.
 */ function lsmm1c($ebhr73){return(int)filter_var($ebhr73,FILTER_SANITIZE_NUMBER_INT);}qpym108(base64_decode('d29vY29tbWVyY2Vfc2hvcnRjb2RlX29yZGVyX3RyYWNraW5nX29yZGVyX2lk'),base64_decode('d2Nfc2FuaXRpemVfb3JkZXJfaWQ='));/**
 * Get an order note.
 *
 * @since  3.2.0
 * @param  int|WP_Comment $data Note ID (or WP_Comment instance for internal use only).
 * @return stdClass|null        Object with order note details or null when does not exists.
 */ function zhpc1d($wbzs109){if(is_numeric($wbzs109)){$wbzs109=idtg10a($wbzs109);}if(!is_a($wbzs109,base64_decode('V1BfQ29tbWVudA=='))){return null;}return(object)uhgm36(base64_decode('d29vY29tbWVyY2VfZ2V0X29yZGVyX25vdGU='),array(base64_decode('aWQ=')=>(int)$wbzs109->$wfph10b,base64_decode('ZGF0ZV9jcmVhdGVk')=>qzmc28($wbzs109->$cdmr10c),base64_decode('Y29udGVudA==')=>$wbzs109->$bkmi10d,base64_decode('Y3VzdG9tZXJfbm90ZQ==')=>(bool)nnyy10e($wbzs109->$wfph10b,base64_decode('aXNfY3VzdG9tZXJfbm90ZQ=='),true),base64_decode('YWRkZWRfYnk=')=>fblw90(base64_decode('V29vQ29tbWVyY2U='),base64_decode('d29vY29tbWVyY2U='))===$wbzs109->$ypry10f?base64_decode('c3lzdGVt'):$wbzs109->$ypry10f,),$wbzs109);}/**
 * Get order notes.
 *
 * @since  3.2.0
 * @param  array $args Query arguments {
 *     Array of query parameters.
 *
 *     @type string $limit         Maximum number of notes to retrieve.
 *                                 Default empty (no limit).
 *     @type int    $order_id      Limit results to those affiliated with a given order ID.
 *                                 Default 0.
 *     @type array  $order__in     Array of order IDs to include affiliated notes for.
 *                                 Default empty.
 *     @type array  $order__not_in Array of order IDs to exclude affiliated notes for.
 *                                 Default empty.
 *     @type string $orderby       Define how should sort notes.
 *                                 Accepts 'date_created', 'date_created_gmt' or 'id'.
 *                                 Default: 'id'.
 *     @type string $order         How to order retrieved notes.
 *                                 Accepts 'ASC' or 'DESC'.
 *                                 Default: 'DESC'.
 *     @type string $type          Define what type of note should retrieve.
 *                                 Accepts 'customer', 'internal' or empty for both.
 *                                 Default empty.
 * }
 * @return stdClass[]              Array of stdClass objects with order notes details.
 */ function kemr1e($ykxe21){$krei110=array(base64_decode('bGltaXQ=')=>base64_decode('bnVtYmVy'),base64_decode('b3JkZXJfaWQ=')=>base64_decode('cG9zdF9pZA=='),base64_decode('b3JkZXJfX2lu')=>base64_decode('cG9zdF9faW4='),base64_decode('b3JkZXJfX25vdF9pbg==')=>base64_decode('cG9zdF9fbm90X2lu'),);foreach($krei110 as $obsg111=>$ipsp112){if(isset($ykxe21[$obsg111])){$ykxe21[$ipsp112]=$ykxe21[$obsg111];unset($ykxe21[$obsg111]);}}$vfwu113=array(base64_decode('ZGF0ZV9jcmVhdGVk')=>base64_decode('Y29tbWVudF9kYXRl'),base64_decode('ZGF0ZV9jcmVhdGVkX2dtdA==')=>base64_decode('Y29tbWVudF9kYXRlX2dtdA=='),base64_decode('aWQ=')=>base64_decode('Y29tbWVudF9JRA=='),);$ykxe21[base64_decode('b3JkZXJieQ==')]=!empty($ykxe21[base64_decode('b3JkZXJieQ==')])&&in_array($ykxe21[base64_decode('b3JkZXJieQ==')],array(base64_decode('ZGF0ZV9jcmVhdGVk'),base64_decode('ZGF0ZV9jcmVhdGVkX2dtdA=='),base64_decode('aWQ=')),true)?$vfwu113[$ykxe21[base64_decode('b3JkZXJieQ==')]]:base64_decode('Y29tbWVudF9JRA==');if(isset($ykxe21[base64_decode('dHlwZQ==')])&&base64_decode('Y3VzdG9tZXI=')===$ykxe21[base64_decode('dHlwZQ==')]){$ykxe21[base64_decode('bWV0YV9xdWVyeQ==')]=array(array(base64_decode('a2V5')=>base64_decode('aXNfY3VzdG9tZXJfbm90ZQ=='),base64_decode('dmFsdWU=')=>1,base64_decode('Y29tcGFyZQ==')=>base64_decode('PQ=='),),);}elseif(isset($ykxe21[base64_decode('dHlwZQ==')])&&base64_decode('aW50ZXJuYWw=')===$ykxe21[base64_decode('dHlwZQ==')]){$ykxe21[base64_decode('bWV0YV9xdWVyeQ==')]=array(array(base64_decode('a2V5')=>base64_decode('aXNfY3VzdG9tZXJfbm90ZQ=='),base64_decode('Y29tcGFyZQ==')=>base64_decode('Tk9UIEVYSVNUUw=='),),);}$ykxe21[base64_decode('dHlwZQ==')]=base64_decode('b3JkZXJfbm90ZQ==');$ykxe21[base64_decode('c3RhdHVz')]=base64_decode('YXBwcm92ZQ==');unset($ykxe21[base64_decode('Y291bnQ=')],$ykxe21[base64_decode('ZmllbGRz')]);vykk114(base64_decode('Y29tbWVudHNfY2xhdXNlcw=='),array(base64_decode('V0NfQ29tbWVudHM='),base64_decode('ZXhjbHVkZV9vcmRlcl9jb21tZW50cw==')),10,1);$hmwv115=khsq116($ykxe21);qpym108(base64_decode('Y29tbWVudHNfY2xhdXNlcw=='),array(base64_decode('V0NfQ29tbWVudHM='),base64_decode('ZXhjbHVkZV9vcmRlcl9jb21tZW50cw==')),10,1);return array_filter(array_map(base64_decode('d2NfZ2V0X29yZGVyX25vdGU='),$hmwv115));}/**
 * Create an order note.
 *
 * @since  3.2.0
 * @param  int    $order_id         Order ID.
 * @param  string $note             Note to add.
 * @param  bool   $is_customer_note If is a costumer note.
 * @param  bool   $added_by_user    If note is create by an user.
 * @return int|WP_Error             Integer when created or WP_Error when found an error.
 */ function hfqk1f($ebhr73,$dtyc117,$qytc118=false,$xeub119=false){$unlt57=xtlz1($ebhr73);if(!$unlt57){return new ecqgbd(base64_decode('aW52YWxpZF9vcmRlcl9pZA=='),fblw90(base64_decode('SW52YWxpZCBvcmRlciBJRC4='),base64_decode('d29vY29tbWVyY2U=')),array(base64_decode('c3RhdHVz')=>400));}return $unlt57->ouhyd8($dtyc117,(int)$qytc118,$xeub119);}/**
 * Delete an order note.
 *
 * @since  3.2.0
 * @param  int $note_id Order note.
 * @return bool         True on success, false on failure.
 */ function sssv20($yqta11a){return fgyo11b($yqta11a,true);}?>

Did this file decode correctly?

Original Code

<?php /**
 * WooCommerce Order Functions
 *
 * Functions for order specific things.
 *
 * @package WooCommerce\Functions
 * @version 3.4.0
 */ use Automattic\WooCommerce\Internal\DataStores\Orders\DataSynchronizer;use Automattic\WooCommerce\Utilities\StringUtil;defined(base64_decode('QUJTUEFUSA=='))||exit;/**
 * Standard way of retrieving orders based on certain parameters.
 *
 * This function should be used for order retrieval so that when we move to
 * custom tables, functions still work.
 *
 * Args and usage: https://github.com/woocommerce/woocommerce/wiki/wc_get_orders-and-WC_Order_Query
 *
 * @since  2.6.0
 * @param  array $args Array of args (above).
 * @return WC_Order[]|stdClass Number of pages and an array of order objects if
 *                             paginate is true, or just an array of values.
 */ function lrvj0($ykxe21){$irkt22=array(base64_decode('bnVtYmVycG9zdHM=')=>base64_decode('bGltaXQ='),base64_decode('cG9zdF90eXBl')=>base64_decode('dHlwZQ=='),base64_decode('cG9zdF9zdGF0dXM=')=>base64_decode('c3RhdHVz'),base64_decode('cG9zdF9wYXJlbnQ=')=>base64_decode('cGFyZW50'),base64_decode('YXV0aG9y')=>base64_decode('Y3VzdG9tZXI='),base64_decode('ZW1haWw=')=>base64_decode('YmlsbGluZ19lbWFpbA=='),base64_decode('cG9zdHNfcGVyX3BhZ2U=')=>base64_decode('bGltaXQ='),base64_decode('cGFnZWQ=')=>base64_decode('cGFnZQ=='),);foreach($irkt22 as $gjxt23=>$twfg24){if(isset($ykxe21[$gjxt23])){$ykxe21[$twfg24]=$ykxe21[$gjxt23];}}$fxrp25=false;$rent26=false;if(!empty($ykxe21[base64_decode('ZGF0ZV9iZWZvcmU=')])){$axvw27=qzmc28($ykxe21[base64_decode('ZGF0ZV9iZWZvcmU=')]);$fxrp25=strpos($ykxe21[base64_decode('ZGF0ZV9iZWZvcmU=')],base64_decode('Og=='))?$axvw27->okcu29():$axvw27->xzxd2a(base64_decode('WS1tLWQ='));}if(!empty($ykxe21[base64_decode('ZGF0ZV9hZnRlcg==')])){$axvw27=qzmc28($ykxe21[base64_decode('ZGF0ZV9hZnRlcg==')]);$rent26=strpos($ykxe21[base64_decode('ZGF0ZV9hZnRlcg==')],base64_decode('Og=='))?$axvw27->okcu29():$axvw27->xzxd2a(base64_decode('WS1tLWQ='));}if($fxrp25&&$rent26){$ykxe21[base64_decode('ZGF0ZV9jcmVhdGVk')]=$rent26.base64_decode('Li4u').$fxrp25;}elseif($fxrp25){$ykxe21[base64_decode('ZGF0ZV9jcmVhdGVk')]=base64_decode('PA==').$fxrp25;}elseif($rent26){$ykxe21[base64_decode('ZGF0ZV9jcmVhdGVk')]=base64_decode('Pg==').$rent26;}$hzfe2b=new azlf2c($ykxe21);return $hzfe2b->dlkj2d();}/**
 * Main function for returning orders, uses the WC_Order_Factory class.
 *
 * @since  2.2
 *
 * @param mixed $the_order       Post object or post ID of the order.
 *
 * @return bool|WC_Order|WC_Order_Refund
 */ function xtlz1($rahy2e=false){if(!upop2f(base64_decode('d29vY29tbWVyY2VfYWZ0ZXJfcmVnaXN0ZXJfcG9zdF90eXBl'))){kpyq30(__FUNCTION__,base64_decode('d2NfZ2V0X29yZGVyIHNob3VsZCBub3QgYmUgY2FsbGVkIGJlZm9yZSBwb3N0IHR5cGVzIGFyZSByZWdpc3RlcmVkICh3b29jb21tZXJjZV9hZnRlcl9yZWdpc3Rlcl9wb3N0X3R5cGUgYWN0aW9uKQ=='),base64_decode('Mi41'));return false;}return begw31()->$grnl32->hygy33($rahy2e);}/**
 * Get all order statuses.
 *
 * @since 2.2
 * @used-by WC_Order::set_status
 * @return array
 */ function xbfn2(){$zhrx34=array(base64_decode('d2MtcGVuZGluZw==')=>tkkl35(base64_decode('UGVuZGluZyBwYXltZW50'),base64_decode('T3JkZXIgc3RhdHVz'),base64_decode('d29vY29tbWVyY2U=')),base64_decode('d2MtcHJvY2Vzc2luZw==')=>tkkl35(base64_decode('UHJvY2Vzc2luZw=='),base64_decode('T3JkZXIgc3RhdHVz'),base64_decode('d29vY29tbWVyY2U=')),base64_decode('d2Mtb24taG9sZA==')=>tkkl35(base64_decode('T24gaG9sZA=='),base64_decode('T3JkZXIgc3RhdHVz'),base64_decode('d29vY29tbWVyY2U=')),base64_decode('d2MtY29tcGxldGVk')=>tkkl35(base64_decode('Q29tcGxldGVk'),base64_decode('T3JkZXIgc3RhdHVz'),base64_decode('d29vY29tbWVyY2U=')),base64_decode('d2MtY2FuY2VsbGVk')=>tkkl35(base64_decode('Q2FuY2VsbGVk'),base64_decode('T3JkZXIgc3RhdHVz'),base64_decode('d29vY29tbWVyY2U=')),base64_decode('d2MtcmVmdW5kZWQ=')=>tkkl35(base64_decode('UmVmdW5kZWQ='),base64_decode('T3JkZXIgc3RhdHVz'),base64_decode('d29vY29tbWVyY2U=')),base64_decode('d2MtZmFpbGVk')=>tkkl35(base64_decode('RmFpbGVk'),base64_decode('T3JkZXIgc3RhdHVz'),base64_decode('d29vY29tbWVyY2U=')),);return uhgm36(base64_decode('d2Nfb3JkZXJfc3RhdHVzZXM='),$zhrx34);}/**
 * See if a string is an order status.
 *
 * @param  string $maybe_status Status, including any wc- prefix.
 * @return bool
 */ function okdj3($jlmn37){$zhrx34=xbfn2();returnisset($zhrx34[$jlmn37]);}/**
 * Get list of statuses which are consider 'paid'.
 *
 * @since  3.0.0
 * @return array
 */ function ptwz4(){return uhgm36(base64_decode('d29vY29tbWVyY2Vfb3JkZXJfaXNfcGFpZF9zdGF0dXNlcw=='),array(base64_decode('cHJvY2Vzc2luZw=='),base64_decode('Y29tcGxldGVk')));}/**
 * Get list of statuses which are consider 'pending payment'.
 *
 * @since  3.6.0
 * @return array
 */ function symg5(){return uhgm36(base64_decode('d29vY29tbWVyY2Vfb3JkZXJfaXNfcGVuZGluZ19zdGF0dXNlcw=='),array(base64_decode('cGVuZGluZw==')));}/**
 * Get the nice name for an order status.
 *
 * @since  2.2
 * @param  string $status Status.
 * @return string
 */ function wjuc6($nshk38){$bgem39=xbfn2();$nshk38=base64_decode('d2Mt')===substr($nshk38,0,3)?substr($nshk38,3):$nshk38;$nshk38=isset($bgem39[base64_decode('d2Mt').$nshk38])?$bgem39[base64_decode('d2Mt').$nshk38]:$nshk38;return $nshk38;}/**
 * Generate an order key with prefix.
 *
 * @since 3.5.4
 * @param string $key Order key without a prefix. By default generates a 13 digit secret.
 * @return string The order key.
 */ function xwek7($orfm3a=''){if(''===$orfm3a){$orfm3a=idlu3b(13,false);}return base64_decode('d2Nf').uhgm36(base64_decode('d29vY29tbWVyY2VfZ2VuZXJhdGVfb3JkZXJfa2V5'),base64_decode('b3JkZXJf').$orfm3a);}/**
 * Finds an Order ID based on an order key.
 *
 * @param string $order_key An order key has generated by.
 * @return int The ID of an order, or 0 if the order could not be found.
 */ function lbnb8($mnmg3c){$dpss3d=WC_Data_Store::qxzy3e(base64_decode('b3JkZXI='));return $dpss3d->huvu3f($mnmg3c);}/**
 * Get all registered order types.
 *
 * @since  2.2
 * @param  string $for Optionally define what you are getting order types for so
 *                     only relevant types are returned.
 *                     e.g. for 'order-meta-boxes', 'order-count'.
 * @return array
 */ function oheo9($ucck40=''){global $ibzq41;if(!is_array($ibzq41)){$ibzq41=array();}$dpdg42=array();switch($ucck40){case base64_decode('b3JkZXItY291bnQ='):foreach($ibzq41 as $egux43=>$ykxe21){if(!$ykxe21[base64_decode('ZXhjbHVkZV9mcm9tX29yZGVyX2NvdW50')]){$dpdg42[]=$egux43;}}break;case base64_decode('b3JkZXItbWV0YS1ib3hlcw=='):foreach($ibzq41 as $egux43=>$ykxe21){if($ykxe21[base64_decode('YWRkX29yZGVyX21ldGFfYm94ZXM=')]){$dpdg42[]=$egux43;}}break;case base64_decode('dmlldy1vcmRlcnM='):foreach($ibzq41 as $egux43=>$ykxe21){if(!$ykxe21[base64_decode('ZXhjbHVkZV9mcm9tX29yZGVyX3ZpZXdz')]){$dpdg42[]=$egux43;}}break;case base64_decode('cmVwb3J0cw=='):foreach($ibzq41 as $egux43=>$ykxe21){if(!$ykxe21[base64_decode('ZXhjbHVkZV9mcm9tX29yZGVyX3JlcG9ydHM=')]){$dpdg42[]=$egux43;}}break;case base64_decode('c2FsZXMtcmVwb3J0cw=='):foreach($ibzq41 as $egux43=>$ykxe21){if(!$ykxe21[base64_decode('ZXhjbHVkZV9mcm9tX29yZGVyX3NhbGVzX3JlcG9ydHM=')]){$dpdg42[]=$egux43;}}break;case base64_decode('b3JkZXItd2ViaG9va3M='):foreach($ibzq41 as $egux43=>$ykxe21){if(!$ykxe21[base64_decode('ZXhjbHVkZV9mcm9tX29yZGVyX3dlYmhvb2tz')]){$dpdg42[]=$egux43;}}break;case base64_decode('Y290LW1pZ3JhdGlvbg=='):foreach($ibzq41 as $egux43=>$ykxe21){if(DataSynchronizer::PLACEHOLDER_ORDER_POST_TYPE!==$egux43){$dpdg42[]=$egux43;}}break;case base64_decode('YWRtaW4tbWVudQ=='):$dpdg42=array_intersect(array_keys($ibzq41),fdnc44(array(base64_decode('c2hvd191aQ==')=>true,base64_decode('c2hvd19pbl9tZW51')=>base64_decode('d29vY29tbWVyY2U='),)));break;default:$dpdg42=array_keys($ibzq41);break;}return uhgm36(base64_decode('d2Nfb3JkZXJfdHlwZXM='),$dpdg42,$ucck40);}/**
 * Get an order type by post type name.
 *
 * @param  string $type Post type name.
 * @return bool|array Details about the order type.
 */ function jloga($egux43){global $ibzq41;if(isset($ibzq41[$egux43])){return $ibzq41[$egux43];}return false;}/**
 * Register order type. Do not use before init.
 *
 * Wrapper for register post type, as well as a method of telling WC which.
 * post types are types of orders, and having them treated as such.
 *
 * $args are passed to register_post_type, but there are a few specific to this function:
 *      - exclude_from_orders_screen (bool) Whether or not this order type also get shown in the main.
 *      orders screen.
 *      - add_order_meta_boxes (bool) Whether or not the order type gets shop_order meta boxes.
 *      - exclude_from_order_count (bool) Whether or not this order type is excluded from counts.
 *      - exclude_from_order_views (bool) Whether or not this order type is visible by customers when.
 *      viewing orders e.g. on the my account page.
 *      - exclude_from_order_reports (bool) Whether or not to exclude this type from core reports.
 *      - exclude_from_order_sales_reports (bool) Whether or not to exclude this type from core sales reports.
 *
 * @since  2.2
 * @see    register_post_type for $args used in that function
 * @param  string $type Post type. (max. 20 characters, can not contain capital letters or spaces).
 * @param  array  $args An array of arguments.
 * @return bool Success or failure
 */ function yhizb($egux43,$ykxe21=array()){if(xmzg45($egux43)){return false;}global $ibzq41;if(!is_array($ibzq41)){$ibzq41=array();}if(iumh46(wosd47($egux43,$ykxe21))){return false;}$ydks48=array(base64_decode('ZXhjbHVkZV9mcm9tX29yZGVyc19zY3JlZW4=')=>false,base64_decode('YWRkX29yZGVyX21ldGFfYm94ZXM=')=>true,base64_decode('ZXhjbHVkZV9mcm9tX29yZGVyX2NvdW50')=>false,base64_decode('ZXhjbHVkZV9mcm9tX29yZGVyX3ZpZXdz')=>false,base64_decode('ZXhjbHVkZV9mcm9tX29yZGVyX3dlYmhvb2tz')=>false,base64_decode('ZXhjbHVkZV9mcm9tX29yZGVyX3JlcG9ydHM=')=>false,base64_decode('ZXhjbHVkZV9mcm9tX29yZGVyX3NhbGVzX3JlcG9ydHM=')=>false,base64_decode('Y2xhc3NfbmFtZQ==')=>base64_decode('V0NfT3JkZXI='),);$ykxe21=array_intersect_key($ykxe21,$ydks48);$ykxe21=hjex49($ykxe21,$ydks48);$ibzq41[$egux43]=$ykxe21;return true;}/**
 * Return the count of processing orders.
 *
 * @return int
 */ function rmuxc(){return waupd(base64_decode('cHJvY2Vzc2luZw=='));}/**
 * Return the orders count of a specific order status.
 *
 * @param string $status Status.
 * @param string $type   (Optional) Order type. Leave empty to include all 'for order-count' order types. @{see wc_get_order_types()}.
 * @return int
 */ function waupd($nshk38,string $egux43=''){$aayt4a=0;$cyja4b=array(base64_decode('ZHJhZnQ='),base64_decode('dHJhc2g='));$ukcw4c=array_merge(array_keys(xbfn2()),$cyja4b);$nshk38=(!in_array($nshk38,$cyja4b,true)&&0!==strpos($nshk38,base64_decode('d2Mt')))?base64_decode('d2Mt').$nshk38:$nshk38;$fwwr4d=oheo9(base64_decode('b3JkZXItY291bnQ='));$egux43=trim($egux43);if(!in_array($nshk38,$ukcw4c,true)||($egux43&&!in_array($egux43,$fwwr4d,true))){return 0;}$ngul4e=WC_Cache_Helper::vhal4f(base64_decode('b3JkZXJz')).$nshk38.$egux43;$npus50=tcib51($ngul4e,base64_decode('Y291bnRz'));if(false!==$npus50){return $npus50;}$jcjz52=$egux43?array($egux43):$fwwr4d;foreach($jcjz52 as $egux43){$dpss3d=WC_Data_Store::qxzy3e(base64_decode('c2hvcF9vcmRlcg==')===$egux43?base64_decode('b3JkZXI='):$egux43);if($dpss3d){$aayt4a+=$dpss3d->xjvl53($nshk38);}}aswc54($ngul4e,$aayt4a,base64_decode('Y291bnRz'));return $aayt4a;}/**
 * Grant downloadable product access to the file identified by $download_id.
 *
 * @param  string         $download_id File identifier.
 * @param  int|WC_Product $product     Product instance or ID.
 * @param  WC_Order       $order       Order data.
 * @param  int            $qty         Quantity purchased.
 * @param  WC_Order_Item  $item        Item of the order.
 * @return int|bool insert id or false on failure.
 */ function lplke($jkyw55,$fwrv56,$unlt57,$xybx58=1,$xwck59=null){if(is_numeric($fwrv56)){$fwrv56=qkui5a($fwrv56);}$wwkm5b=new difo5c();$wwkm5b->nkuy5d($jkyw55);$wwkm5b->fkyr5e($fwrv56->nodk5f());$wwkm5b->lelw60($unlt57->qwty61());$wwkm5b->hcqa62($unlt57->nodk5f());$wwkm5b->mxdi63($unlt57->bdbp64());$wwkm5b->uics65($unlt57->psyo66());$wwkm5b->qgnz67(0>$fwrv56->iodo68()?'':$fwrv56->iodo68()*$xybx58);$wwkm5b->derh69(time());$wwkm5b->dhqv6a(0);$wxbk6b=$fwrv56->lpni6c();if($wxbk6b>0){$qufu6d=$unlt57->owaq6e()?$unlt57->owaq6e()->zsja6f(base64_decode('WS1tLWQ=')):ggkm70(base64_decode('bXlzcWw='),true);$wwkm5b->jxam71(strtotime($qufu6d.base64_decode('ICsg').$wxbk6b.base64_decode('IERBWQ==')));}$wwkm5b=uhgm36(base64_decode('d29vY29tbWVyY2VfZG93bmxvYWRhYmxlX2ZpbGVfcGVybWlzc2lvbg=='),$wwkm5b,$fwrv56,$unlt57,$xybx58,$xwck59);return $wwkm5b->kqnh72();}/**
 * Order Status completed - give downloadable product access to customer.
 *
 * @param int  $order_id Order ID.
 * @param bool $force    Force downloadable permissions.
 */ function laxcf($ebhr73,$pbia74=false){$unlt57=xtlz1($ebhr73);if(!$unlt57||($unlt57->dgor75()->mfrl76($unlt57)&&!$pbia74)){return;}if($unlt57->aqho77(base64_decode('cHJvY2Vzc2luZw=='))&&base64_decode('bm8=')===xuan78(base64_decode('d29vY29tbWVyY2VfZG93bmxvYWRzX2dyYW50X2FjY2Vzc19hZnRlcl9wYXltZW50'))){return;}if(count($unlt57->qepm79())>0){foreach($unlt57->qepm79()as $xwck59){$fwrv56=$xwck59->abcd7a();if($fwrv56&&$fwrv56->ycvg7b()&&$fwrv56->ffbe7c()){$qffz7d=$fwrv56->ungj7e();foreach(array_keys($qffz7d)as $jkyw55){lplke($jkyw55,$fwrv56,$unlt57,$xwck59->kouo7f(),$xwck59);}}}}$unlt57->dgor75()->wzqy80($unlt57,true);fnkf81(base64_decode('d29vY29tbWVyY2VfZ3JhbnRfcHJvZHVjdF9kb3dubG9hZF9wZXJtaXNzaW9ucw=='),$ebhr73);}glta82(base64_decode('d29vY29tbWVyY2Vfb3JkZXJfc3RhdHVzX2NvbXBsZXRlZA=='),base64_decode('d2NfZG93bmxvYWRhYmxlX3Byb2R1Y3RfcGVybWlzc2lvbnM='));glta82(base64_decode('d29vY29tbWVyY2Vfb3JkZXJfc3RhdHVzX3Byb2Nlc3Npbmc='),base64_decode('d2NfZG93bmxvYWRhYmxlX3Byb2R1Y3RfcGVybWlzc2lvbnM='));/**
 * Clear all transients cache for order data.
 *
 * @param int|WC_Order $order Order instance or ID.
 */ function xodd10($unlt57=0){if(is_numeric($unlt57)){$unlt57=xtlz1($unlt57);}$nvuv83=WC_Admin_Reports::vrvi84();$dqgr85=array(base64_decode('d2NfYWRtaW5fcmVwb3J0'),);foreach($nvuv83 as $tmhz86){foreach($tmhz86[base64_decode('cmVwb3J0cw==')]as $fkms87=>$xpgt88){$dqgr85[]=base64_decode('d2NfcmVwb3J0Xw==').$fkms87;}}foreach($dqgr85 as $yuco89){imtk8a($yuco89);}if(is_a($unlt57,base64_decode('V0NfT3JkZXI='))){$ebhr73=$unlt57->nodk5f();rxxv8b($unlt57->qwty61(),base64_decode('X21vbmV5X3NwZW50'));rxxv8b($unlt57->qwty61(),base64_decode('X29yZGVyX2NvdW50'));rxxv8b($unlt57->qwty61(),base64_decode('X2xhc3Rfb3JkZXI='));}else{$ebhr73=0;}WC_Cache_Helper::aeod8c(base64_decode('b3JkZXJz'),true);WC_Cache_Helper::rlzz8d(base64_decode('b3JkZXJz'));fnkf81(base64_decode('d29vY29tbWVyY2VfZGVsZXRlX3Nob3Bfb3JkZXJfdHJhbnNpZW50cw=='),$ebhr73);}/**
 * See if we only ship to billing addresses.
 *
 * @return bool
 */ function qujh11(){return base64_decode('YmlsbGluZ19vbmx5')===xuan78(base64_decode('d29vY29tbWVyY2Vfc2hpcF90b19kZXN0aW5hdGlvbg=='));}/**
 * Create a new order refund programmatically.
 *
 * Returns a new refund object on success which can then be used to add additional data.
 *
 * @since 2.2
 * @throws Exception Throws exceptions when fail to create, but returns WP_Error instead.
 * @param array $args New refund arguments.
 * @return WC_Order_Refund|WP_Error
 */ function fevn12($ykxe21=array()){$oyen8e=array(base64_decode('YW1vdW50')=>0,base64_decode('cmVhc29u')=>null,base64_decode('b3JkZXJfaWQ=')=>0,base64_decode('cmVmdW5kX2lk')=>0,base64_decode('bGluZV9pdGVtcw==')=>array(),base64_decode('cmVmdW5kX3BheW1lbnQ=')=>false,base64_decode('cmVzdG9ja19pdGVtcw==')=>false,);try{$ykxe21=hjex49($ykxe21,$oyen8e);$unlt57=xtlz1($ykxe21[base64_decode('b3JkZXJfaWQ=')]);if(!$unlt57){throw new smun8f(fblw90(base64_decode('SW52YWxpZCBvcmRlciBJRC4='),base64_decode('d29vY29tbWVyY2U=')));}$jqej91=$unlt57->shof92();$lxep93=$unlt57->lqpw94();$qjqq95=0;$ctrt96=new cioj97($ykxe21[base64_decode('cmVmdW5kX2lk')]);if(0>$ykxe21[base64_decode('YW1vdW50')]||$ykxe21[base64_decode('YW1vdW50')]>$jqej91){throw new smun8f(fblw90(base64_decode('SW52YWxpZCByZWZ1bmQgYW1vdW50Lg=='),base64_decode('d29vY29tbWVyY2U=')));}$ctrt96->mazc98($unlt57->xhgz99());$ctrt96->dnbk9a($ykxe21[base64_decode('YW1vdW50')]);$ctrt96->ucuy9b(geny9c($ykxe21[base64_decode('b3JkZXJfaWQ=')]));$ctrt96->rdkk9d(tpcy9e()?tpcy9e():1);$ctrt96->wudw9f($unlt57->wxzza0());if(!is_null($ykxe21[base64_decode('cmVhc29u')])){$ctrt96->uqsba1($ykxe21[base64_decode('cmVhc29u')]);}if(is_array($ykxe21[base64_decode('bGluZV9pdGVtcw==')])&&count($ykxe21[base64_decode('bGluZV9pdGVtcw==')])>0){$lhafa2=$unlt57->qepm79(array(base64_decode('bGluZV9pdGVt'),base64_decode('ZmVl'),base64_decode('c2hpcHBpbmc=')));foreach($lhafa2 as $oyrea3=>$xwck59){if(!isset($ykxe21[base64_decode('bGluZV9pdGVtcw==')][$oyrea3])){continue;}$xybx58=isset($ykxe21[base64_decode('bGluZV9pdGVtcw==')][$oyrea3][base64_decode('cXR5')])?$ykxe21[base64_decode('bGluZV9pdGVtcw==')][$oyrea3][base64_decode('cXR5')]:0;$ecvza4=$ykxe21[base64_decode('bGluZV9pdGVtcw==')][$oyrea3][base64_decode('cmVmdW5kX3RvdGFs')];$xnyia5=isset($ykxe21[base64_decode('bGluZV9pdGVtcw==')][$oyrea3][base64_decode('cmVmdW5kX3RheA==')])?array_filter((array)$ykxe21[base64_decode('bGluZV9pdGVtcw==')][$oyrea3][base64_decode('cmVmdW5kX3RheA==')]):array();if(empty($xybx58)&&empty($ecvza4)&&empty($ykxe21[base64_decode('bGluZV9pdGVtcw==')][$oyrea3][base64_decode('cmVmdW5kX3RheA==')])){continue;}$moxwa6=get_class($xwck59);$hwwra7=new $moxwa6($xwck59);$hwwra7->cjlpa8(0);$hwwra7->tekda9(base64_decode('X3JlZnVuZGVkX2l0ZW1faWQ='),$oyrea3,true);$hwwra7->jlkjaa(evwfab($ecvza4));$hwwra7->yrwoac(array(base64_decode('dG90YWw=')=>array_map(base64_decode('d2NfZm9ybWF0X3JlZnVuZF90b3RhbA=='),$xnyia5),base64_decode('c3VidG90YWw=')=>array_map(base64_decode('d2NfZm9ybWF0X3JlZnVuZF90b3RhbA=='),$xnyia5),));if(is_callable(array($hwwra7,base64_decode('c2V0X3N1YnRvdGFs')))){$hwwra7->xpjpad(evwfab($ecvza4));}if(is_callable(array($hwwra7,base64_decode('c2V0X3F1YW50aXR5')))){$hwwra7->fgkfae($xybx58*-1);}$ctrt96->rnppaf($hwwra7);$qjqq95+=$xybx58;}}$ctrt96->akndb0();$ctrt96->ganbb1(false);$ctrt96->jlkjaa($ykxe21[base64_decode('YW1vdW50')]*-1);if(isset($ykxe21[base64_decode('ZGF0ZV9jcmVhdGVk')])){$ctrt96->odfqb2($ykxe21[base64_decode('ZGF0ZV9jcmVhdGVk')]);}/**
		 * Action hook to adjust refund before save.
		 *
		 * @since 3.0.0
		 */ fnkf81(base64_decode('d29vY29tbWVyY2VfY3JlYXRlX3JlZnVuZA=='),$ctrt96,$ykxe21);if($ctrt96->kqnh72()){if($ykxe21[base64_decode('cmVmdW5kX3BheW1lbnQ=')]){$vxxzb3=quuv13($unlt57,$ctrt96->tzcxb4(),$ctrt96->hiilb5());if(iumh46($vxxzb3)){$ctrt96->jzdmb6();return $vxxzb3;}$ctrt96->nlalb7(true);$ctrt96->kqnh72();}if($ykxe21[base64_decode('cmVzdG9ja19pdGVtcw==')]){ymxz14($unlt57,$ykxe21[base64_decode('bGluZV9pdGVtcw==')]);}/**
			 * Trigger notification emails.
			 *
			 * Filter hook to modify the partially-refunded status conditions.
			 *
			 * @since 6.7.0
			 *
			 * @param bool $is_partially_refunded Whether the order is partially refunded.
			 * @param int  $order_id The order id.
			 * @param int  $refund_id The refund id.
			 */ if((bool)uhgm36(base64_decode('d29vY29tbWVyY2Vfb3JkZXJfaXNfcGFydGlhbGx5X3JlZnVuZGVk'),($jqej91-$ykxe21[base64_decode('YW1vdW50')])>0||($unlt57->lizfb8()&&($lxep93-$qjqq95)>0),$unlt57->nodk5f(),$ctrt96->nodk5f())){fnkf81(base64_decode('d29vY29tbWVyY2Vfb3JkZXJfcGFydGlhbGx5X3JlZnVuZGVk'),$unlt57->nodk5f(),$ctrt96->nodk5f());}else{fnkf81(base64_decode('d29vY29tbWVyY2Vfb3JkZXJfZnVsbHlfcmVmdW5kZWQ='),$unlt57->nodk5f(),$ctrt96->nodk5f());$jcjpb9=uhgm36(base64_decode('d29vY29tbWVyY2Vfb3JkZXJfZnVsbHlfcmVmdW5kZWRfc3RhdHVz'),base64_decode('cmVmdW5kZWQ='),$unlt57->nodk5f(),$ctrt96->nodk5f());if($jcjpb9){$unlt57->aejpba($jcjpb9);}}}$unlt57->xoyzbb(time());$unlt57->kqnh72();fnkf81(base64_decode('d29vY29tbWVyY2VfcmVmdW5kX2NyZWF0ZWQ='),$ctrt96->nodk5f(),$ykxe21);fnkf81(base64_decode('d29vY29tbWVyY2Vfb3JkZXJfcmVmdW5kZWQ='),$unlt57->nodk5f(),$ctrt96->nodk5f());}catch(Exception $hnvhbc){if(isset($ctrt96)&&is_a($ctrt96,base64_decode('V0NfT3JkZXJfUmVmdW5k'))){$ctrt96->jzdmb6(true);}return new ecqgbd(base64_decode('ZXJyb3I='),$hnvhbc->xkwsbe());}return $ctrt96;}/**
 * Try to refund the payment for an order via the gateway.
 *
 * @since 3.0.0
 * @throws Exception Throws exceptions when fail to refund, but returns WP_Error instead.
 * @param WC_Order $order  Order instance.
 * @param string   $amount Amount to refund.
 * @param string   $reason Refund reason.
 * @return bool|WP_Error
 */ function quuv13($unlt57,$pgdxbf,$brtsc0=''){try{if(!is_a($unlt57,base64_decode('V0NfT3JkZXI='))){throw new smun8f(fblw90(base64_decode('SW52YWxpZCBvcmRlci4='),base64_decode('d29vY29tbWVyY2U=')));}$slwjc1=WC_Payment_Gateways::ilqgc2();$uzntc3=$slwjc1->pdqec4();$wxgzc5=$unlt57->acwqc6();$oceyc7=isset($uzntc3[$wxgzc5])?$uzntc3[$wxgzc5]:false;if(!$oceyc7){throw new smun8f(fblw90(base64_decode('VGhlIHBheW1lbnQgZ2F0ZXdheSBmb3IgdGhpcyBvcmRlciBkb2VzIG5vdCBleGlzdC4='),base64_decode('d29vY29tbWVyY2U=')));}if(!$oceyc7->kkwuc8(base64_decode('cmVmdW5kcw=='))){throw new smun8f(fblw90(base64_decode('VGhlIHBheW1lbnQgZ2F0ZXdheSBmb3IgdGhpcyBvcmRlciBkb2VzIG5vdCBzdXBwb3J0IGF1dG9tYXRpYyByZWZ1bmRzLg=='),base64_decode('d29vY29tbWVyY2U=')));}$vxxzb3=$oceyc7->fkmnc9($unlt57->nodk5f(),$pgdxbf,$brtsc0);if(!$vxxzb3){throw new smun8f(fblw90(base64_decode('QW4gZXJyb3Igb2NjdXJyZWQgd2hpbGUgYXR0ZW1wdGluZyB0byBjcmVhdGUgdGhlIHJlZnVuZCB1c2luZyB0aGUgcGF5bWVudCBnYXRld2F5IEFQSS4='),base64_decode('d29vY29tbWVyY2U=')));}if(iumh46($vxxzb3)){throw new smun8f($vxxzb3->pbqyca());}return true;}catch(Exception $hnvhbc){return new ecqgbd(base64_decode('ZXJyb3I='),$hnvhbc->xkwsbe());}}/**
 * Restock items during refund.
 *
 * @since 3.0.0
 * @param WC_Order $order               Order instance.
 * @param array    $refunded_line_items Refunded items list.
 */ function ymxz14($unlt57,$mvgycb){if(!uhgm36(base64_decode('d29vY29tbWVyY2VfY2FuX3Jlc3RvY2tfcmVmdW5kZWRfaXRlbXM='),true,$unlt57,$mvgycb)){return;}$tzzacc=$unlt57->qepm79();foreach($tzzacc as $oyrea3=>$xwck59){if(!isset($mvgycb[$oyrea3],$mvgycb[$oyrea3][base64_decode('cXR5')])){continue;}$fwrv56=$xwck59->abcd7a();$vdsucd=$xwck59->wyouce(base64_decode('X3JlZHVjZWRfc3RvY2s='),true);$jqlrcf=(int)$xwck59->wyouce(base64_decode('X3Jlc3RvY2tfcmVmdW5kZWRfaXRlbXM='),true);$sojsd0=$mvgycb[$oyrea3][base64_decode('cXR5')];if(!$vdsucd||!$sojsd0||!$fwrv56||!$fwrv56->kdogd1()){continue;}$jlqsd2=$fwrv56->inmgd3();$ytesd4=ksdqd5($fwrv56,$sojsd0,base64_decode('aW5jcmVhc2U='));$vdsucd=$vdsucd-$sojsd0;$xwck59->wlted6(base64_decode('X3JlZHVjZWRfc3RvY2s='),$vdsucd);$xwck59->wlted6(base64_decode('X3Jlc3RvY2tfcmVmdW5kZWRfaXRlbXM='),$sojsd0+$jqlrcf);$noqrd7=sprintf(fblw90(base64_decode('SXRlbSAjJTEkcyBzdG9jayBpbmNyZWFzZWQgZnJvbSAlMiRzIHRvICUzJHMu'),base64_decode('d29vY29tbWVyY2U=')),$fwrv56->nodk5f(),$jlqsd2,$ytesd4);/**
		 * Allow the restock note to be modified.
		 *
		 * @since 6.4.0
		 *
		 * @param string $restock_note The original note.
		 * @param int $old_stock The old stock.
		 * @param bool|int|null $new_stock The new stock.
		 * @param WC_Order $order The order the refund was done for.
		 * @param bool|WC_Product $product The product the refund was done for.
		 */ $noqrd7=uhgm36(base64_decode('d29vY29tbWVyY2VfcmVmdW5kX3Jlc3RvY2tfbm90ZQ=='),$noqrd7,$jlqsd2,$ytesd4,$unlt57,$fwrv56);$unlt57->ouhyd8($noqrd7);$xwck59->kqnh72();fnkf81(base64_decode('d29vY29tbWVyY2VfcmVzdG9ja19yZWZ1bmRlZF9pdGVt'),$fwrv56->nodk5f(),$jlqsd2,$ytesd4,$unlt57,$fwrv56);}}/**
 * Get tax class by tax id.
 *
 * @since 2.2
 * @param int $tax_id Tax ID.
 * @return string
 */ function yjfg15($gmied9){global $wnchda;return $wnchda->totbdb($wnchda->xnwkdc("SELECT tax_rate_class FROM {$wnchda->$smyjdd}woocommerce_tax_rates WHERE tax_rate_id = %d",$gmied9));}/**
 * Get payment gateway class by order data.
 *
 * @since 2.2
 * @param int|WC_Order $order Order instance.
 * @return WC_Payment_Gateway|bool
 */ function zitj16($unlt57){if(begw31()->pdqec4()){$gdnwde=begw31()->pdqec4()->pdqec4();}else{$gdnwde=array();}if(!is_object($unlt57)){$ebhr73=geny9c($unlt57);$unlt57=xtlz1($ebhr73);}return is_a($unlt57,base64_decode('V0NfT3JkZXI='))&&isset($gdnwde[$unlt57->acwqc6()])?$gdnwde[$unlt57->acwqc6()]:false;}/**
 * When refunding an order, create a refund line item if the partial refunds do not match order total.
 *
 * This is manual; no gateway refund will be performed.
 *
 * @since 2.4
 * @param int $order_id Order ID.
 */ function xopv17($ebhr73){$unlt57=xtlz1($ebhr73);$xqjddf=kyxce0($unlt57->jbsde1()-$unlt57->ytlle2());if(!$xqjddf){return;}vdpge3();fevn12(array(base64_decode('YW1vdW50')=>$xqjddf,base64_decode('cmVhc29u')=>fblw90(base64_decode('T3JkZXIgZnVsbHkgcmVmdW5kZWQu'),base64_decode('d29vY29tbWVyY2U=')),base64_decode('b3JkZXJfaWQ=')=>$ebhr73,base64_decode('bGluZV9pdGVtcw==')=>array(),));vkqhe4();$unlt57->ouhyd8(fblw90(base64_decode('T3JkZXIgc3RhdHVzIHNldCB0byByZWZ1bmRlZC4gVG8gcmV0dXJuIGZ1bmRzIHRvIHRoZSBjdXN0b21lciB5b3Ugd2lsbCBuZWVkIHRvIGlzc3VlIGEgcmVmdW5kIHRocm91Z2ggeW91ciBwYXltZW50IGdhdGV3YXku'),base64_decode('d29vY29tbWVyY2U=')));}glta82(base64_decode('d29vY29tbWVyY2Vfb3JkZXJfc3RhdHVzX3JlZnVuZGVk'),base64_decode('d2Nfb3JkZXJfZnVsbHlfcmVmdW5kZWQ='));/**
 * Search orders.
 *
 * @since  2.6.0
 * @param  string $term Term to search.
 * @return array List of orders ID.
 */ function ppcx18($hkjfe5){$dpss3d=WC_Data_Store::qxzy3e(base64_decode('b3JkZXI='));return $dpss3d->cktfe6(str_replace(base64_decode('T3JkZXIgIw=='),'',rvdse7($hkjfe5)));}/**
 * Update total sales amount for each product within a paid order.
 *
 * @since 3.0.0
 * @param int $order_id Order ID.
 */ function utac19($ebhr73){$unlt57=xtlz1($ebhr73);if(!$unlt57){return;}$hbqre8=$unlt57->dgor75()->qujke9($unlt57);$xqvzea=in_array($unlt57->hyxueb(),array(base64_decode('Y2FuY2VsbGVk'),base64_decode('dHJhc2g=')),true);if(!$xqvzea&&base64_decode('d29vY29tbWVyY2VfYmVmb3JlX2RlbGV0ZV9vcmRlcg==')===xvcpec()){$xqvzea=true;}if($hbqre8 xor $xqvzea){return;}$fauded=$hbqre8&&$xqvzea?base64_decode('ZGVjcmVhc2U='):base64_decode('aW5jcmVhc2U=');if(count($unlt57->qepm79())>0){foreach($unlt57->qepm79()as $xwck59){$exaoee=$xwck59->raqeef();if($exaoee){$dpss3d=WC_Data_Store::qxzy3e(base64_decode('cHJvZHVjdA=='));$dpss3d->pthzf0($exaoee,geny9c($xwck59->kouo7f()),$fauded);}}}if(base64_decode('ZGVjcmVhc2U=')===$fauded){$unlt57->dgor75()->deruf1($unlt57,false);}else{$unlt57->dgor75()->deruf1($unlt57,true);}/**
	 * Called when sales for an order are recorded
	 *
	 * @param int $order_id order id
	 */ fnkf81(base64_decode('d29vY29tbWVyY2VfcmVjb3JkZWRfc2FsZXM='),$ebhr73);}glta82(base64_decode('d29vY29tbWVyY2Vfb3JkZXJfc3RhdHVzX2NvbXBsZXRlZA=='),base64_decode('d2NfdXBkYXRlX3RvdGFsX3NhbGVzX2NvdW50cw=='));glta82(base64_decode('d29vY29tbWVyY2Vfb3JkZXJfc3RhdHVzX3Byb2Nlc3Npbmc='),base64_decode('d2NfdXBkYXRlX3RvdGFsX3NhbGVzX2NvdW50cw=='));glta82(base64_decode('d29vY29tbWVyY2Vfb3JkZXJfc3RhdHVzX29uLWhvbGQ='),base64_decode('d2NfdXBkYXRlX3RvdGFsX3NhbGVzX2NvdW50cw=='));glta82(base64_decode('d29vY29tbWVyY2Vfb3JkZXJfc3RhdHVzX2NvbXBsZXRlZF90b19jYW5jZWxsZWQ='),base64_decode('d2NfdXBkYXRlX3RvdGFsX3NhbGVzX2NvdW50cw=='));glta82(base64_decode('d29vY29tbWVyY2Vfb3JkZXJfc3RhdHVzX3Byb2Nlc3NpbmdfdG9fY2FuY2VsbGVk'),base64_decode('d2NfdXBkYXRlX3RvdGFsX3NhbGVzX2NvdW50cw=='));glta82(base64_decode('d29vY29tbWVyY2Vfb3JkZXJfc3RhdHVzX29uLWhvbGRfdG9fY2FuY2VsbGVk'),base64_decode('d2NfdXBkYXRlX3RvdGFsX3NhbGVzX2NvdW50cw=='));glta82(base64_decode('d29vY29tbWVyY2VfdHJhc2hfb3JkZXI='),base64_decode('d2NfdXBkYXRlX3RvdGFsX3NhbGVzX2NvdW50cw=='));glta82(base64_decode('d29vY29tbWVyY2VfdW50cmFzaF9vcmRlcg=='),base64_decode('d2NfdXBkYXRlX3RvdGFsX3NhbGVzX2NvdW50cw=='));glta82(base64_decode('d29vY29tbWVyY2VfYmVmb3JlX2RlbGV0ZV9vcmRlcg=='),base64_decode('d2NfdXBkYXRlX3RvdGFsX3NhbGVzX2NvdW50cw=='));/**
 * Update used coupon amount for each coupon within an order.
 *
 * @since 3.0.0
 * @param int $order_id Order ID.
 */ function gxkq1a($ebhr73){$unlt57=xtlz1($ebhr73);if(!$unlt57){return;}$dpvif2=$unlt57->dgor75()->xqaef3($unlt57);if($unlt57->aqho77(base64_decode('Y2FuY2VsbGVk'))&&$dpvif2){$xpmtf4=base64_decode('cmVkdWNl');$unlt57->dgor75()->wajmf5($unlt57,false);}elseif(!$unlt57->aqho77(base64_decode('Y2FuY2VsbGVk'))&&!$dpvif2){$xpmtf4=base64_decode('aW5jcmVhc2U=');$unlt57->dgor75()->wajmf5($unlt57,true);}elseif($unlt57->aqho77(base64_decode('Y2FuY2VsbGVk'))){$unlt57->dgor75()->guayf6($unlt57,true);return;}else{return;}if(count($unlt57->jblgf7())>0){foreach($unlt57->jblgf7()as $nlaef8){if(StringUtil::nzqnf9($nlaef8)){continue;}$mjkkfa=new vwjjfb($nlaef8);$qkdafc=$unlt57->duvcfd();if(!$qkdafc){$qkdafc=$unlt57->bdbp64();}switch($xpmtf4){case base64_decode('cmVkdWNl'):$mjkkfa->ggevfe($qkdafc);break;case base64_decode('aW5jcmVhc2U='):$mjkkfa->tugvff($qkdafc,$unlt57);break;}}$unlt57->dgor75()->guayf6($unlt57,true);}}glta82(base64_decode('d29vY29tbWVyY2Vfb3JkZXJfc3RhdHVzX3BlbmRpbmc='),base64_decode('d2NfdXBkYXRlX2NvdXBvbl91c2FnZV9jb3VudHM='));glta82(base64_decode('d29vY29tbWVyY2Vfb3JkZXJfc3RhdHVzX2NvbXBsZXRlZA=='),base64_decode('d2NfdXBkYXRlX2NvdXBvbl91c2FnZV9jb3VudHM='));glta82(base64_decode('d29vY29tbWVyY2Vfb3JkZXJfc3RhdHVzX3Byb2Nlc3Npbmc='),base64_decode('d2NfdXBkYXRlX2NvdXBvbl91c2FnZV9jb3VudHM='));glta82(base64_decode('d29vY29tbWVyY2Vfb3JkZXJfc3RhdHVzX29uLWhvbGQ='),base64_decode('d2NfdXBkYXRlX2NvdXBvbl91c2FnZV9jb3VudHM='));glta82(base64_decode('d29vY29tbWVyY2Vfb3JkZXJfc3RhdHVzX2NhbmNlbGxlZA=='),base64_decode('d2NfdXBkYXRlX2NvdXBvbl91c2FnZV9jb3VudHM='));/**
 * Cancel all unpaid orders after held duration to prevent stock lock for those products.
 */ function lvzm1b(){$gykb100=xuan78(base64_decode('d29vY29tbWVyY2VfaG9sZF9zdG9ja19taW51dGVz'));vprk101(base64_decode('d29vY29tbWVyY2VfY2FuY2VsX3VucGFpZF9vcmRlcnM='));$ruat102=uhgm36(base64_decode('d29vY29tbWVyY2VfY2FuY2VsX3VucGFpZF9vcmRlcnNfaW50ZXJ2YWxfbWludXRlcw=='),geny9c($gykb100));sshv103(time()+(geny9c($ruat102)*60),base64_decode('d29vY29tbWVyY2VfY2FuY2VsX3VucGFpZF9vcmRlcnM='));if($gykb100<1||base64_decode('eWVz')!==xuan78(base64_decode('d29vY29tbWVyY2VfbWFuYWdlX3N0b2Nr'))){return;}$dpss3d=WC_Data_Store::qxzy3e(base64_decode('b3JkZXI='));$cqsr104=$dpss3d->qjij105(strtotime(base64_decode('LQ==').geny9c($gykb100).base64_decode('IE1JTlVURVM='),ggkm70(base64_decode('dGltZXN0YW1w'))));if($cqsr104){foreach($cqsr104 as $kbsk106){$unlt57=xtlz1($kbsk106);if(uhgm36(base64_decode('d29vY29tbWVyY2VfY2FuY2VsX3VucGFpZF9vcmRlcg=='),base64_decode('Y2hlY2tvdXQ=')===$unlt57->rbdx107(),$unlt57)){$unlt57->aejpba(base64_decode('Y2FuY2VsbGVk'),fblw90(base64_decode('VW5wYWlkIG9yZGVyIGNhbmNlbGxlZCAtIHRpbWUgbGltaXQgcmVhY2hlZC4='),base64_decode('d29vY29tbWVyY2U=')));}}}}glta82(base64_decode('d29vY29tbWVyY2VfY2FuY2VsX3VucGFpZF9vcmRlcnM='),base64_decode('d2NfY2FuY2VsX3VucGFpZF9vcmRlcnM='));/**
 * Sanitize order id removing unwanted characters.
 *
 * E.g Users can sometimes try to track an order id using # with no success.
 * This function will fix this.
 *
 * @since 3.1.0
 * @param int $order_id Order ID.
 */ function lsmm1c($ebhr73){return(int)filter_var($ebhr73,FILTER_SANITIZE_NUMBER_INT);}qpym108(base64_decode('d29vY29tbWVyY2Vfc2hvcnRjb2RlX29yZGVyX3RyYWNraW5nX29yZGVyX2lk'),base64_decode('d2Nfc2FuaXRpemVfb3JkZXJfaWQ='));/**
 * Get an order note.
 *
 * @since  3.2.0
 * @param  int|WP_Comment $data Note ID (or WP_Comment instance for internal use only).
 * @return stdClass|null        Object with order note details or null when does not exists.
 */ function zhpc1d($wbzs109){if(is_numeric($wbzs109)){$wbzs109=idtg10a($wbzs109);}if(!is_a($wbzs109,base64_decode('V1BfQ29tbWVudA=='))){return null;}return(object)uhgm36(base64_decode('d29vY29tbWVyY2VfZ2V0X29yZGVyX25vdGU='),array(base64_decode('aWQ=')=>(int)$wbzs109->$wfph10b,base64_decode('ZGF0ZV9jcmVhdGVk')=>qzmc28($wbzs109->$cdmr10c),base64_decode('Y29udGVudA==')=>$wbzs109->$bkmi10d,base64_decode('Y3VzdG9tZXJfbm90ZQ==')=>(bool)nnyy10e($wbzs109->$wfph10b,base64_decode('aXNfY3VzdG9tZXJfbm90ZQ=='),true),base64_decode('YWRkZWRfYnk=')=>fblw90(base64_decode('V29vQ29tbWVyY2U='),base64_decode('d29vY29tbWVyY2U='))===$wbzs109->$ypry10f?base64_decode('c3lzdGVt'):$wbzs109->$ypry10f,),$wbzs109);}/**
 * Get order notes.
 *
 * @since  3.2.0
 * @param  array $args Query arguments {
 *     Array of query parameters.
 *
 *     @type string $limit         Maximum number of notes to retrieve.
 *                                 Default empty (no limit).
 *     @type int    $order_id      Limit results to those affiliated with a given order ID.
 *                                 Default 0.
 *     @type array  $order__in     Array of order IDs to include affiliated notes for.
 *                                 Default empty.
 *     @type array  $order__not_in Array of order IDs to exclude affiliated notes for.
 *                                 Default empty.
 *     @type string $orderby       Define how should sort notes.
 *                                 Accepts 'date_created', 'date_created_gmt' or 'id'.
 *                                 Default: 'id'.
 *     @type string $order         How to order retrieved notes.
 *                                 Accepts 'ASC' or 'DESC'.
 *                                 Default: 'DESC'.
 *     @type string $type          Define what type of note should retrieve.
 *                                 Accepts 'customer', 'internal' or empty for both.
 *                                 Default empty.
 * }
 * @return stdClass[]              Array of stdClass objects with order notes details.
 */ function kemr1e($ykxe21){$krei110=array(base64_decode('bGltaXQ=')=>base64_decode('bnVtYmVy'),base64_decode('b3JkZXJfaWQ=')=>base64_decode('cG9zdF9pZA=='),base64_decode('b3JkZXJfX2lu')=>base64_decode('cG9zdF9faW4='),base64_decode('b3JkZXJfX25vdF9pbg==')=>base64_decode('cG9zdF9fbm90X2lu'),);foreach($krei110 as $obsg111=>$ipsp112){if(isset($ykxe21[$obsg111])){$ykxe21[$ipsp112]=$ykxe21[$obsg111];unset($ykxe21[$obsg111]);}}$vfwu113=array(base64_decode('ZGF0ZV9jcmVhdGVk')=>base64_decode('Y29tbWVudF9kYXRl'),base64_decode('ZGF0ZV9jcmVhdGVkX2dtdA==')=>base64_decode('Y29tbWVudF9kYXRlX2dtdA=='),base64_decode('aWQ=')=>base64_decode('Y29tbWVudF9JRA=='),);$ykxe21[base64_decode('b3JkZXJieQ==')]=!empty($ykxe21[base64_decode('b3JkZXJieQ==')])&&in_array($ykxe21[base64_decode('b3JkZXJieQ==')],array(base64_decode('ZGF0ZV9jcmVhdGVk'),base64_decode('ZGF0ZV9jcmVhdGVkX2dtdA=='),base64_decode('aWQ=')),true)?$vfwu113[$ykxe21[base64_decode('b3JkZXJieQ==')]]:base64_decode('Y29tbWVudF9JRA==');if(isset($ykxe21[base64_decode('dHlwZQ==')])&&base64_decode('Y3VzdG9tZXI=')===$ykxe21[base64_decode('dHlwZQ==')]){$ykxe21[base64_decode('bWV0YV9xdWVyeQ==')]=array(array(base64_decode('a2V5')=>base64_decode('aXNfY3VzdG9tZXJfbm90ZQ=='),base64_decode('dmFsdWU=')=>1,base64_decode('Y29tcGFyZQ==')=>base64_decode('PQ=='),),);}elseif(isset($ykxe21[base64_decode('dHlwZQ==')])&&base64_decode('aW50ZXJuYWw=')===$ykxe21[base64_decode('dHlwZQ==')]){$ykxe21[base64_decode('bWV0YV9xdWVyeQ==')]=array(array(base64_decode('a2V5')=>base64_decode('aXNfY3VzdG9tZXJfbm90ZQ=='),base64_decode('Y29tcGFyZQ==')=>base64_decode('Tk9UIEVYSVNUUw=='),),);}$ykxe21[base64_decode('dHlwZQ==')]=base64_decode('b3JkZXJfbm90ZQ==');$ykxe21[base64_decode('c3RhdHVz')]=base64_decode('YXBwcm92ZQ==');unset($ykxe21[base64_decode('Y291bnQ=')],$ykxe21[base64_decode('ZmllbGRz')]);vykk114(base64_decode('Y29tbWVudHNfY2xhdXNlcw=='),array(base64_decode('V0NfQ29tbWVudHM='),base64_decode('ZXhjbHVkZV9vcmRlcl9jb21tZW50cw==')),10,1);$hmwv115=khsq116($ykxe21);qpym108(base64_decode('Y29tbWVudHNfY2xhdXNlcw=='),array(base64_decode('V0NfQ29tbWVudHM='),base64_decode('ZXhjbHVkZV9vcmRlcl9jb21tZW50cw==')),10,1);return array_filter(array_map(base64_decode('d2NfZ2V0X29yZGVyX25vdGU='),$hmwv115));}/**
 * Create an order note.
 *
 * @since  3.2.0
 * @param  int    $order_id         Order ID.
 * @param  string $note             Note to add.
 * @param  bool   $is_customer_note If is a costumer note.
 * @param  bool   $added_by_user    If note is create by an user.
 * @return int|WP_Error             Integer when created or WP_Error when found an error.
 */ function hfqk1f($ebhr73,$dtyc117,$qytc118=false,$xeub119=false){$unlt57=xtlz1($ebhr73);if(!$unlt57){return new ecqgbd(base64_decode('aW52YWxpZF9vcmRlcl9pZA=='),fblw90(base64_decode('SW52YWxpZCBvcmRlciBJRC4='),base64_decode('d29vY29tbWVyY2U=')),array(base64_decode('c3RhdHVz')=>400));}return $unlt57->ouhyd8($dtyc117,(int)$qytc118,$xeub119);}/**
 * Delete an order note.
 *
 * @since  3.2.0
 * @param  int $note_id Order note.
 * @return bool         True on success, false on failure.
 */ function sssv20($yqta11a){return fgyo11b($yqta11a,true);}?>

Function Calls

None

Variables

None

Stats

MD5 daa63b00352792423be95e53d3f8008a
Eval Count 0
Decode Time 237 ms