| 1 |
(()=>{var e={78664(e){e.exports=function(e){function t(a){if(n[a])return n[a].exports;var r=n[a]={i:a,l:!1,exports:{}};return e[a].call(r.exports,r,r.exports,t),r.l=!0,r.exports}var n={};return t.m=e,t.c=n,t.i=function(e){return e},t.d=function(e,n,a){t.o(e,n)||Object.defineProperty(e,n,{configurable:!1,enumerable:!0,get:a})},t.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(n,"a",n),n},t.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t.p="",t(t.s=1)}([function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=function(){function e(e,t){for(var n=0;n<t.length;n++){var a=t[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,a.key,a)}}return function(t,n,a){return n&&e(t.prototype,n),a&&e(t,a),t}}(),r=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}return a(e,null,[{key:"hash",value:function(t){return e.hex(e.md51(t))}},{key:"md5cycle",value:function(t,n){var a=t[0],r=t[1],o=t[2],i=t[3];a=e.ff(a,r,o,i,n[0],7,-680876936),i=e.ff(i,a,r,o,n[1],12,-389564586),o=e.ff(o,i,a,r,n[2],17,606105819),r=e.ff(r,o,i,a,n[3],22,-1044525330),a=e.ff(a,r,o,i,n[4],7,-176418897),i=e.ff(i,a,r,o,n[5],12,1200080426),o=e.ff(o,i,a,r,n[6],17,-1473231341),r=e.ff(r,o,i,a,n[7],22,-45705983),a=e.ff(a,r,o,i,n[8],7,1770035416),i=e.ff(i,a,r,o,n[9],12,-1958414417),o=e.ff(o,i,a,r,n[10],17,-42063),r=e.ff(r,o,i,a,n[11],22,-1990404162),a=e.ff(a,r,o,i,n[12],7,1804603682),i=e.ff(i,a,r,o,n[13],12,-40341101),o=e.ff(o,i,a,r,n[14],17,-1502002290),r=e.ff(r,o,i,a,n[15],22,1236535329),a=e.gg(a,r,o,i,n[1],5,-165796510),i=e.gg(i,a,r,o,n[6],9,-1069501632),o=e.gg(o,i,a,r,n[11],14,643717713),r=e.gg(r,o,i,a,n[0],20,-373897302),a=e.gg(a,r,o,i,n[5],5,-701558691),i=e.gg(i,a,r,o,n[10],9,38016083),o=e.gg(o,i,a,r,n[15],14,-660478335),r=e.gg(r,o,i,a,n[4],20,-405537848),a=e.gg(a,r,o,i,n[9],5,568446438),i=e.gg(i,a,r,o,n[14],9,-1019803690),o=e.gg(o,i,a,r,n[3],14,-187363961),r=e.gg(r,o,i,a,n[8],20,1163531501),a=e.gg(a,r,o,i,n[13],5,-1444681467),i=e.gg(i,a,r,o,n[2],9,-51403784),o=e.gg(o,i,a,r,n[7],14,1735328473),r=e.gg(r,o,i,a,n[12],20,-1926607734),a=e.hh(a,r,o,i,n[5],4,-378558),i=e.hh(i,a,r,o,n[8],11,-2022574463),o=e.hh(o,i,a,r,n[11],16,1839030562),r=e.hh(r,o,i,a,n[14],23,-35309556),a=e.hh(a,r,o,i,n[1],4,-1530992060),i=e.hh(i,a,r,o,n[4],11,1272893353),o=e.hh(o,i,a,r,n[7],16,-155497632),r=e.hh(r,o,i,a,n[10],23,-1094730640),a=e.hh(a,r,o,i,n[13],4,681279174),i=e.hh(i,a,r,o,n[0],11,-358537222),o=e.hh(o,i,a,r,n[3],16,-722521979),r=e.hh(r,o,i,a,n[6],23,76029189),a=e.hh(a,r,o,i,n[9],4,-640364487),i=e.hh(i,a,r,o,n[12],11,-421815835),o=e.hh(o,i,a,r,n[15],16,530742520),r=e.hh(r,o,i,a,n[2],23,-995338651),a=e.ii(a,r,o,i,n[0],6,-198630844),i=e.ii(i,a,r,o,n[7],10,1126891415),o=e.ii(o,i,a,r,n[14],15,-1416354905),r=e.ii(r,o,i,a,n[5],21,-57434055),a=e.ii(a,r,o,i,n[12],6,1700485571),i=e.ii(i,a,r,o,n[3],10,-1894986606),o=e.ii(o,i,a,r,n[10],15,-1051523),r=e.ii(r,o,i,a,n[1],21,-2054922799),a=e.ii(a,r,o,i,n[8],6,1873313359),i=e.ii(i,a,r,o,n[15],10,-30611744),o=e.ii(o,i,a,r,n[6],15,-1560198380),r=e.ii(r,o,i,a,n[13],21,1309151649),a=e.ii(a,r,o,i,n[4],6,-145523070),i=e.ii(i,a,r,o,n[11],10,-1120210379),o=e.ii(o,i,a,r,n[2],15,718787259),r=e.ii(r,o,i,a,n[9],21,-343485551),t[0]=a+t[0]&4294967295,t[1]=r+t[1]&4294967295,t[2]=o+t[2]&4294967295,t[3]=i+t[3]&4294967295}},{key:"cmn",value:function(e,t,n,a,r,o){return((t=(t+e&4294967295)+(a+o&4294967295)&4294967295)<<r|t>>>32-r)+n&4294967295}},{key:"ff",value:function(t,n,a,r,o,i,c){return e.cmn(n&a|~n&r,t,n,o,i,c)}},{key:"gg",value:function(t,n,a,r,o,i,c){return e.cmn(n&r|a&~r,t,n,o,i,c)}},{key:"hh",value:function(t,n,a,r,o,i,c){return e.cmn(n^a^r,t,n,o,i,c)}},{key:"ii",value:function(t,n,a,r,o,i,c){return e.cmn(a^(n|~r),t,n,o,i,c)}},{key:"md51",value:function(t){for(var n,a=t.length,r=[1732584193,-271733879,-1732584194,271733878],o=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],i=64;i<=a;i+=64)e.md5cycle(r,e.md5blk(t.substring(i-64,i)));for(t=t.substring(i-64),i=0,n=t.length;i<n;i++)o[i>>2]|=t.charCodeAt(i)<<(i%4<<3);if(o[i>>2]|=128<<(i%4<<3),i>55)for(e.md5cycle(r,o),i=0;i<16;i++)o[i]=0;return o[14]=8*a,e.md5cycle(r,o),r}},{key:"md5blk",value:function(e){for(var t=[],n=0;n<64;n+=4)t[n>>2]=e.charCodeAt(n)+(e.charCodeAt(n+1)<<8)+(e.charCodeAt(n+2)<<16)+(e.charCodeAt(n+3)<<24);return t}},{key:"rhex",value:function(t){var n="";return n+=e.hexArray[t>>4&15]+e.hexArray[15&t],n+=e.hexArray[t>>12&15]+e.hexArray[t>>8&15],(n+=e.hexArray[t>>20&15]+e.hexArray[t>>16&15])+(e.hexArray[t>>28&15]+e.hexArray[t>>24&15])}},{key:"hex",value:function(t){for(var n=t.length,a=0;a<n;a++)t[a]=e.rhex(t[a]);return t.join("")}}]),e}();r.hexArray=["0","1","2","3","4","5","6","7","8","9","a","b","c","d","e","f"],t.default=r},function(e,t,n){e.exports=n(0)}])}};const t={};function n(a){const r=t[a];if(void 0!==r)return r.exports;const o=t[a]={exports:{}};return e[a].call(o.exports,o,o.exports,n),o.exports}n.n=e=>{const t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{if(Array.isArray(t))for(var a=0;a<t.length;){var r=t[a++],o=t[a++];n.o(e,r)?0===o&&a++:0===o?Object.defineProperty(e,r,{enumerable:!0,value:t[a++]}):Object.defineProperty(e,r,{enumerable:!0,get:o})}else for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.o=(e,t)=>Object.hasOwn(e,t),(()=>{"use strict";const e=window.wp.i18n;window.React;var t=n(78664),a=n.n(t);const r={plugin:"plugins/",theme:"themes/",core:""},o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),i="bookticsI18nLoader",c={state:{baseUrl:null,locale:null,domainMap:{},domainPaths:{},translationMap:{}},async downloadI18n(t,n,c){const s=window[i]&&window[i].state||{};if("en_US"===s.locale)return;if(s.preloaded)return;if("undefined"==typeof fetch)throw new Error("Fetch API is not available.");const f=o(s.domainPaths,n)?s.domainPaths[n]:"",{pathname:u,query:l}=function(e){if(!e)return{pathname:"",query:""};try{if(/^https?:\/\//i.test(e)){const t=new URL(e);return{pathname:t.pathname||"",query:t.search||""}}if(e.startsWith("//")&&"undefined"!=typeof window){const t=new URL(e,window.location.href);return{pathname:t.pathname||"",query:t.search||""}}}catch(e){}const t=e.indexOf("?");return t>=0?{pathname:e.slice(0,t),query:e.slice(t)}:{pathname:e,query:""}}(t),h=function(e){if(!e)return"";const t=e.indexOf("/wp-content/plugins/booktics/");if(t>=0)return e.slice(t+29);const n=e.startsWith("/")?e.slice(1):e;return n.startsWith("chunks/")||n.startsWith("js/")||n.startsWith("css/")?`assets/build/${n}`:n}(u),d=(f+h).replace(/\\/g,"/"),p=[d],y=d.replace(/\.([a-f0-9]{8})\.js/g,".js");y!==d&&p.push(y);const g=p.map(e=>a().hash(e)),w=o(s.domainMap,n)?s.domainMap[n]:r[c]+n;if(s.translationMap&&"object"==typeof s.translationMap&&Object.keys(s.translationMap).length>0){const t=g.find(e=>o(s.translationMap,e));if(!t)return;const a=s.translationMap[t],r=await fetch(a+l).catch(()=>null);if(!r||!r.ok)return;const i=await r.json().catch(()=>null);if(!i)return;const c=o(i.locale_data,n)?i.locale_data[n]:i.locale_data.messages;return void(c&&c[""]&&(c[""].domain=n,(0,e.setLocaleData)(c,n),window.dispatchEvent(new Event("booktics-i18n-loaded"))))}let m=null;for(const e of g){const t=await fetch(`${s.baseUrl}${w}-${s.locale}-${e}.json${l}`).catch(()=>null);if(t&&t.ok){m=t;break}}if(!m)return;const b=await m.json().catch(()=>null);if(!b)return;const v=o(b.locale_data,n)?b.locale_data[n]:b.locale_data.messages;v&&v[""]&&(v[""].domain=n,(0,e.setLocaleData)(v,n),window.dispatchEvent(new Event("booktics-i18n-loaded")))}};if("undefined"!=typeof window){const t=window[i]||{},n=t.state||{},a=t.preloadedLocaleData;window[i]=c,window[i].state={...c.state,...n},a&&"object"==typeof a&&(window[i].preloadedLocaleData=a);const r=window[i].preloadedLocaleData;if(r&&"object"==typeof r)try{r[""]&&"object"==typeof r[""]&&(r[""].domain="booktics"),(0,e.setLocaleData)(r,"booktics")}catch(e){}}})()})(); |